/* ============================================
   WiFiHapa - Features Page Stylesheet
   Fully Responsive for All Screen Sizes
   ============================================ */
/* Main Content */
.main-content {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ----- FEATURES PAGE SPECIFIC STYLES ----- */
.features-hero {
    background: var(--hero-bg);
    padding: 2.5rem 2rem;
    border-radius: 48px;
    margin: 1.5rem 0 2rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-badge {
    display: inline-block;
    background: #d4a11e;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.feature-icon-xl {
    font-size: 2.5rem;
    color: #0d6efd;
    background: var(--card-bg);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.feature-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card .feature-icon {
    font-size: 1.8rem;
    color: #0d6efd;
    background: #e4edff;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1rem;
}

body.dark .feature-card .feature-icon {
    background: #2a3448;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.stat-circle {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-circle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.tech-spec {
    background: var(--badge-light-bg);
    border-radius: 24px;
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

.tech-spec:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tech-spec h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.spec-list {
    list-style: none;
    padding: 0;
}

.spec-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px dashed var(--border-light);
    font-size: 0.85rem;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list i {
    color: #0d6efd;
    width: 18px;
}

/* Buttons */
.btn-wifihapa {
    background: #0d6efd;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-wifihapa:hover {
    background: #0b5ed7;
    transform: scale(0.98);
    color: white;
}

.btn-outline-wifihapa {
    border: 1.5px solid #0d6efd;
    background: transparent;
    border-radius: 50px;
    padding: 0.55rem 1.7rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0d6efd;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-wifihapa:hover {
    background: #0d6efd;
    color: white;
}

/* ----- RESPONSIVE BREAKPOINTS ----- */

/* Tablet Landscape (992px - 1200px) */
@media (max-width: 1200px) {
    .features-hero h1 {
        font-size: 2.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Tablet Portrait (768px - 992px) */
@media (max-width: 992px) {
    .features-hero {
        padding: 2rem;
    }
    
    .features-hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .tech-spec {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Mobile Landscape (576px - 768px) */
@media (max-width: 768px) {
    .features-hero {
        padding: 1.5rem;
        text-align: center;
    }
    
    .features-hero h1 {
        font-size: 1.5rem;
    }
    
    .features-hero .display-4 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .feature-icon-xl {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .feature-card .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
    }
    
    .stat-circle {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .tech-spec h4 {
        font-size: 1rem;
    }
    
    .spec-list li {
        font-size: 0.75rem;
    }
    
    .btn-wifihapa,
    .btn-outline-wifihapa {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Mobile Portrait (below 576px) */
@media (max-width: 576px) {
    .features-hero {
        padding: 1.2rem;
        border-radius: 32px;
    }
    
    .features-hero h1 {
        font-size: 1.3rem;
    }
    
    .feature-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.8rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
    }
    
    .feature-icon-xl {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 18px;
    }
    
    .feature-card {
        padding: 1rem;
        border-radius: 20px;
    }
    
    .feature-card .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 12px;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
    
    .stat-circle {
        padding: 0.8rem;
        border-radius: 18px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .stat-circle .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    
    .tech-spec {
        padding: 1rem;
        border-radius: 18px;
    }
    
    .tech-spec h4 {
        font-size: 0.9rem;
    }
    
    .spec-list li {
        padding: 0.4rem 0;
        font-size: 0.7rem;
    }
    
    .spec-list i {
        width: 14px;
        font-size: 0.7rem;
    }
    
    .btn-wifihapa,
    .btn-outline-wifihapa {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Roadmap section adjustments */
    .rounded-5 {
        border-radius: 24px !important;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
    
    .p-md-5 {
        padding: 1rem !important;
    }
    
    .feature-card .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Extra Small Devices (below 400px) */
@media (max-width: 400px) {
    .features-hero h1 {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .feature-card h3 {
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .tech-spec h4 {
        font-size: 0.85rem;
    }
    
    .spec-list li {
        font-size: 0.65rem;
    }
    
    .btn-wifihapa,
    .btn-outline-wifihapa {
        padding: 0.35rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* Dark mode overrides for features page */
body.dark .feature-card {
    background: var(--card-bg);
}

body.dark .stat-circle {
    background: var(--card-bg);
}

body.dark .tech-spec {
    background: var(--badge-light-bg);
}

body.dark .btn-outline-wifihapa {
    border-color: #0d6efd;
    color: #0d6efd;
}

body.dark .btn-outline-wifihapa:hover {
    background: #0d6efd;
    color: white;
}

/* Animation for feature cards on scroll */
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat circles animation */
.stat-circle {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.4s ease forwards;
}

.stat-circle:nth-child(1) { animation-delay: 0.1s; }
.stat-circle:nth-child(2) { animation-delay: 0.2s; }
.stat-circle:nth-child(3) { animation-delay: 0.3s; }
.stat-circle:nth-child(4) { animation-delay: 0.4s; }

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tech specs animation */
.tech-spec {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.tech-spec:nth-child(1) { animation-delay: 0.15s; }
.tech-spec:nth-child(2) { animation-delay: 0.3s; }
.tech-spec:nth-child(3) { animation-delay: 0.45s; }
.tech-spec:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .desktop-nav,
    .mobile-header,
    .offcanvas,
    .footer,
    .btn-wifihapa,
    .btn-outline-wifihapa {
        display: none !important;
    }
    
    .features-hero {
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .feature-card,
    .stat-circle,
    .tech-spec {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}