/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Color Variables */
:root {
    --primary: #17a2b8;
    --secondary: #20c997;
    --accent: #0d6efd;
    --primary-dark: #138496;
    --primary-light: #48c6d8;
    --turquoise: #4ecdc4;
    --turquoise-dark: #26a69a;
    --white: #ffffff;
    --white-light: #f8f9fa;
    --white-dark: #e9ecef;
    --text-dark: #333;
    --text-light: #666;
    --gradient: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    --primary-gradient: linear-gradient(45deg, #0d6efd, #17a2b8, #20c997);
    --cream: var(--white-light);
    --cream-light: var(--white);
    --brown-light: var(--primary);
    --brown-medium: var(--primary-dark);
    --brown-dark: #138496;
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.navbar-nav .nav-item {
    margin-right: 2rem;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
}

.brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 25px;
    padding: 8px 23px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Carousel Section */
.hero-carousel {
    position: relative;
    background: var(--white-light);
    overflow: hidden;
    margin-top: 80px;
}

.hero-carousel .carousel-inner {
    height: 560px;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

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

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-dark);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid white;
}

.carousel-indicators .active {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--white-light) 0%, var(--white) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%2317a2b8" opacity="0.2"/><circle cx="75" cy="75" r="1.5" fill="%2320c997" opacity="0.2"/><circle cx="50" cy="10" r="1" fill="%230d6efd" opacity="0.2"/><circle cx="20" cy="80" r="1" fill="%2348c6d8" opacity="0.2"/><circle cx="80" cy="30" r="1.5" fill="%2317a2b8" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

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

/* Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    height: 100%;
}

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

.service-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

/* Section Spacing */
.section-padding {
    padding: 80px 0;
}

/* Fix body padding for pages without carousel */
body:not(.has-carousel) {
    padding-top: 80px;
}

/* Text Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

/* Background Colors */
.bg-cream {
    background-color: var(--cream) !important;
}

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

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #E9ECEF;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    background: linear-gradient(135deg, #0d6efd 0%, #17a2b8 100%) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel .carousel-inner {
        height: 375px;
    }
    
    .carousel-image {
        height: 375px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

/* Utility Classes */
.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

.rounded-xl {
    border-radius: 20px !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    text-decoration: none;
    transform: scale(1.1);
}

.whatsapp-float i {
    margin: 0;
}

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

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

/* Hero Section Image Responsive */
@media (max-width: 768px) {
    .hero-section img {
        max-height: 350px !important;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }
    
    .hero-section img {
        max-height: 300px !important;
        margin-top: 30px;
    }
}
