/* =================================================================
   ATF ZONE — Ultra Premium Developer Showcase & E-Commerce CSS
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. Ultra Premium Header & Navigation --- */
.premium-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-texts {
    display: flex;
    flex-direction: column;
}

.logo-texts strong {
    font-size: 16px;
    color: #0f172a;
    line-height: 1.2;
}

.logo-texts small {
    font-size: 11px;
    color: #64748b;
}

.nav-items {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    gap: 6px;
}

.nav-items a {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.25s ease;
}

.nav-items a:hover, .nav-items a.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.header-right {
    display: flex;
    align-items: center;
}

.dashboard-btn {
    background: #2563eb;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: 0.25s ease;
}

.dashboard-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* App Style Header & Actions */
.app-top-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner-app {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-top-actions {
    display: flex;
    gap: 8px;
}

.theme-toggle-btn, .menu-drawer-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.theme-toggle-btn:hover, .menu-drawer-btn:hover {
    background: #e2e8f0;
}

/* --- 2. Hero Showcase Section --- */
.showcase-main-wrap {
    background: #f8fafc;
    padding-bottom: 40px;
}

.showcase-hero {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px !important;
    padding: 50px 30px !important;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6efff 100%) !important;
    border-radius: 20px !important;
    margin: 30px auto !important;
    border: 1px solid #dbeafe !important;
}

.hero-left-col {
    flex: 1 !important;
    max-width: 55% !important;
}

.hero-right-col {
    flex: 1 !important;
    max-width: 45% !important;
    position: relative;
}

.badge-pill {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid #bfdbfe;
}

.hero-left-col h1 {
    font-size: 38px;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-left-col h1 em {
    color: #2563eb;
    font-style: normal;
}

.hero-left-col p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 20px;
}

.hero-action-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-main-glow {
    background: #2563eb;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-sub-outline {
    background: #fff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.trust-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    flex-wrap: wrap;
}

.mockup-floating-tag {
    position: absolute;
    top: -12px;
    right: 15px;
    background: #2563eb;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

.banner-img-box {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.banner-img-box img {
    width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* --- 3. Stats Bar --- */
.showcase-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px auto;
}

.s-box {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
}

.s-box span.s-icon {
    font-size: 24px;
    background: #eff6ff;
    padding: 10px;
    border-radius: 8px;
}

.s-box strong {
    font-size: 18px;
    color: #0f172a;
    display: block;
}

.s-box small {
    color: #64748b;
    font-size: 12px;
}

/* --- 4. Categories & Projects Grids --- */
.showcase-categories, .showcase-projects {
    margin: 35px auto;
}

.sec-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.sec-title-row h2 {
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 4px;
}

.sec-title-row p {
    color: #64748b;
    font-size: 13px;
}

.view-all-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.categories-grid-custom {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.cat-card-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 8px;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
}

.cat-card-box:hover {
    border-color: #2563eb;
    transform: translateY(-3px);
}

.cat-card-box span {
    font-size: 22px;
    display: block;
    margin-bottom: 6px;
}

.cat-card-box h4 {
    font-size: 12px;
    color: #334155;
}

/* Projects Grid */
.filter-buttons {
    display: flex;
    gap: 6px;
}

.f-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

.f-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.projects-grid-custom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.p-showcase-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.p-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.p-thumb-box {
    position: relative;
    height: 140px;
    background: #f1f5f9;
}

.p-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.f-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.p-body-box {
    padding: 12px;
}

.p-body-box h3 {
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}

.p-body-box p {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    height: 30px;
    overflow: hidden;
}

.tech-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tech-tags span {
    background: #f1f5f9;
    color: #475569;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.p-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.pa-btn {
    text-align: center;
    padding: 5px 2px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.pa-btn.demo { background: #eff6ff; color: #2563eb; }
.pa-btn.admin { background: #fef3c7; color: #d97706; }
.pa-btn.user { background: #f3e8ff; color: #9333ea; }

/* --- 5. Bottom CTA --- */
.showcase-cta {
    margin: 40px auto 15px auto;
}

.cta-card-inner {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
    padding: 35px;
    border-radius: 14px;
    text-align: center;
}

.cta-card-inner h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.cta-card-inner p {
    color: #bfdbfe;
    font-size: 14px;
    margin-bottom: 15px;
}

.cta-contact-btn {
    background: #fff;
    color: #2563eb;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

/* --- 6. Modern Multi-Column Footer Styles --- */
.modern-redesigned-footer {
    background: #070a13;
    color: #94a3b8;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 60px;
}

.footer-grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding-bottom: 40px;
}

.f-col-brand .f-brand-flex {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-badge {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
}

.f-col-brand h3 {
    color: #fff;
    font-size: 20px;
}
.f-col-brand h3 b { color: #2563eb; }

.f-col-brand p, .f-col-newsletter p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
}

.f-social-icons {
    display: flex;
    gap: 10px;
}

.f-social-icons a {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    transition: 0.2s;
}

.f-social-icons a:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.f-col-links h4, .f-col-newsletter h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}

.f-col-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f-col-links ul li a {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
}

.f-col-links ul li a:hover {
    color: #3b82f6;
    padding-left: 4px;
}

.f-newsletter-form {
    display: flex;
    gap: 8px;
}

.f-newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.f-newsletter-form input:focus {
    border-color: #2563eb;
}

.f-newsletter-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.f-newsletter-form button:hover {
    background: #1d4ed8;
}

/* Bottom Bar Centered Alignment */
.f-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    background: #04060b;
}

.f-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.f-bottom-flex strong {
    color: #ffffff;
}

.heart-ico {
    color: #ef4444;
    display: inline-block;
    animation: pulseHeart 1.5s infinite;
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Modern Floating Support Pill Button CSS --- */
.modern-support-pill-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modern-support-pill-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.modern-support-pill-btn .support-icon {
    font-size: 18px;
}

/* --- Mobile Bottom Navigation Bar (App Style) --- */
.mobile-bottom-nav {
    display: none;
}

/* --- 7. Responsive Media Queries & Mobile App Layout --- */
body.mobile-app-layout {
    padding-bottom: 65px;
}

@media screen and (max-width: 1200px) {
    .categories-grid-custom { grid-template-columns: repeat(4, 1fr) !important; }
    .projects-grid-custom { grid-template-columns: repeat(2, 1fr); }
    .footer-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media screen and (max-width: 992px) {
    .nav-items {
        display: none !important;
    }
    .showcase-hero { 
        flex-direction: column !important; 
        padding: 30px 20px !important;
        margin: 15px 10px !important;
    }
    .hero-left-col, .hero-right-col {
        max-width: 100% !important;
        width: 100% !important;
    }
    .showcase-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .categories-grid-custom { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
    .hero-left-col h1 { font-size: 28px !important; }

    /* Show App Style Bottom Navigation */
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        align-items: center;
        padding: 0 4px;
    }

    .nav-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        text-decoration: none;
        gap: 2px;
        transition: 0.2s;
    }

    .nav-tab .tab-icon {
        font-size: 18px;
    }

    .nav-tab .tab-text {
        font-size: 10px;
        font-weight: 600;
    }

    .nav-tab.active, .nav-tab:hover {
        color: #2563eb;
    }
}

@media screen and (max-width: 768px) {
    .wrap { padding: 0 15px !important; }
    .categories-grid-custom { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
    .projects-grid-custom { grid-template-columns: 1fr !important; }
    .showcase-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .sec-title-row { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
    .filter-buttons { flex-wrap: wrap !important; width: 100% !important; }
    .f-btn { flex: 1 !important; text-align: center !important; }
    .cta-card-inner { padding: 25px 15px !important; }
    .cta-card-inner h3 { font-size: 20px !important; }
    .banner-img-box img { max-height: 200px !important; }
}

@media screen and (max-width: 576px) {
    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .f-bottom-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .modern-support-pill-btn {
        bottom: 75px; /* Adjust for mobile bottom nav bar */
        right: 15px;
        padding: 8px 14px;
        font-size: 13px;
    }
}