body{
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0e27;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.mainheading{
    text-align: center;
    color: white;
    margin-top: 0px;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

#searchengine{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 15px;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    width: fit-content;
    margin: 20px auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#searchbar{
    width: 300px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0 20px;
    text-indent: 0;
    color: #333;
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

#searchbar::placeholder{
    color: #999;
    font-weight: 500;
}

#searchbar:focus{
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(102, 126, 234, 0.5);
}

#search-btn{
    padding: 0 30px;
    font-size: 1rem;
    font-weight: 600;
    height: 50px;
    min-width: auto;
    border-radius: 0;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
}

#search-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

#search-btn:active{
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.primaryinfo{
    display: flex;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 5px;
    padding: 30px 25px;
    width: 100%;
    max-width: 350px;
    height: fit-content;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.primaryinfo:hover{
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.primaryinfo h2 {
    font-size: 1.8rem;
    margin: 10px 0;
    font-weight: 600;
}

.primaryinfo h1 {
    font-size: 2.5rem;
    margin: 10px 0;
    font-weight: 700;
}

.primaryinfo h3 {
    font-size: 1rem;
    margin: 8px 0;
    color: #e0e0e0;
    font-weight: 500;
}

.video-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -10;
    filter: opacity(0.25) contrast(130%);
}
  
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.secondaryinfo{
    width: 100%;
    height: fit-content;
    display: flex;
    column-gap: 15px;
    justify-content: center;
    align-items: stretch;
    margin: 5px;
    padding: 5px;
    flex-wrap: wrap;
}

.secondaryinfo>div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    margin: 8px;
    min-width: 90px;
    /* background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%); */
    /* border: 1px solid rgba(102, 126, 234, 0.15); */
    border-radius: 15px;
   
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
}

.secondaryinfo>div:hover{
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.secondaryinfo>div p {
    margin: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e0e0e0;
}

.secondaryinfo>div p:first-of-type {
    font-size: 0.85rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-icon{
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.pressure-icon,
.sunrise-icon,
.winddirection-icon,
.cloudinessicon,
.sealevel-icon,
.wind-icon,
.humidity-icon {
    transform: scale(0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.maxmin{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    gap: 20px;
}

.maxmin h3 {
    flex: 1;
    text-align: center;
}

.latlon{
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    width: 90%;
}

.latlon h3 {
    flex: 1;
    text-align: center;
    min-width: 100px;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 40;
  color: #667eea;
}

#cloud-icon{
    transform: scale(2.5);
    margin-bottom: 10px;
}

.welcomemsg{
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 75vh;
    padding: 40px 20px;
    text-align: center;
}

.welcomemsg h1 {
    font-size: 3rem;
    margin: 20px 0;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.welcomemsg h2 {
    font-size: 1.5rem;
    margin: 20px 0;
    font-weight: 500;
    color: #d0d0d0;
    line-height: 1.6;
}

.container{
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    gap: 30px;
}

/* Tablet and larger devices */
@media (min-width: 768px) {
    .mainheading{
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    #searchengine{
        gap: 0;
        padding: 15px;
        flex-direction: row;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 60px;
        width: fit-content;
        margin: 20px auto;
    }

    #searchbar{
        width: 350px;
        height: 50px;
        border-top-left-radius: 60px;
        border-bottom-left-radius: 60px;
        padding: 0 20px;
    }

    #search-btn{
        padding: 0 35px;
        height: 50px;
        border-top-right-radius: 60px;
        border-bottom-right-radius: 60px;
        font-size: 1rem;
        min-width: auto;
    }

    .primaryinfo{
        width: 25%;
        padding: 30px 25px;
        max-width: none;
    }

    .secondaryinfo{
        width: 75%;
        column-gap: 15px;
        justify-content: space-around;
    }

    .secondaryinfo>div {
        min-width: 100px;
    }

    .container{
        flex-direction: row;
        justify-content: space-between;
        padding: 30px 20px;
        gap: 20px;
    }

    .welcomemsg{
        height: 75vh;
    }

    .welcomemsg h1 {
        font-size: 3.5rem;
    }

    .welcomemsg h2 {
        font-size: 1.8rem;
    }
}

/* Desktop devices */
@media (min-width: 1024px) {
    .mainheading{
        font-size: 3.5rem;
        margin-bottom: 40px;
    }

    .weather-icon{
        width: 120px;
        height: 120px;
    }

    .welcomemsg h1{
        font-size: 4rem;
    }

    .welcomemsg h2{
        font-size: 2rem;
    }

    .primaryinfo {
        padding: 35px 30px;
    }

    .secondaryinfo>div {
        padding: 25px 18px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .mainheading{
        font-size: 1.5rem;
        margin-bottom: 15px;
        /* margin-top: 10px; */
    }

    #searchengine{
        gap: 0;
        padding: 10px;
       
        width: 90%;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 30px;
        margin: 15px auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    #searchbar{
        width: 100%;
        height: 45px;
        border-radius: 30px;
        font-size: 1rem;
        padding: 0 18px;
        margin-bottom: 10px;
    }

    #search-btn{
        width: 100%;
        padding: 0 20px;
        font-size: 1rem;
        height: 45px;
        border-radius: 30px;
        min-width: 100%;
    }

    .primaryinfo{
        width: 90%;
        margin: 10px auto;
        padding: 20px 18px;
        border-radius: 15px;
        max-width: 100%;
    }

    .primaryinfo h2 {
        font-size: 1.5rem;
    }

    .primaryinfo h1 {
        font-size: 2rem;
    }

    .secondaryinfo{
        width: 100%;
        column-gap: 8px;
        padding: 10px 5px;
    }

    .secondaryinfo>div{
        min-width: 75px;
        padding: 15px 10px;
        margin: 6px 3px;
        border-radius: 12px;
        font-size: 0.85rem;
    }

    .secondaryinfo>div p {
        margin: 6px 0;
        font-size: 0.8rem;
    }

    .welcomemsg{
        height: auto;
        padding: 30px 15px;
        min-height: 60vh;
    }

    .welcomemsg h1{
        font-size: 1.8rem;
        margin: 15px 0;
    }

    .welcomemsg h2{
        font-size: 1rem;
        margin: 15px 0;
    }

    .weather-icon{
        width: 80px;
        height: 80px;
    }

    .latlon{
        gap: 8px;
        width: 100%;
    }

    .latlon h3 {
        font-size: 0.9rem;
    }

    .maxmin {
        width: 100%;
        gap: 10px;
    }

    .container{
        flex-direction: column;
        padding: 15px 10px;
        gap: 20px;
    }
}