
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html{
    height: auto;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: -1;
    opacity: 0.9;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1{
    font-size: 3.5rem;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    padding: 60px 20px 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ff6a00, #ee0979, #662d8c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Styling */
form{
    height: 70px;
    width: 90%;
    max-width: 650px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

form input{
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    padding: 0 25px;
    font-weight: 500;
}

input::placeholder{
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

form button{
    padding: 0 30px;
    height: 100%;
    background: linear-gradient(45deg, #ff6a00, #ee0979);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: 0;
    outline: 0;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

form button:hover {
    background: linear-gradient(45deg, #ff8c00, #ff1493);
    transform: scale(1.02);
}

.seemore{
    background: linear-gradient(45deg, #23a6d5, #23d5ab);
    color: white;
    border: 0;
    outline: 0;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 30px auto 80px;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 166, 213, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seemore:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(35, 166, 213, 0.4);
    background: linear-gradient(45deg, #23d5ab, #23a6d5);
}

.results{
    width: 85%;
    margin: 60px auto 50px;
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 30px;
    padding: 20px;
}

.results img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.results img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        padding: 40px 15px 15px;
    }
    
    form {
        height: 60px;
        margin: 20px auto;
    }
    
    form input {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    form button {
        width: 25%;
        padding: 0 5px;
        font-size: 1rem;
    }
    
    .results {
        width: 90%;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .results img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .results {
        grid-template-columns: 1fr;
    }
    
    form {
        height: 55px;
    }
    
    input::placeholder {
        font-size: 1rem;
    }
}

/* Loading animation */
@keyframes imgani {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results img {
    animation: imgani 0.6s ease-out;
}
