/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: #1976d2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 1.5rem;
    width: auto;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Bento Main */
.bento-main {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(13, auto);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bento Cards */
.bento-card {
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Large Card (Hero) */
.bento-large {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    background: #1976d2;
    color: white;
    padding: 3rem 2rem;
}

.bento-large h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.bento-large .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Small Cards */
.bento-small {
    background: white;
    grid-column: span 1;
    grid-row: span 1;
}

.bento-small:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.bento-small:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.bento-small:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

.bento-small:nth-child(5) {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}

/* Medium Card */
.bento-medium {
    background: #f8f9fa;
    grid-column: 1 / 5;
    grid-row: 4 / 6;
    padding: 2.5rem;
}

.bento-medium h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2196f3;
    font-weight: 600;
}

.benefits-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-around;
}

.benefit-mini {
    flex: 1 1 calc(50% - 1rem);
    text-align: center;
}

.benefit-mini .benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.benefit-mini h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Feature Cards */
.bento-feature {
    background: white;
    grid-row: span 1;
    padding: 1.5rem;
}

.bento-feature .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bento-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2196f3;
    font-weight: 600;
}

.bento-feature p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.bento-feature:nth-child(7) { grid-column: 1 / 2; grid-row: 7 / 8; }
.bento-feature:nth-child(8) { grid-column: 2 / 3; grid-row: 7 / 8; }
.bento-feature:nth-child(9) { grid-column: 3 / 4; grid-row: 7 / 8; }
.bento-feature:nth-child(10) { grid-column: 4 / 5; grid-row: 7 / 8; }
.bento-feature:nth-child(11) { grid-column: 1 / 2; grid-row: 8 / 9; }
.bento-feature:nth-child(12) { grid-column: 4 / 5; grid-row: 8 / 9; }

/* Benefits section */
.about {
    padding: 4rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit h3 {
    margin-bottom: 1rem;
    color: #2196f3;
}

/* Key Features section */
.key-features {
    padding: 4rem 0;
    background: #f8f9fa;
}

.key-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #2196f3;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #2196f3;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Services section */
.services-list {
    padding: 4rem 0;
    background: white;
}

.services-list h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #333;
}

.service-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid #2196f3;
}

.service-item h3 {
    color: #2196f3;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-item ul {
    margin-left: 1.5rem;
}

.service-item li {
    margin-bottom: 0.5rem;
}

/* API Demo section */
.api-demo {
    padding: 4rem 0;
    background: #2c3e50;
    color: white;
}

.api-demo h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.api-section {
    margin-bottom: 3rem;
}

.api-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
    text-align: center;
}

.api-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.api-code,
.api-response {
    background: #34495e;
    padding: 1.5rem;
    border-radius: 10px;
}

.api-code h4,
.api-response h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}



pre {
    background: #2c3e50;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

code {
    color: #e74c3c;
}

/* Pricing section */
.pricing {
    padding: 4rem 0;
    background: white;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.plan.featured {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.plan h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #2196f3;
    margin-bottom: 1.5rem;
}

.plan ul {
    list-style: none;
    margin-bottom: 2rem;
}

.plan li {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

/* Contact sections */
.contact-info {
    padding: 4rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: #2196f3;
}

.contact-link {
    color: #2196f3;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link:hover {
    text-decoration: underline;
}





/* CTA Button */
.cta-button {
    background: #2196f3;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
    color: #ecf0f1;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 1rem;
    }

    .bento-large {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        padding: 2rem;
    }

    .bento-large h1 {
        font-size: 2rem;
    }

    .bento-small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-small:nth-child(2), .bento-small:nth-child(3), .bento-small:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
    }

    .bento-medium {
        grid-column: 1 / 3;
        grid-row: span 2;
    }

    .bento-feature {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-feature:nth-child(5), .bento-feature:nth-child(6), .bento-feature:nth-child(7), .bento-feature:nth-child(8), .bento-feature:nth-child(9), .bento-feature:nth-child(10), .bento-feature:nth-child(11), .bento-feature:nth-child(12) {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-features,
    .benefits,
    .pricing-plans,
    .contact-grid,
    .api-example,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .bento-large {
        grid-column: 1 / 2;
        grid-row: auto;
        padding: 1.5rem;
    }

    .bento-large h1 {
        font-size: 1.8rem;
    }

    .bento-small, .bento-medium, .bento-feature {
        grid-column: 1 / 2;
        grid-row: auto;
        padding: 1.5rem;
    }

    .benefits-mini {
        flex-direction: column;
        gap: 1rem;
    }

    .benefit-mini {
        flex: 1 1 auto;
    }

    .hero,
    .services-hero,
    .contacts-hero {
        padding: 2rem 0;
    }

    .about,
    .services-list,
    .api-demo,
    .pricing,
    .contact-info {
        padding: 2rem 0;
    }

    .bento-main {
        padding: 1rem 0;
    }
}
