* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    overflow-x: hidden;
    color: white;
}

/* Background Blur Effect */
.background-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 1s ease;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Weather Card */
.weather-card {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(18px);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: slideUp 1s ease;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

#location-input {
    width: 70%;
    max-width: 400px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}

#location-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

#city-button {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: white;
    color: #00b4db;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
}

#city-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: #00b4db;
    color: white;
}

.weather-details h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.temp-box h1 {
    font-size: 5rem;
    margin: 20px 0;
    font-weight: 600;
}

#weather {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.extra-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info-card {
    background: rgba(255,255,255,0.15);
    padding: 15px 25px;
    border-radius: 15px;
    min-width: 150px;
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.info-card i {
    margin-right: 10px;
}

.error-message {
    margin-top: 20px;
    color: #ffdddd;
    font-weight: 500;
}

/* Features */
.features {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255,255,255,0.12);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
    margin-top: 80px;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.testimonial {
    background: rgba(255,255,255,0.12);
    padding: 30px;
    border-radius: 20px;
    max-width: 350px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.testimonial:hover {
    transform: scale(1.03);
}

/* Footer */
footer {
    margin-top: 80px;
    padding: 30px;
    text-align: center;
    background: rgba(0,0,0,0.15);
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.4rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ffe082;
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media(max-width: 768px) {

    .hero h1 {
        font-size: 2.5rem;
    }

    .temp-box h1 {
        font-size: 3.5rem;
    }

    .search-box {
        flex-direction: column;
        align-items: center;
    }

    #location-input {
        width: 100%;
    }
}