/* Custom Color Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gradient-start: #0d6efd;
    --gradient-end: #0dcaf0;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Enhancements */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
#home {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

#home h1 {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

#home .lead {
    animation: fadeInUp 1.2s ease;
}

#home .btn {
    animation: fadeInUp 1.4s ease;
    transition: all 0.3s ease;
}

#home .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

#home img {
    animation: fadeInRight 1s ease;
    transition: transform 0.3s ease;
}

#home img:hover {
    transform: scale(1.05);
}

/* Services Section */
#services {
    background-color: #ffffff;
}

#services h2 {
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

#services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.card {
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-body i {
    transition: all 0.3s ease;
}

.card:hover .card-body i {
    transform: scale(1.2) rotate(5deg);
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* About Section */
#about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#about h2 {
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

#about p {
    color: var(--secondary-color);
}

/* Contact Section */
#contact {
    background-color: #ffffff;
}

#contact h2 {
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

#contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

#contact h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#contact p {
    color: var(--secondary-color);
    line-height: 1.8;
}

#contact img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#contact img:hover {
    transform: scale(1.05);
}

/* Form Styling */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

footer a {
    display: inline-block;
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

footer i {
    font-size: 1.5rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Active nav link */
.nav-link.active {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
}

/* Contact links */
.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* Icon rotation animation */
@keyframes rotateIcon {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Loading state */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Statistics Section */
#stats {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

#stats i {
    opacity: 0.9;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.invalid-feedback {
    display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

#formMessage {
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

#formMessage.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    display: block;
}

#formMessage.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    display: block;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
    background-color: white;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    #contact img {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

/* Skip Link for accessibility and SEO */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}