/**
 * Brain Developer - Home Page Styles
 * ===================================
 * Estilos específicos para a página inicial (index.html).
 * 
 * Depende de: tokens.css, base.css, layout.css, components.css
 * @version 2.0.0 - 2025-01-17
 */

/* ==========================================
   HOME - PAGE RESET & LAYOUT
   ========================================== */

body.bg-gradient-home {
    background: #f8fafc !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.bg-gradient-home .main-container {
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* ==========================================
   HOME - HERO SECTION
   ========================================== */

.home-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    padding: 100px 24px 80px;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.2), transparent 40%);
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #f8fafc, transparent);
    pointer-events: none;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out;
    position: relative;
    z-index: 2;
}

.home-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.home-hero__title span {
    background: linear-gradient(135deg, #fcd34d, #fb923c, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: slideInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 2;
}

/* ==========================================
   HOME - NAVIGATION CARDS
   ========================================== */

.home-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 24px 60px;
    position: relative;
    z-index: 10;
}

.home-nav__card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.home-nav__card:nth-child(1) {
    animation: slideInUp 0.5s ease-out 0.1s both;
}
.home-nav__card:nth-child(2) {
    animation: slideInUp 0.5s ease-out 0.2s both;
}
.home-nav__card:nth-child(3) {
    animation: slideInUp 0.5s ease-out 0.3s both;
}
.home-nav__card:nth-child(4) {
    animation: slideInUp 0.5s ease-out 0.4s both;
}

.home-nav__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent-color, linear-gradient(90deg, #8b5cf6, #6366f1));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.home-nav__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.home-nav__card:hover::before {
    transform: scaleX(1);
}

/* Card variants - cores diferentes */
.home-nav__card--start {
    --card-accent-color: linear-gradient(90deg, #8b5cf6, #a855f7);
}
.home-nav__card--frontend {
    --card-accent-color: linear-gradient(90deg, #06b6d4, #0ea5e9);
}
.home-nav__card--backend {
    --card-accent-color: linear-gradient(90deg, #10b981, #059669);
}
.home-nav__card--fullstack {
    --card-accent-color: linear-gradient(90deg, #6366f1, #4f46e5);
}

.home-nav__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.home-nav__card:hover .home-nav__icon {
    transform: scale(1.1);
}

.home-nav__card--start .home-nav__icon {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #8b5cf6;
}

.home-nav__card--frontend .home-nav__icon {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0891b2;
}

.home-nav__card--backend .home-nav__icon {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.home-nav__card--fullstack .home-nav__icon {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
}

.home-nav__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.home-nav__description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.home-nav__arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition:
        gap 0.3s ease,
        opacity 0.3s ease;
    text-decoration: none;
}

.home-nav__card--start .home-nav__arrow {
    color: #8b5cf6;
}
.home-nav__card--frontend .home-nav__arrow {
    color: #0891b2;
}
.home-nav__card--backend .home-nav__arrow {
    color: #059669;
}
.home-nav__card--fullstack .home-nav__arrow {
    color: #4f46e5;
}

.home-nav__card:hover .home-nav__arrow {
    gap: 12px;
    opacity: 0.9;
}

.home-nav__arrow:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 4px;
    border-radius: 999px;
}

/* ==========================================
   HOME - CONTENT SECTIONS
   ========================================== */

body.bg-gradient-home .content-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

body.bg-gradient-home .content-section:nth-child(odd) {
    background: #ffffff;
}

body.bg-gradient-home .content-section:nth-child(even) {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

body.bg-gradient-home .section-header {
    text-align: center;
    margin-bottom: 48px;
}

body.bg-gradient-home .section-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: inline-block;
}

body.bg-gradient-home .section-header h2::after {
    display: none;
}

body.bg-gradient-home .section-header h2 i {
    margin-right: 12px;
    color: #8b5cf6;
}

body.bg-gradient-home .section-header p {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================
   HOME - FEATURE ITEMS (Cards de vantagens)
   ========================================== */

body.bg-gradient-home .grid--4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

body.bg-gradient-home .feature-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid;
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

body.bg-gradient-home .feature-item:nth-child(1) {
    border-left-color: #3b82f6;
}
body.bg-gradient-home .feature-item:nth-child(2) {
    border-left-color: #10b981;
}
body.bg-gradient-home .feature-item:nth-child(3) {
    border-left-color: #f59e0b;
}
body.bg-gradient-home .feature-item:nth-child(4) {
    border-left-color: #ec4899;
}

body.bg-gradient-home .feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

body.bg-gradient-home .feature-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.bg-gradient-home .feature-item:nth-child(1) h4 {
    color: #3b82f6;
}
body.bg-gradient-home .feature-item:nth-child(2) h4 {
    color: #10b981;
}
body.bg-gradient-home .feature-item:nth-child(3) h4 {
    color: #f59e0b;
}
body.bg-gradient-home .feature-item:nth-child(4) h4 {
    color: #ec4899;
}

body.bg-gradient-home .feature-item h4 i {
    font-size: 1.1rem;
}

body.bg-gradient-home .feature-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   HOME - ROADMAP TIMELINE
   ========================================== */

body.bg-gradient-home .roadmap-timeline {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

body.bg-gradient-home .roadmap-timeline__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    position: relative;
}

body.bg-gradient-home .roadmap-timeline__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    width: 3px;
    height: calc(100% + 8px);
    background: linear-gradient(to bottom, #8b5cf6, #6366f1);
    border-radius: 100px;
}

body.bg-gradient-home .roadmap-timeline__marker {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: 4px solid #ffffff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 24px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

body.bg-gradient-home .roadmap-timeline__item:hover .roadmap-timeline__marker {
    transform: scale(1.1);
}

body.bg-gradient-home .roadmap-timeline__content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #8b5cf6;
    border-radius: 16px;
    padding: 24px 28px;
    flex: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

body.bg-gradient-home .roadmap-timeline__content:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
    border-color: #c4b5fd;
}

body.bg-gradient-home .roadmap-timeline__content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 8px;
}

body.bg-gradient-home .roadmap-timeline__content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   HOME - CTA BUTTON
   ========================================== */

body.bg-gradient-home .text-center.mt-12 {
    margin-top: 48px;
    text-align: center;
}

body.bg-gradient-home .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

body.bg-gradient-home .cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

body.bg-gradient-home .cta-button i {
    font-size: 1rem;
}

/* ==========================================
   HOME - FOOTER
   ========================================== */

body.bg-gradient-home .footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 60px 24px;
    text-align: center;
}

body.bg-gradient-home .footer h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: 8px;
}

body.bg-gradient-home .footer > .container > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 24px;
}

body.bg-gradient-home .footer .social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

body.bg-gradient-home .footer .social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.bg-gradient-home .footer .social-icon:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    transform: translateY(-4px);
    border-color: transparent;
}

body.bg-gradient-home .footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================
   HOME - RESPONSIVIDADE
   ========================================== */

@media (max-width: 1024px) {
    .home-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    body.bg-gradient-home .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 80px 20px 60px;
        min-height: auto;
    }

    .home-hero__subtitle {
        font-size: 1.1rem;
    }

    .home-nav {
        grid-template-columns: 1fr;
        margin-top: -30px;
        padding: 0 20px 40px;
    }

    .home-nav__card {
        padding: 24px 20px;
    }

    body.bg-gradient-home .content-section {
        padding: 60px 20px;
    }

    body.bg-gradient-home .grid--4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.bg-gradient-home .roadmap-timeline__item {
        flex-direction: column;
    }

    body.bg-gradient-home .roadmap-timeline__item:not(:last-child)::after {
        display: none;
    }

    body.bg-gradient-home .roadmap-timeline__marker {
        margin-right: 0;
        margin-bottom: 16px;
    }

    body.bg-gradient-home .roadmap-timeline__content {
        border-left: none;
        border-top: 4px solid #8b5cf6;
    }

    body.bg-gradient-home .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .home-hero__title {
        font-size: 2rem;
    }

    .home-nav__card {
        padding: 20px 16px;
    }

    body.bg-gradient-home .feature-item {
        padding: 20px 16px;
    }

    body.bg-gradient-home .roadmap-timeline__content {
        padding: 20px;
    }
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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