/**
 * Home Page Styles - Sound Genetic's Inc.
 * Professional Material Design with Purple/Green Gradient Theme
 * Fully Responsive - Mobile First
 *
 * @company Sound Genetic's Inc.
 * @description Home page dashboard with demo cards
 */

/* ============================================
   HOME PAGE LAYOUT
   ============================================ */

.home-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(17, 17, 34, 0.98) 100%); */
    position: relative;
}

/* ============================================
   HEADER NAVIGATION
   ============================================ */

.home-header {
    padding: 1.5rem 0;
    background: rgba(16, 22, 39, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(125, 80, 244, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.home-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
    transition: opacity 0.3s ease;
}

.home-logo-link:hover {
    opacity: 0.8;
}

.home-logo-small {
    height: 40px;
    width: auto;
}

.home-brand-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    display: none;
}

@media (min-width: 768px) {
    .home-brand-name {
        display: inline;
    }
}

/* User Info */
.user-info-dropdown {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.user-welcome-text {
    color: #ffffff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-welcome-text i {
    font-size: 1.5rem;
    color: rgba(125, 80, 244, 1);
}

.username-display {
    font-weight: 500;
    color: rgba(112, 203, 151, 1);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(125, 80, 244, 0.2);
    border-color: rgba(125, 80, 244, 0.5);
    color: #ffffff;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.home-content {
    flex: 1;
    padding: 3rem 0;
}

/* Page Title */
.home-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(125, 80, 244, 1) 0%, rgba(112, 203, 151, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.home-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .home-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   DEMO CARDS
   ============================================ */

.demo-card {
    background: rgba(16, 22, 39, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(125, 80, 244, 0.2);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        0 0 40px rgba(125, 80, 244, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(125, 80, 244, 1) 0%, rgba(112, 203, 151, 1) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(125, 80, 244, 0.4);
    box-shadow:
        0 12px 48px 0 rgba(0, 0, 0, 0.5),
        0 0 60px rgba(125, 80, 244, 0.2),
        0 0 60px rgba(112, 203, 151, 0.1);
}

.demo-card:hover::before {
    transform: scaleX(1);
}

/* Card Icon */
.demo-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(125, 80, 244, 0.2) 0%, rgba(112, 203, 151, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.demo-card:hover .demo-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(125, 80, 244, 0.3) 0%, rgba(112, 203, 151, 0.3) 100%);
}

.demo-card-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(125, 80, 244, 1) 0%, rgba(112, 203, 151, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Variations */
.demo-card-icon.deepfake-icon i {
    background: linear-gradient(135deg, rgba(244, 80, 80, 1) 0%, rgba(244, 150, 80, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-card-icon.docusign-icon i {
    background: linear-gradient(135deg, rgba(80, 150, 244, 1) 0%, rgba(80, 200, 244, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-card-icon.callcenter-icon i {
    background: linear-gradient(135deg, rgba(244, 200, 80, 1) 0%, rgba(244, 150, 80, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Content */
.demo-card-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.demo-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    flex: 1;
}

/* Card Button */
.demo-card-btn {
    background: linear-gradient(135deg, rgba(125, 80, 244, 1) 0%, rgba(112, 203, 151, 1) 100%);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

.demo-card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(125, 80, 244, 0.4);
    color: #ffffff;
}

.demo-card-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.demo-card-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .features-title {
        font-size: 1.5rem;
    }
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(125, 80, 244, 0.15) 0%, rgba(112, 203, 151, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(125, 80, 244, 0.25) 0%, rgba(112, 203, 151, 0.25) 100%);
}

.feature-icon i {
    font-size: 2rem;
    color: rgba(112, 203, 151, 1);
}

.feature-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.home-footer {
    padding: 2rem 0;
    background: rgba(16, 22, 39, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(125, 80, 244, 0.1);
    margin-top: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 576px) {
    .home-header {
        padding: 1rem 0;
    }

    .home-logo-small {
        height: 32px;
    }

    .user-welcome-text {
        font-size: 0.85rem;
    }

    .user-welcome-text .username-display {
        display: none;
    }

    .home-content {
        padding: 2rem 0;
    }

    .demo-card {
        padding: 1.5rem 1rem;
    }

    .demo-card-icon {
        width: 60px;
        height: 60px;
    }

    .demo-card-icon i {
        font-size: 2rem;
    }

    .feature-item {
        padding: 1.5rem 0.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.75rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.demo-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.demo-card:nth-child(1) {
    animation-delay: 0.1s;
}

.demo-card:nth-child(2) {
    animation-delay: 0.2s;
}

.demo-card:nth-child(3) {
    animation-delay: 0.3s;
}

.demo-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.demo-card-btn:focus,
.btn-outline-light:focus {
    outline: 2px solid rgba(125, 80, 244, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .demo-card,
    .demo-card-icon,
    .demo-card-btn,
    .feature-icon {
        animation: none;
        transition: none;
    }
}
