
:root {
    --primary: #6366f1;
    --accent: #ec4899;
    --dark: #0f172a;
    --glass: rgba(30, 41, 59, 0.78);
}

body {
    background: var(--dark);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* ================= HERO ================= */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(236, 72, 153, .25)), url('{% static "assets/images/hero-bg-kenya.jpg" %}') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, .6), rgba(2, 6, 23, .92));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
}

/* ================= BUTTONS ================= */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border: none;
    border-radius: 999px;
    padding: .95rem 2.4rem;
    font-weight: 600;
    color: #fff;
    transition: all .3s ease;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(99, 102, 241, .45);
}

.btn-outline-light {
    border-radius: 999px;
    padding: .9rem 2.2rem;
    transition: all .3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

/* ================= MODERN CIRCLES ================= */
.floating-circles {
    position: relative;
    width: 500px;
    height: 350px;
    margin: 0 auto;
}

.floating-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(99, 102, 241, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

.floating-circle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3),
    0 0 0 2px rgba(99, 102, 241, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.6);
    z-index: 10;
}

.floating-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-circle:hover img {
    transform: scale(1.15);
}

.circle-content {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    text-align: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.floating-circle:hover .circle-content {
    opacity: 1;
    bottom: -60px;
}

.circle-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ec4899, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.circle-subtitle {
    font-size: 0.75rem;
    color: #cbd5e1;
    opacity: 0.9;
}

/* Circle positions */
.circle-1 {
    top: 20%;
    left: 10%;
    animation: float-1 8s ease-in-out infinite;
}

.circle-2 {
    top: 10%;
    right: 10%;
    animation: float-2 9s ease-in-out infinite;
}

.circle-3 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: float-3 7s ease-in-out infinite;
}

/* Floating animations */
@keyframes float-1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translateX(-50%) translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(20px) rotate(1deg);
    }
}

/* Background glow effect */
.circle-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(15px);
    z-index: 0;
    opacity: 0.7;
}

.glow-1 {
    top: 15%;
    left: 8%;
    animation: glow-pulse-1 4s ease-in-out infinite;
}

.glow-2 {
    top: 5%;
    right: 8%;
    animation: glow-pulse-2 5s ease-in-out infinite;
}

.glow-3 {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation: glow-pulse-3 6s ease-in-out infinite;
}

@keyframes glow-pulse-1 {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes glow-pulse-2 {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

@keyframes glow-pulse-3 {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.05);
    }
}

/* ================= SECTIONS ================= */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* ================= CREATOR CARDS ================= */
.creator-card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(99, 102, 241, .25);
    overflow: hidden;
    transition: all .35s ease;
    height: 100%;
}

.creator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, .4);
    border-color: var(--primary);
}

.creator-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.creator-card:hover img {
    transform: scale(1.05);
}

.creator-card .p-4 h5 {
    font-size: 1.1rem;
}

.creator-card .p-4 p {
    font-size: 0.85rem;
}

.btn-outline-primary {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ================= CATEGORY ================= */
.row.g-2.g-md-2 {
    gap: 0.4rem;
}

.category-pill {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    padding: .35rem 0.8rem;
    font-size: .95rem;
    transition: all .25s ease;
}

.category-pill:hover {
    background: rgba(99, 102, 241, .22);
    transform: translateY(-2px);
}

.category-pill.active {
    background: rgba(99, 102, 241, .35);
    border-color: #6366f1;
}

/* ================= VIDEO CARD ================= */
.video-card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(99, 102, 241, .2);
    overflow: hidden;
    transition: all .35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(99, 102, 241, .35);
    border-color: var(--primary);
}

.video-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-card .video-info {
    padding: 1rem 1rem 1.5rem 1rem;
    flex-grow: 1;
}

.video-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .4rem;
    color: #fff;
}

.video-creator {
    font-size: .9rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* ================= CTA ================= */
.bg-gradient-dark {
    background: linear-gradient(180deg, rgba(15, 23, 42, .85), rgba(15, 23, 42, .95));
}

.text-muted {
    color: #cbd5e1 !important;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .creator-card img {
        height: 220px;
    }

    .floating-circles {
        width: 100%;
        height: 280px;
        margin-top: 2rem;
    }

    .floating-circle {
        width: 100px;
        height: 100px;
    }

    .circle-1 {
        top: 10%;
        left: 5%;
    }

    .circle-2 {
        top: 5%;
        right: 5%;
    }

    .circle-3 {
        bottom: 15%;
        left: 50%;
    }

    .circle-content {
        display: none;
    }

    .featured-creators-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .enhanced-card {
        background: rgba(30, 41, 59, 0.85);
        border-radius: 20px;
        border: 1px solid rgba(99, 102, 241, 0.25);
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }

    .enhanced-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(99, 102, 241, 0.35);
        border-color: #6366f1;
    }

    .enhanced-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(236, 72, 153, 0.15), rgba(99, 102, 241, 0.15));
        z-index: 0;
    }

    .enhanced-card img,
    .enhanced-card .creator-avatar {
        position: relative;
        z-index: 1;
        transition: transform 0.4s ease;
    }

    .enhanced-card:hover img,
    .enhanced-card:hover .creator-avatar {
        transform: scale(1.08) rotate(-1deg);
    }

    .enhanced-card h5,
    .enhanced-card p,
    .enhanced-card .btn {
        position: relative;
        z-index: 1;
    }
}

.hover-lift:hover {
    transform: translateY(-3px);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ultra-small {
    font-size: 0.78rem;
}

/* Make sure glass cards feel premium */
.glass-card {
    background: rgba(30, 41, 59, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(90deg, #ec4899, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating circles container */
.floating-circle {
    position: absolute;
    transition: transform 0.3s ease;
}

.circle-1 {
    top: 0;
    left: 0;
    transform: rotate(-3deg);
}

.circle-2 {
    bottom: 0;
    right: 0;
    transform: rotate(2deg);
}

.floating-circle:hover {
    transform: scale(1.05) rotate(0deg);
}

/* Video hover effect */
.video-hover-card {
    transition: all 0.25s ease;
    display: block;
    padding: 10px;
    margin: -10px;
    border-radius: 12px;
}

.video-hover-card:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(6px);
}

/* Text truncation utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button hover effects */
.hover-bg-gradient:hover {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    border-color: #a855f7;
}

/* Glass card consistency */
.glass-card {
    transition: box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 20px 35px -8px rgba(99, 102, 241, 0.2);
}

/* Circle glows - adjust positioning */
.circle-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    z-index: -1;
}

.glow-1 {
    background: #ec4899;
    top: -50px;
    left: -50px;
}

.glow-2 {
    background: #6366f1;
    bottom: -50px;
    right: -50px;
}
