/*
Theme Name: AppsFlyer Clone
Description: A modern WordPress theme that replicates the AppsFlyer website design with full Elementor compatibility
Version: 1.0
Author: Your Name
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Header Styles */
.site-header {
    background: #1a1a2e;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-menu li {
    margin: 0 30px;
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 20px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #6c5ce7;
}

.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-demo {
    background: #6c5ce7;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-demo:hover {
    background: #5a4fcf;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 150px 0 100px;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: 60px;
}

.btn-primary {
    background: #fff;
    color: #6c5ce7;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.customer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.customer-logos img {
    height: 30px;
    filter: brightness(0) invert(1);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #6c5ce7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: #1a1a2e;
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: #0f0f1e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #6c5ce7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6c5ce7;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .customer-logos {
        gap: 20px;
    }
    
    .customer-logos img {
        height: 25px;
    }
}

/* Widget-specific Styles */
.features-grid-1 {
    grid-template-columns: 1fr;
}

.features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Customer Logos Widget */
.customer-logos-section {
    text-align: center;
    padding: 60px 0;
}

.logos-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #1a1a2e;
}

.customer-logos-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.customer-logos-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.customer-logos-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.customer-logos-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.customer-logos-8 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    width: auto;
    max-width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover img {
    opacity: 1 !important;
    transform: scale(1.05);
}

/* Testimonials Widget */
.testimonials-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    gap: 40px;
}

.testimonials-grid-1 {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.testimonials-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating .star {
    color: #ddd;
    font-size: 1.2rem;
    margin-right: 2px;
}

.testimonial-rating .star.filled {
    color: #ffc107;
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    flex-shrink: 0;
}

.author-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Header Scrolled State */
.site-header.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    padding: 10px;
}

.menu-toggle .hamburger {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer Bottom */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #6c5ce7;
}

/* Elementor Compatibility */
.elementor-widget-container {
    box-sizing: border-box;
}

.elementor-section {
    position: relative;
}

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

/* Elementor Custom Widget Category */
.elementor-panel .elementor-element-categories .elementor-panel-category-title[data-name="appsflyer-theme"] {
    background-color: #6c5ce7;
}

/* Enhanced Mobile Responsive */
@media (max-width: 1024px) {
    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .customer-logos-6,
    .customer-logos-8 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #1a1a2e;
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-menu .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        border-radius: 6px;
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid-2,
    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .customer-logos-3,
    .customer-logos-4,
    .customer-logos-5,
    .customer-logos-6,
    .customer-logos-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .testimonials-grid-2,
    .testimonials-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .customer-logos-3,
    .customer-logos-4,
    .customer-logos-5,
    .customer-logos-6,
    .customer-logos-8 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
