/* Modern CSS untuk Website Desa - Light Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Blue Theme Color Palette */
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --secondary-gradient: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    --success-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    --warning-gradient: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    --info-gradient: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    --danger-gradient: linear-gradient(135deg, #312e81 0%, #3730a3 100%);
    
    /* Blue Theme Colors */
    --light-bg: #ffffff;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --section-bg: #f8fafc;
    --section-alt-bg: #f1f5f9;
    
    /* Shadows for Blue Theme */
    --shadow-sm: 0 2px 10px rgba(30, 58, 138, 0.1);
    --shadow-md: 0 8px 30px rgba(30, 58, 138, 0.15);
    --shadow-lg: 0 15px 60px rgba(30, 58, 138, 0.2);
    --shadow-xl: 0 25px 100px rgba(30, 58, 138, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-bg);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
.main-nav {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0.5rem 0;
}

/* Navbar Logo */
.navbar-brand {
    margin-right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-logo {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    white-space: nowrap;
}

.navbar-brand:hover .navbar-brand-text {
    color: #333333;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: var(--section-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    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='%23667eea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 12px 18px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--text-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--primary-gradient);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    min-height: 80vh; /* Reduced from 100vh */
    max-height: 600px; /* Maximum height limit */
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 80vh; /* Reduced from 100vh */
    max-height: 600px; /* Maximum height limit */
}

/* Image optimization */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #667eea; /* Fallback color if image fails to load */
    background-attachment: scroll; /* Better performance than fixed */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Optimize image rendering and performance */
    image-rendering: optimizeQuality;
    backface-visibility: hidden;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: opacity; /* Optimize for animation */
}

/* Preload hint for images */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.1) 50%, transparent 51%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.slide:hover::before {
    opacity: 1;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.gradient-text {
    color: #ffffff;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 20;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 20;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-hero {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Modern Buttons - Enhanced */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-hero {
    background: var(--primary-gradient);
    color: white !important;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white !important;
    text-decoration: none;
}

.btn-hero-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    color: white !important;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.btn-modern {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.btn-modern.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-modern.btn-success {
    background: var(--success-gradient);
    color: white;
    border: none;
}

.btn-modern.btn-warning {
    background: var(--warning-gradient);
    color: white;
    border: none;
}

.btn-modern.btn-info {
    background: var(--info-gradient);
    color: white;
    border: none;
}

.btn-modern.btn-danger {
    background: var(--danger-gradient);
    color: white;
    border: none;
}

.btn-modern.btn-outline {
    background: var(--glass-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-modern.btn-outline:hover {
    background: #000000;
    border-color: transparent;
    color: white;
}

/* Button outline light for footer social media */
.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

/* Glass Cards - Enhanced */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.05), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.2);
}

/* Service Cards */
.service-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.4);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Cards */
.card {
    border: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.btn-success {
    background: var(--success-gradient);
    border: none;
    color: #ffffff;
    border-radius: 25px;
}

.btn-info {
    background: var(--info-gradient);
    border: none;
    color: #ffffff;
    border-radius: 25px;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.bg-light-section {
    background: var(--light-green);
}

/* Statistics Section */
.stats-section {
    background: var(--section-bg);
    padding: 80px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    pointer-events: none;
}

/* Statistics - Enhanced */
.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.stat-icon i {
    font-size: 1.75rem;
    color: white;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.4);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.stat-progress {
    height: 6px;
    background: var(--section-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* News and Articles */
.news-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: var(--light-green);
    margin: 0 -20px;
    padding: 20px;
    border-radius: 10px;
}

.news-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--light-text);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: var(--primary-gradient);
    color: white;
    padding: 50px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-section h5 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
    background: white;
}

.form-group {
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.alert-danger {
    background: #f0f0f0;
    color: #000000;
    border: 1px solid #999999;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--light-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 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); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Badge */
.badge {
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.badge-success {
    background: var(--secondary-color);
}

.badge-primary {
    background: var(--primary-color);
}

.badge-info {
    background: var(--accent-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-seller {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.contact-buttons {
    display: flex;
    gap: 10px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Service Form */
.service-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.file-upload-wrapper {
    position: relative;
    margin-top: 10px;
}

.file-upload {
    display: none;
}

.file-upload-label {
    display: block;
    padding: 10px 15px;
    background: var(--light-green);
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: var(--accent-color);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 20px 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--light-text);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Mobile Responsiveness for Hero Slider */
@media (max-width: 768px) {
    .hero-slider {
        min-height: 60vh; /* Smaller on mobile */
        max-height: 400px;
    }
    
    .slider-container {
        height: 60vh;
        max-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .slider-nav {
        padding: 0 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-scroll {
        bottom: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }
    
    .slide-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 50vh; /* Even smaller on very small screens */
        max-height: 350px;
    }
    
    .slider-container {
        height: 50vh;
        max-height: 350px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .slider-nav {
        padding: 0 0.5rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Enhanced Mobile and Tablet Responsiveness */
@media (max-width: 1200px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .header-content {
        text-align: center;
        gap: 1.5rem;
    }
    
    .header-info {
        align-items: center;
    }
    
    .navbar-nav {
        gap: 0;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        margin: 2px 0;
        text-align: center;
        border-radius: 8px;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .navbar-brand-text {
        font-size: 1.2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .stat-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-hero,
    .btn-hero-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-card {
        padding: 2rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .glass-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* Profile Page Specific Styles */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-title {
    color: var(--primary-blue) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-primary) !important;
    line-height: 1.7;
    font-size: 1rem;
}

.card-body {
    padding: 2rem;
}

/* Text Primary Override */
.text-primary {
    color: var(--primary-blue) !important;
}

/* List Group Styles */
.list-group-item {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
}

.list-group-numbered .list-group-item {
    font-weight: 500;
}

/* Blockquote Styles */
.blockquote {
    background: rgba(30, 58, 138, 0.05);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.blockquote p {
    color: var(--text-primary) !important;
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

/* Navigation Pills */
.nav-pills .nav-link {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.nav-pills .nav-link:hover {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.nav-pills .nav-link.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

/* Hero Section for Profile */
.hero-section {
    background: var(--primary-gradient);
    color: white;
}

.hero-title {
    color: white !important;
    font-weight: 700;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
}

/* Background Cards */
.bg-light {
    background: var(--section-bg) !important;
    color: var(--text-primary) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.border-success {
    border-color: var(--light-blue) !important;
}