:root {
    --bg-color: #030305;
    /* Deep dark background */
    --text-color: #f8fafc;
    --card-bg: #0a0a10;
    --border-radius: 16px;

    /* Flow Agent Gradient Colors */
    --grad-cyan: #00f0ff;
    --grad-blue: #0055ff;
    --grad-purple: #8a2be2;
    --grad-magenta: #ff00ff;
    --grad-orange: #ff7f50;

    --flow-gradient: linear-gradient(135deg, var(--grad-cyan), var(--grad-blue), var(--grad-purple), var(--grad-magenta), var(--grad-orange));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 85, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 255, 0.05), transparent 25%);
}

/* NAVBAR & LOGO */
.navbar {
    width: 100%;
    padding: 1.5rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

#site-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.text-logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--flow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* HERO SECTION */
.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: var(--flow-gradient);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: var(--flow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

/* PORTFOLIO GRID */
.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 6rem 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* VIDEO CARDS */
.video-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: var(--flow-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

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

.video-wrapper {
    position: relative;
    width: 100%;
}

.video-card video {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    background: #000;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.glow-effect {
    position: absolute;
    bottom: -10px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: var(--flow-gradient);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.video-card:hover .glow-effect {
    opacity: 0.5;
}

.video-info {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.video-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    background: var(--flow-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2.5rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .text-logo {
        font-size: 1.5rem;
    }
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.85rem 1.8rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
