/* Enhanced Homepage Styles */

/* Hero Section Enhancements */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, #2a2a72 0%, #4286f4 100%);
}

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

.hero-stats {
    display: flex;
    margin: 30px 0;
    justify-content: flex-start;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 100px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge {
    background-color: #ff6b6b;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.badge:nth-child(2) {
    background-color: #4ecdc4;
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Features Section Enhancements */
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #f5f5f5;
}

.tab-btn.active {
    background-color: #2a2a72;
    color: white;
    border-color: #2a2a72;
}

.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #2a2a72, #4286f4);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2a2a72;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-link {
    margin-top: auto;
    color: #2a2a72;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding-top: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.feature-link i {
    font-size: 0.8rem;
    margin-left: 5px;
    margin-bottom: 0;
}

.feature-link:hover {
    opacity: 1;
}

/* Demo Section Enhancements */
.demo {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 40px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../images/demo-preview.jpg');
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.video-placeholder i, .video-placeholder span {
    position: relative;
    z-index: 1;
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.video-placeholder span {
    font-size: 1.2rem;
    font-weight: 500;
}

.video-placeholder:hover {
    transform: scale(0.98);
}

.video-placeholder:hover i {
    transform: scale(1.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.demo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.demo-option {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.demo-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.demo-option i {
    font-size: 2.5rem;
    color: #2a2a72;
    margin-bottom: 20px;
}

.demo-option h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.demo-option p {
    color: #666;
    margin-bottom: 20px;
}

.demo-link {
    display: inline-block;
    background-color: #2a2a72;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.demo-link:hover {
    background-color: #1e1e5a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 42, 114, 0.2);
}

/* Testimonials Section Enhancements */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(42, 42, 114, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #f0f0f0;
}

/* Tools Integration Section */
.tools-integration {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-logo {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100px;
}

.tool-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-logo img {
    max-width: 80%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tool-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Latest Updates Section */
.latest-updates {
    padding: 80px 0;
    background-color: white;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.update-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 5px solid #2a2a72;
}

.update-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.update-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.update-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.update-card p {
    color: #666;
    margin-bottom: 20px;
}

.update-link {
    color: #2a2a72;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.update-link::after {
    content: '→';
    margin-left: 5px;
    transition: all 0.3s ease;
}

.update-link:hover::after {
    transform: translateX(5px);
}

.updates-cta {
    text-align: center;
    margin-top: 40px;
}

.updates-all {
    display: inline-block;
    background-color: transparent;
    color: #2a2a72;
    border: 2px solid #2a2a72;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.updates-all:hover {
    background-color: #2a2a72;
    color: white;
}

/* CTA Section Enhancements */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2a2a72 0%, #4286f4 100%);
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #2a2a72;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: white;
    color: #2a2a72;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-note {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-options {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .feature-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-options {
        flex-direction: column;
    }
}
