/* ========================================
   VISTA RWANDA - ULTRA MODERN CSS
   Design: Minimalist, Clean, Contemporary
   ======================================== */

/* ========================================
   MODERN CSS RESET
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* ========================================
   MODERN HEADER - Glass Morphism
   ======================================== */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo - Larger, Bold */
.logo img {
    height: 48px;
    width: auto;
}

.logo a {
    display: block;
}

/* Navigation - Clean spacing */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    position: relative;
    padding: 8px 0;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #0f172a;
}

/* Modern underline indicator */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2px;
    background: #1e40af;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Nav Contact Button */
.nav-contact {
    margin-left: 24px;
}

.nav-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-contact a:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header-spacer {
    height: 80px;
}

/* ========================================
   MODERN BUTTONS - Minimal & Bold
   ======================================== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ========================================
   HERO SLIDER - Immersive & Modern
   ======================================== */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    /* Ensure smooth scaling and proper rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: transform;
    display: block;
    background-color: #ffffff; /* White background for better contrast */
    max-width: 100%;
    max-height: 100%;
}

/* Modern gradient overlay */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.3) 0%,
        rgba(15, 23, 42, 0.7) 100%
    );
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 2;
    max-width: 900px;
    width: 90%;
}

.slide-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.slide-text {
    font-size: clamp(16px, 2vw, 22px);
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Minimal slider controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev { left: 32px; }
.slider-btn.next { right: 32px; }

/* Modern dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   SECTION HEADERS - Bold & Clean
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   SERVICES SECTION - Card Grid
   ======================================== */
.services-section {
    padding: 120px 0;
    background: #fafafa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 28px;
    color: #1e40af;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 15px;
}

/* ========================================
   OFFERS SECTION - Modern Cards
   ======================================== */
.offers-preview {
    padding: 120px 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.offer-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.offer-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-card:hover .offer-image img {
    transform: scale(1.08);
}

.offer-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #0f172a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.offer-content {
    padding: 28px;
}

.offer-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.offer-content p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}

.offer-price {
    font-size: 28px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.offer-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.offer-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 14px;
}

.offer-details i {
    color: #1e40af;
}

/* ========================================
   WHY CHOOSE US - Split Layout
   ======================================== */
.why-choose-us {
    padding: 120px 0;
    background: #fafafa;
}

.why-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-text h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.7;
}

.features-list {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item i {
    color: #10b981;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item h4 {
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feature-item p {
    color: #64748b;
    line-height: 1.6;
    font-size: 15px;
}

.why-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-box {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ========================================
   CTA SECTION - Bold & Impactful
   ======================================== */
.cta-section {
    padding: 120px 0;
    background: #0f172a;
    color: #ffffff;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: #ffffff;
    color: #0f172a;
}

.cta-section .btn-primary:hover {
    background: #f8fafc;
}

.cta-section .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   FOOTER - Clean & Organized
   ======================================== */
.main-footer {
    background: #0f172a;
    color: #ffffff;
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 42px;
    margin-bottom: 20px;
}

.footer-tagline {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 15px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #94a3b8;
    font-size: 15px;
}

.footer-contact i {
    color: #64748b;
    font-size: 16px;
}

.footer-contact a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.footer-bottom p {
    margin: 8px 0;
}

.footer-bottom i {
    color: #ef4444;
}

/* ========================================
   WHATSAPP BUTTON - Modern & Animated
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* ========================================
   PAGE HEADER (for internal pages)
   ======================================== */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 100px 0 60px;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================================
   RESPONSIVE - Mobile First
   ======================================== */
@media (max-width: 1024px) {
    .why-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 48px 24px;
        gap: 24px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-contact {
        display: none;
    }
    
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide img {
        object-position: center;
    }
    
    .services-section,
    .offers-preview,
    .why-choose-us,
    .cta-section,
    .main-footer {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .services-grid,
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-btn.prev { left: 16px; }
    .slider-btn.next { right: 16px; }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide img {
        object-position: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn-large {
        width: 100%;
    }
}