@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER STYLES */
header{
    background-color: #000000;
    color: white;
    width: 100%;
    padding: 0;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h2{
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h2::before{
    content: "";
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #4C5FD5, #7C3AED);
    border-radius: 8px;
    display: inline-block;
    position: relative;
}

.logo h2::after{
    content: "a";
    position: absolute;
    left: 11px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-left: -32px;
}

.navbar ul{
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links{
    text-decoration: none;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-links:first-child{
    background-color: #4c5fd5;
    border: 1px solid #4c5fd5;
}

.nav-links:first-child:hover{
    background-color: #3d4fbf;
    border-color: #3d4fbf;
}

.nav-links:last-child{
    background-color: transparent;
    border: 1px solid #333;
}

.nav-links:last-child:hover{
    border-color: #666;
}

/* HERO SECTION STYLES */

.hero{
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, #dadbf1 0%, #e8e9f5 100%);
}

.hero-content{
    max-width: 600px;
    margin: 0 auto;
}

.hero h2{
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.search-container{
    display: flex; /* To align input and button side by side */
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid #fff;
    border-radius: 8px;
    overflow: hidden; /* To ensure the border radius applies to both elements */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.search-bar{
    flex-grow: 1; /* Allows the input to take up available space */
    border: none;
    outline: none; /* Remove default focus outline */
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    background-color: transparent;
    color: #333;
}

.search-bar::placeholder{
    color: #888;
    font-weight: 400;
}

.search-button{
    background-color: white;
    border: none;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #666;
    transition: all 0.3s ease;
}

.search-button:hover{
    background-color: #f8f9fa;
    color: #4c5fd5;
    transform: translateX(2px);
}

/* MAIN CONTENT */
main{
   padding: 4rem 2rem;
   max-width: 1200px;
   margin: 0 auto;
   width: 100%;
   flex: 1; /* Push the footer to the bottom of the page */
}

.cards-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-img{
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.card{
    background-color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card p{
    color: #666;
    line-height: 1.6;
}

.card-link{
    text-decoration: none;
    color: #4c5fd5;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-link:hover{
    color: #3d4fbf;
    text-decoration: underline;
}

/* FOOTER STYLES */
footer ul{
    list-style: none;
    padding-left: 0;
}

footer{
    background-color: #000000;
    color: white;
    line-height: 1.5;
}

footer a{
    text-decoration: none;
    color: #eee;
}

a:hover{
    text-decoration: underline;
}

.ft-title{
    color: #fff;
    font-size: 1.375rem;
    padding-bottom: 0.625rem;
}

.ft-main{
    padding: 1.25rem 1.875rem;
    display: flex;
    flex-wrap: wrap;
}

.ft-main-item{
    padding: 1.25rem;
    min-width: 12.5rem; /*200px / 16px = 12.5rem*/
   /* border: 2px solid red; */
}

form{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

input[type="email"]{
    border: 1px solid #333;
    padding: 0.75rem;
    border-radius: 4px;
    background-color: #111;
    color: white;
    font-size: 1rem;
   
}

input[type="email"]:focus{
    outline: none;
    border-color: #4c5fd5;
}

input[type="submit"]{
    background-color: #4c5fd5;
    color: white;
    cursor: pointer;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover{
    background-color: #3d4fbf;
}

.ft-social{
    padding:  1.25rem 1.875rem;
}

.ft-social-list{
    display: flex;
    justify-content: center;
    border-top: 1px #777 solid;
    padding-top: 1.25rem;
    gap: 1rem;
}

.ft-social-list li{
    font-size: 1.5rem;
}

.ft-social-list a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ft-social-list a:hover{
    background-color: #4c5fd5;
    transform: translateY(-2px);
}

.ft-legal{
    padding: 1rem 1.875rem;
    border-top: 1px solid #333;
}

.ft-legal-list{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.ft-legal-list li{
    white-space: nowrap;
    font-size: 0.9rem;
    color: #aaa;
}

/* RESPONSIVE DESIGN */

/* Mobile First - Extra small devices (phones, 0px and up) */
        @media (max-width: 480px) {
            .navbar {
                padding: 1rem;
                flex-direction: column;
                gap: 1rem;
            }

            .navbar ul {
                flex-direction: column;
                gap: 0.5rem;
                width: 100%;
            }

            .nav-links{
               text-align: center;
               width: 100%;
               padding: 0.75rem;
            }

            .logo h2{
                font-size: 1.25rem;
                text-align: center;
            }

            .hero {
                padding: 2rem 1rem;
            }

            .hero h2 {
                font-size: 2rem;
               margin-bottom: 1.5rem;
            }


            .search-container {
                max-width: 100%;
                margin: 0;
            }

            main{
                padding: 2rem 1rem;
            }

            .card-wrapper {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                margin-top: 1.5rem;
            }

            .card {
                padding: 1.5rem;
            }

            form{
                align-items: center;
            }

            input[type="email"],
            input[type="submit"] {
                width: 100%;
                max-width: 300px;
            }

            .ft-social{
                padding: 1rem;
            }

            .ft-social-list{
                flex-wrap: wrap;
                gap: 0.75rem;
            }

            .ft-legal{
                padding: 1rem;
            }

            .ft-legal-list{
                flex-direction: column;
                align-items: center;
                gap: 0.5rem;
            }
        }

        /* Small Devices (landscape phones, 481px and up) */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .navbar ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .ft-main {
        justify-content: space-around;
        padding: 1.75rem 1.5rem;
    }
    
    .ft-main-item {
        min-width: 200px;
        flex: 0 1 45%;
    }
}

/* Medium Devices (tablets, 769px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h2 {
        font-size: 2.75rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .ft-main {
        justify-content: space-around;
    }
    
    .ft-main-item {
        flex: 0 1 22%;
        min-width: 180px;
    }
}

/* Large Devices (desktops, 1025px and up) */
@media (min-width: 1025px) {
    .ft-main {
        justify-content: space-evenly;
    }
    
    .ft-main-item {
        flex: 0 1 20%;
    }
}

/* Extra Large Devices (large desktops, 1240px and up) */
@media (min-width: 1240px) {
    .ft-main {
        max-width: 1200px;
        margin: 0 auto;
    }
}