/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7fb;
    color: #333;
}

/* Navbar */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease-in-out;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
}

nav a:hover {
    color: #1abc9c;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    header{
        padding: 20px 40px;
    }

    nav {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #2c3e50;
        width: 100%;
        max-width: 300px;
        transform: translateX(100%);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    nav a {
        padding: 10px 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav.show {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
    }
}

/* Main Section */
main {
    padding: 30px;
}

/* Account Overview */
.account-overview {
    background-color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.account-overview h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.account-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.summary-item {
    flex: 1;
    text-align: center;
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.summary-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.summary-item p {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Transactions Section */
.transactions {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.transactions h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.transactions ul {
    list-style-type: none;
}

.transactions li {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    font-weight: 500;
}

.transactions li:last-child {
    border-bottom: none;
}

.amount {
    color: #e74c3c;
}

.date {
    color: #95a5a6;
}

/* Call to Action Buttons */
.cta-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.button {
    background-color: #1abc9c;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 250px;
    display: block;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #16a085;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: auto; 
    padding: 20px;
    text-align: center; 
    gap: 20px; 
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 20px; 
}

.hero-text-container h1 {
    font-size: 50px; 
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text-container p {
    color: hsl(233, 8%, 62%);
    font-size: 16px; 
    margin-bottom: 20px;
}

.hero-text-container .button {
    padding: 12px 28px;
    border: none;
    outline-width: 0;
    color: white;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 400;
    background-image: linear-gradient(120deg, hsl(192, 70%, 51%), hsl(136, 65%, 51%));
}

.hero-img-container {
    background-image: url('./images/bg-intro-desktop.svg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    padding-top: 20px;
    margin-top: 20px;
}

.hero-img-container img {
    width: 100%;
    max-width: 300px; 
}

/* Responsive Styling */
@media (min-width: 768px) {
    .hero-section {
        flex-direction: row; 
        text-align: left;
        gap: 96px;
    }

    .hero-text-container {
        align-items: flex-start;
        text-align: left;
        margin-bottom: 0;
    }

    .hero-text-container h1 {
        font-size: 70px;
    }

    .hero-text-container p {
        font-size: 18px; 
    }

    .hero-img-container img {
        max-width: 500px;
    }
}


/* Featured Section */
.featured-section {
    padding: 40px 20px;
    text-align: center;
    background-color: hsl(233, 26%, 24%);
    color: white;
}

.featured-section h2 {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.1;
}

.services-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-item {
    max-width: 300px;
    background-color: hsl(233, 26%, 24%);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid darkslategray;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.service-item h3 {
    font-size: 24px;
    font-weight: 800;
    margin-top: 15px;
    color: white;
}

.service-item p {
    font-size: 14px;
    color: hsl(233, 8%, 62%);
    margin-top: 10px;
    font-weight: 400;
}

.service-item button {
    padding: 12px 28px;
    border: none;
    outline-width: 0;
    color: white;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 400;
    background-image: linear-gradient(120deg, hsl(192, 70%, 51%), hsl(136, 65%, 51%));
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
    }

    form {
        padding: 10px;
    }
}


.testimonial-header {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    padding-bottom: 40px;
}

.testimonials-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonials-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonial-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-item p {
    font-size: 1em;
    margin-bottom: 15px;
}

.testimonial-item h4 {
    color: #555;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.newsletter-section h2 {
    color: #fff;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-form input {
    padding: 10px;
    font-size: 1em;
    width: 250px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

.newsletter-form button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.newsletter-form button:hover {
    background-color: #0056b3;
}


/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
}
