/* ================================================
   FRONTEND HOME PAGE STYLES (Movical.net inspired)
   ================================================ */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-muted: #666;
    --border-light: #e0e0e0;
    --transition: all 0.3s ease;
}

/* ================================================
   HERO SECTION
   ================================================ */

/* ================================================
   HERO SECTION
   ================================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    margin-top: 60px;
    text-align: left;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-subtitle strong {
    font-weight: bold;
    color: #fff;
}

/* Hero Brands */
.hero-brands {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-brand-logo {
    height: 50px;
    width: 50px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.hero-brand-logo:hover {
    background-color: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.hero-brand-logo img {
    max-height: 40px;
    max-width: 40px;
    object-fit: contain;
}

.hero-brand-logo span {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Search Form */
.hero-search-form {
    margin-bottom: 20px;
}

.search-box-wrapper {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    background-color: white;
    color: #333;
    box-sizing: border-box;
    border-radius: 8px 0 0 8px;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    background-color: #f9f9f9;
}

/* Autocomplete Dropdown */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.autocomplete-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    min-height: auto;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f5f7ff;
}

.autocomplete-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.autocomplete-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.autocomplete-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.autocomplete-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

.autocomplete-item:hover .autocomplete-title {
    color: var(--primary-color);
}

.autocomplete-slug {
    color: #999;
    font-size: 0.8rem;
    display: block;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    margin: 2px 0 0 0;
    padding: 0;
}

.autocomplete-services {
    color: #999;
    font-size: 0.8rem;
    display: block;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
    margin: 4px 0 0 0;
    padding: 0;
}

.autocomplete-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0 8px 8px 0;
}

.search-btn:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.search-help {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    display: block;
    line-height: 1.5;
}

/* Quick Services Cards */
.hero-quick-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.quick-service-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.quick-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    color: var(--primary-color);
}

.quick-service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.quick-service-text h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-placeholder {
    text-align: center;
    color: rgba(255,255,255,0.3);
}

.illustration-placeholder i {
    font-size: 5rem;
    opacity: 0.5;
    margin-bottom: 15px;
}

.illustration-placeholder p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.7;
}

/* ================================================
   BRANDS SECTION
   ================================================ */

.brands-section {
    background-color: var(--light-bg);
    padding: 40px 0;
    text-align: center;
}

.brands-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 600;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.brand-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
}

.brand-logo img {
    max-height: 60px;
    max-width: 120px;
    object-fit: contain;
}

/* ================================================
   SERVICES SECTION
   ================================================ */

.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card a:hover {
    color: var(--secondary-color);
}

/* ================================================
   BENEFITS SECTION
   ================================================ */

.benefits-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================================================
   DEVICES SECTION
   ================================================ */

.devices-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.device-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.device-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.device-card img {
    max-height: 100px;
    margin-bottom: 10px;
    object-fit: contain;
}

.device-card-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ================================================
   FAQ SECTION
   ================================================ */

.faq-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
    background-color: white;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-answer {
    padding: 0 20px 20px 20px;
    display: none;
    color: var(--text-muted);
    line-height: 1.6;
    animation: slideDown 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   TESTIMONIALS SECTION
   ================================================ */

.testimonials-section {
    padding: 80px 0;
}

.rating-badge {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1200px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-quick-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-brands {
        margin-bottom: 25px;
    }

    .search-box-wrapper {
        flex-direction: column;
        border-radius: 8px;
    }

    .search-input-container {
        position: relative;
    }

    .search-input {
        border-radius: 8px 8px 0 0;
    }

    .search-autocomplete {
        border-radius: 0 0 8px 8px;
    }

    .search-btn {
        border-radius: 0 0 8px 8px;
        justify-content: center;
    }

    .hero-quick-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .quick-service-card {
        padding: 15px;
    }

    .quick-service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .quick-service-text h5 {
        font-size: 0.85rem;
    }

    .hero-illustration {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 30px;
        margin-top: 50px;
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-brands {
        justify-content: center;
        margin-bottom: 20px;
    }

    .search-box-wrapper {
        flex-direction: column;
    }

    .search-input-container {
        position: relative;
    }

    .search-input {
        border-radius: 8px 8px 0 0;
        width: 100%;
    }

    .search-autocomplete {
        border-radius: 0;
        max-height: 300px;
    }

    .search-btn {
        border-radius: 0 0 8px 8px;
    }

    .hero-quick-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .quick-service-card {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }

    .quick-service-text h5 {
        font-size: 0.8rem;
    }

    .hero-illustration {
        height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }

    .devices-grid {
        template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .brands-grid {
        gap: 20px;
    }

    .services-section,
    .benefits-section,
    .devices-section,
    .faq-section,
    .testimonials-section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .search-input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .search-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .hero-brands {
        gap: 15px;
    }

    .hero-brand-logo {
        height: 40px;
        width: 40px;
    }

    .hero-brand-logo img {
        max-height: 30px;
        max-width: 30px;
    }

    .search-input-container {
        position: relative;
        width: 100%;
    }

    .search-autocomplete {
        width: 100%;
        max-height: 250px;
        border-radius: 0 0 8px 8px;
    }

    .autocomplete-item {
        padding: 10px;
    }

    .autocomplete-item-text {
        min-width: 0;
    }

    .autocomplete-title {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .autocomplete-slug {
        font-size: 0.7rem;
    }

    .hero-quick-services {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quick-service-card {
        padding: 12px 10px;
    }

    .quick-service-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .quick-service-text h5 {
        font-size: 0.75rem;
    }

    .search-help {
        font-size: 0.8rem;
    }

    .hero-illustration {
        height: 200px;
    }

    .illustration-placeholder i {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .service-card {
        padding: 25px 15px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefits-section h2 {
        font-size: 1.8rem;
    }

    .devices-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .device-card {
        padding: 10px;
    }

    .brand-logo {
        height: 50px;
    }

    .brand-logo img {
        max-height: 50px;
        max-width: 100px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 15px 15px 15px;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.container {
    max-width: 1200px;
}

/* Smooth animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Shadow helper classes */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.shadow-md {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
