/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

/* General Section Styling */
.section {
    padding: 60px 20px;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headline */
.headline {
    background-color: #003366;
    color: #fff;
    padding: 80px 20px;
}

.headline h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.headline p {
    font-size: 1.25em;
    margin-bottom: 20px;
}

.headline .cta-button {
    background-color: #ff5722;
    color: #fff;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.headline .cta-button:hover {
    background-color: #e64a19;
}

/* Section Styling */
.problem, .solution, .portfolio, .testimonials, .about, .faq {
    background: #fff;
    padding: 60px 20px;
}

h2 {
    color: #003366;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap; /* Wrap items on smaller screens */
}

.feature {
    background-color: #e0e7ff;
    color: #003366;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    min-width: 200px; /* Ensures each feature has a minimum width */
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

/* Portfolio Section */
.portfolio-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Wrap items on smaller screens */
}

.portfolio-item {
    background-color: #ddd;
    padding: 40px;
    width: 30%;
    min-width: 200px; /* Ensures each item has a minimum width */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials blockquote {
    font-style: italic;
    margin-top: 20px;
    color: #666;
}

.testimonials cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #003366;
}

/* FAQ Section */
.faq-item {
    margin-top: 20px;
}

.faq-item h3 {
    font-size: 1.2em;
    color: #003366;
}

.faq-item p {
    color: #666;
    margin-top: 5px;
}

/* Call to Action */
.cta {
    background: #003366;
    color: #fff;
}

.cta-button {
    background-color: #ff5722;
    color: #fff;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #e64a19;
}

/* Footer */
.footer {
    background-color: #002244;
    color: #ddd;
    padding: 30px;
    font-size: 0.9em;
}

.footer nav a {
    color: #ff5722;
    text-decoration: none;
    margin: 0 10px;
}

.footer nav a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
    }

    .headline p {
        font-size: 1.1em;
    }

    /* Stack features and portfolio items */
    .features, .portfolio-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature, .portfolio-item {
        width: 80%; /* Full width on smaller screens */
    }

    /* Reduce padding in sections */
    .section {
        padding: 40px 15px;
    }

    /* Call to Action button adjustment */
    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75em;
    }

    h2 {
        font-size: 1.75em;
    }

    /* Further reduce padding on very small screens */
    .section {
        padding: 30px 10px;
    }

    .headline {
        padding: 60px 10px;
    }

    /* Footer links layout adjustment */
    .footer nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .cta-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

.clients {
    background-color: #f1f7fc;
    padding: 60px 20px;
}

.clients h2 {
    color: #003366;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.clients p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333;
}

.client-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0;
}

.client-list li {
    background-color: #e0e7ff;
    color: #003366;
    padding: 10px 20px;
    border-radius: 5px;
    width: 30%;
    min-width: 200px;
    text-align: center;
    transition: transform 0.3s;
}

.client-list li:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-list li {
        width: 45%; /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .client-list li {
        width: 100%; /* Full width on mobile */
    }
}

.logo img {
    height: 50px;  /* Default size for desktop */
    width: auto;
    transition: transform 0.3s;
}

/* Smaller logo on tablets */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}

/* Smaller logo on mobile devices */
@media (max-width: 480px) {
    .logo img {
        height: 30px;
    }
}
/* Testimonials Section */
.section.testimonials {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.section.testimonials h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.testimonial {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 300px;
    text-align: left;
}

.testimonial p {
    font-style: italic;
    color: #333;
}

.testimonial h4 {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

/* Responsive styling */
@media (max-width: 768px) {
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }
}
