/* ════════════════════════════════════════════════════════
   EthiopBytes — home.css
   Home-page specific styles. Requires global.css + Bootstrap.
   Layout grids are handled by Bootstrap row/col in HTML.
════════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}
.hero-blob-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.25) 0%,
        transparent 70%
    );
    top: -200px;
    right: -100px;
    pointer-events: none;
}
.hero-blob-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(245, 158, 11, 0.15) 0%,
        transparent 70%
    );
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}
.hero-row-pad {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero-badge span {
    background: var(--accent);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}
.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--accent), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Hero search bar */
.hero-search {
    display: flex;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.hero-search input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    min-width: 0;
}
.hero-search select {
    border: none;
    border-left: 1px solid var(--border);
    outline: none;
    padding: 18px 16px;
    font-size: 14px;
    color: var(--text-2);
    font-family: inherit;
    background: var(--surface-3);
    cursor: pointer;
    flex-shrink: 0;
}
.hero-search button {
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    flex-shrink: 0;
}
.hero-search button:hover {
    background: var(--primary-dark);
}

/* Hero stats strip */
.hero-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat-label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}
.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

/* Hero visual */
.hero-visual {
    justify-content: center;
    align-items: center;
}
.hero-illustration {
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 30px 60px rgba(79, 70, 229, 0.18));
    animation: heroFloat 4s ease-in-out infinite;
}
.hero-illustration img {
    width: 100%;
    height: auto;
    user-select: none;
}
@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

/* ─── TRUST BANNER ───────────────────────────────────── */
.trust-banner {
    padding: 40px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.trust-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
    flex-shrink: 0;
}
.trust-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-3);
    letter-spacing: -1px;
    opacity: 0.5;
    transition: opacity 0.2s;
    cursor: pointer;
}
.trust-logo:hover {
    opacity: 0.85;
}

/* ─── CATEGORY CARD ──────────────────────────────────── */
.category-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    display: block;
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
}
.category-card:hover .cat-icon {
    background: var(--primary);
    color: #fff;
}
.category-card:hover .cat-icon img {
    filter: brightness(0) invert(1);
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
    transition: all 0.25s;
    overflow: hidden;
    padding: 10px;
}
.cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: filter 0.25s;
}
.cat-icon-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}
.cat-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.cat-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.cat-icon-amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.cat-icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.cat-icon-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}
.cat-icon-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}
.cat-icon-teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.cat-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.cat-count {
    font-size: 13px;
    color: var(--text-3);
}

/* ─── COURSES TABS ───────────────────────────────────── */
.courses-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.courses-tab {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--surface);
    transition: all 0.2s;
}
.courses-tab.active,
.courses-tab:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ─── STATS SECTION ──────────────────────────────────── */
.stats-section {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    padding: 80px 0;
}
.stat-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}
.stat-number {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-number span {
    font-size: 0.55em;
    font-weight: 700;
    vertical-align: super;
}
.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ─── SERVICE CARD ───────────────────────────────────── */
.service-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1.5px solid var(--border);
    transition: all 0.25s;
}
.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.06);
    transform: translateY(-4px);
}
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
    transition: all 0.25s;
    color: var(--primary);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
}
.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.service-desc {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 20px;
}
.service-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-2);
}
.service-features li i {
    color: var(--green);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ─── TESTIMONIALS ───────────────────────────────────── */
.testimonials-section {
    background: linear-gradient(
        180deg,
        var(--surface-2) 0%,
        var(--surface) 100%
    );
}
.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1.5px solid var(--border);
    transition: all 0.25s;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.testimonial-quote {
    font-size: 40px;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.3;
    font-family: Georgia, serif;
}
.testimonial-rating {
    margin-bottom: 16px;
}
.testimonial-text {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 22px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.testimonial-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.testimonial-author-role {
    font-size: 13px;
    color: var(--text-3);
}

/* ─── BRANDS ─────────────────────────────────────────── */
.brands-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.brands-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}
.brand-item {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-3);
    letter-spacing: -1px;
    opacity: 0.45;
    transition: all 0.2s;
    cursor: pointer;
}
.brand-item:hover {
    opacity: 0.8;
    color: var(--primary);
}

/* ─── CTA SECTION ────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.2) 0%,
        transparent 70%
    );
    top: -200px;
    right: 0;
    pointer-events: none;
}
.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.cta-desc {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 32px;
}
.cta-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
}
.cta-check i {
    color: var(--green);
}

.cta-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}
.cta-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.cta-input:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
}

.cta-form-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(10px);
}
.cta-form-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.cta-form-card > p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.form-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}
.form-note {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 12px;
}

/* ─── RESPONSIVE — HOME ──────────────────────────────── */
@media (max-width: 768px) {
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
    }
    .hero-search select {
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .hero-row-pad {
        padding: 48px 0;
    }
}
@media (max-width: 480px) {
    .hero-stat-divider {
        display: none !important;
    }
}
