/* Smart Home Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.smart-home-hero {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 80px 20px;
    text-align: center;
}

.smart-home-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.smart-home-hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
}

.smart-home-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-pricing {
    margin: 40px 0;
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
}

.btn-link {
    background: transparent;
    color: #0078d4;
    padding: 10px 20px;
    text-decoration: underline;
}

.btn-link:hover {
    color: #005a9e;
}

.pricing-disclaimer {
    font-size: 0.85rem;
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Top Features Section */
.top-features-section {
    padding: 80px 20px;
    background: #fff;
}

.top-features-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #000;
}

.top-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.top-feature-card {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.top-feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-image-wrapper {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.feature-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.feature-icon-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: block;
}

.top-feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.top-feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Steps Section */
.steps-section {
    padding: 80px 20px;
    background: #f8f8f8;
}

.steps-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #000;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    margin-bottom: 30px;
}

.step-number img {
    width: 80px;
    height: 80px;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.step-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* App Control Section */
.app-control-section {
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.app-control-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.app-control-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.app-image-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.app-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Product Detail Section */
.product-detail-section {
    padding: 80px 20px;
    background: #fff;
}

.product-detail-section:nth-child(even) {
    background: #f8f8f8;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-detail-reverse .product-detail-content {
    direction: rtl;
}

.product-detail-reverse .product-detail-content > * {
    direction: ltr;
}

.product-detail-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.product-detail-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-feature-item img {
    width: 40px;
    height: 40px;
}

.product-feature-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.product-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Compatible Devices Section */
.compatible-devices-section {
    padding: 80px 20px;
    background: #f8f8f8;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0078d4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header a {
    color: #0078d4;
    text-decoration: underline;
}

.section-header a:hover {
    color: #005a9e;
}

.compatible-devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.compatible-device-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.compatible-device-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.compatible-device-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.compatible-device-card img {
    width: 100%;
    height: auto;
    display: block;
}

.compatible-device-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #000;
}

.device-link {
    display: inline-block;
    color: #0078d4;
    text-decoration: underline;
    margin-bottom: 30px;
    font-size: 1rem;
}

.device-link:hover {
    color: #005a9e;
}

.compatible-disclaimer {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.compatible-disclaimer a {
    color: #0078d4;
    text-decoration: underline;
}

.compatible-disclaimer a:hover {
    color: #005a9e;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: #fff;
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #000;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: auto;
    display: block;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    color: #000;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .smart-home-hero h1 {
        font-size: 2.5rem;
    }

    .smart-home-hero h2 {
        font-size: 1.75rem;
    }

    .product-detail-content {
        gap: 40px;
    }

    .top-features-section h2,
    .steps-section h2,
    .app-control-section h2,
    .product-detail-text h2,
    .section-header h2,
    .services-section h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .smart-home-hero {
        padding: 60px 20px;
    }

    .smart-home-hero h1 {
        font-size: 2rem;
    }

    .smart-home-hero h2 {
        font-size: 1.5rem;
    }

    .price-tag {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .top-features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-detail-reverse .product-detail-content {
        direction: ltr;
    }

    .product-features-list {
        grid-template-columns: 1fr;
    }

    .product-buttons {
        flex-direction: column;
    }

    .product-buttons .btn {
        width: 100%;
    }

    .compatible-devices-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .top-features-section h2,
    .steps-section h2,
    .app-control-section h2,
    .product-detail-text h2,
    .section-header h2,
    .services-section h2 {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 480px) {
    .smart-home-hero h1 {
        font-size: 1.75rem;
    }

    .smart-home-hero h2 {
        font-size: 1.25rem;
    }

    .price-tag {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .top-features-section h2,
    .steps-section h2,
    .app-control-section h2,
    .product-detail-text h2,
    .section-header h2,
    .services-section h2 {
        font-size: 1.5rem;
    }
}