/* Home page specific styles */

/* Breathtaking Brand Hero Banner */
.brand-hero {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    border-radius: var(--border-radius-lg, 24px);
    padding: 40px 32px;
    margin-bottom: 28px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: 0 20px 40px -15px rgba(2, 44, 34, 0.5);
}

.brand-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.brand-hero::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 180px;
    height: calc(100% - 20px);
    opacity: 0.16;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3C!-- Isometric Plot Polygon --%3E%3Cpolygon points='200,80 320,150 320,280 200,350 80,280 80,150' fill='rgba(16, 185, 129, 0.05)' stroke='%2334d399' stroke-width='2' stroke-linejoin='round'/%3E%3C!-- Trust Node Connection Lines --%3E%3Cline x1='200' y1='80' x2='200' y2='215' stroke='%2334d399' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Cline x1='80' y1='150' x2='200' y2='215' stroke='%2334d399' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Cline x1='320' y1='150' x2='200' y2='215' stroke='%2334d399' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Cline x1='200' y1='215' x2='200' y2='350' stroke='%2334d399' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Cline x1='80' y1='280' x2='200' y2='215' stroke='%2334d399' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3Cline x1='320' y1='280' x2='200' y2='215' stroke='%2334d399' stroke-width='1.5' stroke-dasharray='4,4'/%3E%3C!-- Glow Vertices --%3E%3Ccircle cx='200' cy='80' r='7' fill='%236ee7b7' filter='drop-shadow(0 0 4px %2334d399)'/%3E%3Ccircle cx='320' cy='150' r='7' fill='%236ee7b7' filter='drop-shadow(0 0 4px %2334d399)'/%3E%3Ccircle cx='320' cy='280' r='7' fill='%236ee7b7' filter='drop-shadow(0 0 4px %2334d399)'/%3E%3Ccircle cx='200' cy='350' r='7' fill='%236ee7b7' filter='drop-shadow(0 0 4px %2334d399)'/%3E%3Ccircle cx='80' cy='280' r='7' fill='%236ee7b7' filter='drop-shadow(0 0 4px %2334d399)'/%3E%3Ccircle cx='80' cy='150' r='7' fill='%236ee7b7' filter='drop-shadow(0 0 4px %2334d399)'/%3E%3Ccircle cx='200' cy='215' r='10' fill='%2310b981' filter='drop-shadow(0 0 6px %2310b981)'/%3E%3C!-- Topographic Contours --%3E%3Cpath d='M30,120 Q120,60 220,130 T370,90' fill='none' stroke='%2310b981' stroke-width='1.5' opacity='0.4'/%3E%3Cpath d='M30,220 Q130,170 230,240 T370,190' fill='none' stroke='%2310b981' stroke-width='1.5' opacity='0.3'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-badge i {
    font-size: 0.8rem;
    color: #34d399;
}

.brand-hero h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
}

.brand-hero p {
    font-size: 0.88rem;
    color: #a7f3d0;
    line-height: 1.5;
    font-weight: 400;
}

/* Search Area Customization */
.search-section {
    margin-bottom: 24px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 4px 16px rgba(4, 120, 87, 0.08);
}

.search-bar i {
    color: var(--primary-light);
    font-size: 1.15rem;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    font-weight: 500;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.filter-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Premium Stats Row styling */
.brand-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.3;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* Categories with Icons */
.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 28px;
    scrollbar-width: none; /* Firefox */
}

.categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.category-pill {
    padding: 8px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.category-pill i {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

.category-pill.active i {
    color: white;
}

.category-pill:hover:not(.active) {
    background: rgba(4, 120, 87, 0.05);
    color: var(--primary-color);
    border-color: var(--primary-light);
}

/* Headings with Subtitles */
.section-header-wrap {
    margin-top: 36px;
    margin-bottom: 20px;
}

.section-header-wrap .section-title {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

/* Interactive Secure Journey Steps */
.process-section {
    margin-top: 40px;
    margin-bottom: 32px;
}

.process-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.process-step {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.process-step:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.step-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.3);
}

.step-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 12px;
    display: inline-block;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 750;
    margin-top: 0;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transform: rotate(90deg);
    opacity: 0.5;
}

/* Services Cards Section */
.services-section {
    margin-top: 40px;
    margin-bottom: 24px;
}

.services-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(4, 120, 87, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.service-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.service-cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-light);
    font-size: .85rem;
    border: 1px solid var(--border-color);
    transition: all .2s;
}

.service-cta-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

/* Blog Cards Section */
.blog-section {
    margin-top: 40px;
    margin-bottom: 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.blog-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    overflow: hidden;
}

.blog-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.blog-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2.5px);
    box-shadow: var(--shadow-md);
}

.blog-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-size: 0.82rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.see-all-blogs-btn:hover {
    background: rgba(4, 120, 87, 0.12) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

.see-all-blogs-btn:hover i {
    transform: translateX(4px);
}

/* Infrastructure Section */
.infra-section {
    margin-top: 48px;
    margin-bottom: 40px;
}

.infra-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.infra-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.infra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold-accent), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infra-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(4, 120, 87, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.infra-card:hover::before {
    opacity: 1;
}

.infra-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(4, 120, 87, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.infra-card:hover .infra-icon {
    background: var(--gold-glow);
    color: var(--gold-dark);
    transform: rotate(-10deg) scale(1.1);
}

.infra-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 750;
    color: var(--text-primary);
}

.infra-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.infra-cost {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Interactive Testimonials Carousel styling */
.testimonials-section {
    margin-top: 48px;
    margin-bottom: 40px;
}

.testimonials-slider-container {
    overflow: hidden;
    position: relative;
    padding: 8px 0;
}

.testimonials-wrapper {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    min-width: 100%; /* Mobile full width */
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stars {
    display: flex;
    gap: 4px;
    color: #eab308;
    font-size: 0.85rem;
}

.quote {
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-light);
}

.user-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: var(--text-primary);
}

.user-info span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

/* Typing keyframe cursor animation */
@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

/* 💻 Responsive Adjustments */
@media (min-width: 768px) {
    .brand-hero {
        padding: 56px 48px;
        margin-bottom: 32px;
    }

    .brand-hero::after {
        width: 320px;
        opacity: 0.35;
        right: 40px;
    }

    .brand-hero::before {
        width: 380px;
        height: 380px;
    }

    .brand-hero h1 {
        font-size: 2.5rem;
        max-width: 650px;
    }

    .brand-hero p {
        font-size: 1.05rem;
        max-width: 600px;
    }

    .brand-stats {
        padding: 24px 40px;
        margin-bottom: 32px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Process Flow grid align on desktop */
    .process-layout-grid {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 48px;
        align-items: center;
    }

    .process-steps {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 24px;
    }

    .process-step {
        flex: 1;
        text-align: left;
        padding: 32px 24px 24px;
    }

    .step-badge {
        left: 24px;
        transform: none;
    }

    .step-icon {
        font-size: 2rem;
    }

    .process-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .services-cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .infra-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Center the last card if odd number */
    .infra-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .service-card {
        height: 100%;
        margin-bottom: 0;
        flex-direction: column;
    }

    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* 3 Column masonry testimonials on desktop */
    .testimonials-slider-container {
        overflow: visible;
    }

    .testimonials-wrapper {
        transform: none !important;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .testimonial-card {
        min-width: 0;
        height: 100%;
    }

    .slider-dots {
        display: none !important;
    }
}

/* ── Interactive Lead Funnel Styles ── */
.funnel-option-btn {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.funnel-option-btn:hover {
    border-color: var(--primary-color) !important;
    background: rgba(4, 120, 87, 0.04) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--primary-color) !important;
}

.funnel-option-btn:active {
    background: rgba(4, 120, 87, 0.08) !important;
    transform: scale(0.98);
}
