@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
:root{
    --bg: #f3f4f6;
    --headerbg : #0f172a;
    --logo:#f2f4f8;
    --logoSide:#2563eb;
    --navLinkC:#eff3f8;
    --alertbg:#0f172a;
    --alertbg:rgb(236, 236, 236);
    --quickSugbtn:var(--logoSide);
    --quickSugtxt:var(--logo);
    --hoverpresetbtn:#487ef1;
    --quickh3:black;
    
}
.dark{
    --bg: #0f172a;
    --headerbg : rgba(255, 255, 255, 0.8);
    --logo:#1e293b;
    --logoSide:#f57c57;
    --navLinkC:#64748b;
    --alertTextC:rgb(5, 5, 5);
    --alertbg:rgb(236, 236, 236);
    --quickSugbtn:var(--logoSide);
    --quickSugtxt:var(--logo);
    --hoverpresetbtn:#fd5d2c;
    --quickh3:rgb(255, 255, 255);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}
body {
    background: var(--bg);
    align-items: center;
    font-family: Arial, sans-serif;
    padding: 20px;
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--headerbg);
    width: 100%;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position:sticky;
    top: 0;
    z-index: 1000;
}
.logo{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--logo);
    letter-spacing: -0.5px;
    cursor: pointer;
    text-shadow: 0 0 10px var(--logo,0.2)
}
.logo .highlight{
    color: var(--logoSide);
    display: inline-block;
    animation: glow 2s infinite ease-in-out ;
}
@keyframes glow {
    0%{text-shadow: 0 0 10px var(--logoSide,0.2);
        transform: scale(1);
    }
    50%{text-shadow: 0 0 10px var(--logoSide,0.6);
        transform: scale(1.04);
    }
    100%{text-shadow: 0 0 10px var(--logoSide,0.2);
        transform: scale(1);
    }
}
.nav-links{
    align-items: center;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links a{
    text-decoration: none;
    color: var(--navLinkC);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:hover,
.nav-links a.active{
    color: var(--logoSide);
}
.nav-links a::after{
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--logoSide);
    transition: width 0.3s ease;
}
.nav-links a:hover::after{
    width: 100%;
}
#toggleTheme{
    font-size: larger;
    padding: 6px;
    font-weight: 700;
    border: 1px solid var(--logo);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.08s ease-out;
}
#heading{
    color: var(--logoSide);
    margin-top: 50px;
    text-align: center;
    margin-bottom: 30px;
}
#jobform{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}
input[type="text"]{
    padding: 14px;
    width: 30%;
    border: 1px solid var(--logoSide);
    border-radius: 8px;
}
button{
    padding: 12px;
    font-weight: 700;
    border: 1px solid var(--logoSide);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.08s ease-out;
}
button:active{
    transform: scale(.8);
}
button:hover{
    background-color: var(--logoSide);
}
#status{
    align-items: center;
    margin: 20px;
    color: var(--alertTextC);
    background-color: var(--alertbg);
    width: max-content;
    padding: 10px;
    border-radius: 8px;
    opacity: 0.8;
} 
h3{
    color: var(--quickh3);
}
#quick-search {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px;
    animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
    
}
.preset {
    background: var(--quickSugbtn);
    color: var(--quickSugtxt);
    border: none;
    margin: 5px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 2s ease;
    animation: floaty 1.8s ease infinite;
}
.preset:hover {
    /* Fixed: unitless scale */
    transform: scale(1.1); 
    background-color: var(--hoverpresetbtn);
    animation-play-state: paused; 
}
@keyframes floaty{
    0%{
        transform: translateY(0);
        animation-delay: 0s;
    }
    50%{
        transform: translateY(-4px);
        animation-delay: 0.5s;
    }
    100%{
        transform: translateY(0);
        animation-delay: 0s;
    }
    
}
.preset:nth-child(2){
    animation-delay: 0.2s;
}
.preset:nth-child(3){
    animation-delay: 0.4s;
}
.preset:nth-child(4){
    animation-delay: 0.6s;
}

.graph{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card {
    background: white;
    width: 700px;
    height: 400px;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
