* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #a8edea;
    --text-gradient: linear-gradient(45deg, #fff, #a8edea, #fed6e3);
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: 3px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--text-gradient);
    border-radius: 3px;
}

.subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 2px;
    margin-top: 1rem;
}

.search-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
    position: relative;
    animation: slideUp 1s ease-out 0.3s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

input[type="text"] {
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    width: 400px;
    font-size: 1.1rem;
    background: var(--glass-bg);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

button {
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    background: var(--glass-bg);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.weather-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 35px;
    padding: 3.5rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 0.6s both;
}

.weather-container:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.weather-info {
    flex: 1;
}

.location h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.temperature h3 {
    font-size: 4.5rem;
    margin: 1rem 0;
    font-weight: 600;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.detail:hover::before {
    transform: translateX(100%);
}

.detail:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.label {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.weather-icon {
    text-align: center;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.weather-icon:hover {
    transform: scale(1.05);
}

.weather-icon img {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.forecast-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 35px;
    padding: 3.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out 0.9s both;
}

.forecast-container h3 {
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 2rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.forecast-container h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--text-gradient);
    border-radius: 3px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.forecast-item {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forecast-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.forecast-item:hover::before {
    transform: translateX(100%);
}

.forecast-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.forecast-day {
    font-weight: 500;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.forecast-temp {
    margin-top: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .weather-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .weather-details {
        grid-template-columns: 1fr;
    }

    .search-container {
        flex-direction: column;
        align-items: center;
    }

    input[type="text"] {
        width: 100%;
    }

    h1 {
        font-size: 3rem;
    }

    .temperature h3 {
        font-size: 3.5rem;
    }

    .weather-icon {
        margin-top: 2rem;
    }

    .forecast-grid {
        grid-template-columns: 1fr;
    }
} 