@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Funnel+Display:wght@300..800&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Jost:ital,wght@0,100..900;1,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+Ahom&family=Outfit:wght@100..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Signika+Negative:wght@300..700&family=Signika:wght@300..700&family=Space+Grotesk:wght@300..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

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

body {
    overflow-x: hidden;
}

header {
    width: 100%;
    min-height: 400px;
    background-image: linear-gradient(rgba(53, 52, 52, 0.8), rgba(44, 44, 44, 0.8)), url('../images/p-img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-height: 70px;
    background-color: #e1e1e2;
    padding: 10px 5%;
    gap: 15px;
}

.nav-bar h1 {
    font-size: clamp(22px, 3vw, 29px);
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

.nav-bar ul {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    list-style: none;
    font-size: clamp(16px, 2vw, 21px);
    font-family: 'Signika', sans-serif;
    flex-wrap: wrap;
    align-items: center;
}

.nav-bar ul:last-child li:last-child {
    padding: 10px clamp(20px, 3vw, 40px);
    border-radius: 25px;
    background-color: #899ae0;
    white-space: nowrap;
}

.nav-bar ul li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    position: relative;
    transition: color 0.6s ease;
    white-space: nowrap;
}

.nav-bar ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-bar ul:first-of-type li a:hover::after,
.nav-bar ul:last-of-type li:first-child a:hover::after {
    width: 100%;
}

.content-intro {
    padding: 0 5%;
    margin-top: 75px;
    text-align: center;
}

.content-intro h2 {
    font-size: clamp(28px, 5vw, 45px);
    font-family: 'Hanken Grotesk', sans-serif;
    color: white;
}

.content-intro p {
    font-size: clamp(16px, 2vw, 20px);
    font-family: 'Funnel Display', sans-serif;
    color: white;
    margin-top: 10px;
}

.content-main {
    border-radius: 8px;
    background-color: #f0f0f3;
    max-width: 1200px;
    width: 90%;
    padding: 40px 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
}

.data-title {
    text-align: center;
    font-size: clamp(22px, 3vw, 28px);
    font-family: 'Ubuntu', sans-serif;
    margin: 20px 0;
    color: #333;
    width: 100%;
}

.data-title:first-of-type {
    margin-bottom: 50px;
}

.data-title p {
    margin-top: 10px;
    font-size: clamp(18px, 2.5vw, 22px);
    font-family: 'Arial', sans-serif;
}

.predictdata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px;
}

.data-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    padding: 15px;
    min-height: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-item label {
    font-size: clamp(22px, 3vw, 28px);
    font-family: 'Figtree', sans-serif;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.data-item p {
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    margin: 5px 0;
    line-height: 1.3;
    color: #666;
}

.data-item select,
.data-item input {
    padding: 10px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #9f9d9d;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.data-item:hover {
    transform: translateY(-8px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Skills multi-select dropdown */
.data-item:nth-child(4) {
    min-height: 250px;
}

#Skills + .choices {
    width: 100%;
    border: 1px solid #1e1c1c;
    border-radius: 6px;
    background: #fdfdfd;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#Skills + .choices .choices__inner {
    min-height: 60px;
    padding: 8px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    border: none;
    background: transparent;
}

#Skills + .choices .choices__list--dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.predict-button {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
}

.predict-button button {
    border-radius: 5px;
    background-color: #899ae0;
    border: none;
    width: clamp(250px, 50%, 300px);
    height: 80px;
    font-size: clamp(30px, 4vw, 40px);
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.predict-button button:hover {
    background-color: #7a8bd1;
    transform: scale(1.05);
}

/* Result Section */
.result {
    position: relative;
    margin-top: 50px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.result.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.result-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(0, 0, 0, 0.05);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(241, 218, 85, 0.2);
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
}

.result-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f1da55, #ffd700, #ffeb3b, #f1da55);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.result-icon {
    font-size: clamp(40px, 6vw, 50px);
    color: #f1da55;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.result-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    padding: 0;
}

.result-subtitle {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #7f8c8d;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 30px;
}

.salary-display {
    background: linear-gradient(135deg, #f1da55 0%, #ffd700 100%);
    border-radius: 15px;
    padding: 25px 20px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(241, 218, 85, 0.3);
}

.salary-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

.salary-label {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #2c3e50;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.salary-amount {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.currency-symbol {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    vertical-align: top;
    margin-right: 5px;
}

.result-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.confidence-indicator {
    display: inline-flex;
    align-items: center;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.confidence-indicator i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes shine {
    0% { 
        transform: translateX(-100%) translateY(-100%) rotate(45deg); 
    }
    100% { 
        transform: translateX(100%) translateY(100%) rotate(45deg); 
    }
}

/* Footer */
footer {
    margin-top: 100px;
    background-color: rgb(44, 44, 47);
    min-height: 100px;
    text-align: center;
    padding: 20px 5%;
}

footer p {
    font-size: clamp(16px, 2vw, 19px);
    font-family: 'Kanit', sans-serif;
    color: whitesmoke;
    margin: 5px 0;
}

/* ===== MEDIA QUERIES ===== */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .nav-bar {
        padding: 10px 3%;
    }
    
    .content-main {
        width: 95%;
        padding: 30px 15px;
    }
    
    .predictdata {
        gap: 25px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    header {
        min-height: 350px;
    }
    
    .nav-bar {
        flex-direction: column;
        min-height: auto;
        padding: 15px 3%;
    }
    
    .nav-bar h1 {
        margin-bottom: 10px;
    }
    
    .nav-bar ul {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-bar ul:last-child li:last-child {
        padding: 8px 20px;
    }
    
    .content-intro {
        margin-top: 50px;
    }
    
    .content-main {
        margin-top: 30px;
        padding: 25px 15px;
    }
    
    .predictdata {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .predict-button button {
        width: 80%;
        height: 70px;
    }
    
    .result-content {
        padding: 30px 15px;
    }
    
    footer {
        margin-top: 80px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    header {
        min-height: 300px;
    }
    
    .nav-bar {
        padding: 10px 5%;
    }
    
    .nav-bar h1 {
        font-size: 20px;
    }
    
    .nav-bar ul {
        font-size: 14px;
        gap: 10px;
    }
    
    .nav-bar ul:last-child li:last-child {
        padding: 8px 15px;
    }
    
    .content-intro {
        margin-top: 40px;
    }
    
    .content-intro h2 {
        font-size: 24px;
    }
    
    .content-intro p {
        font-size: 14px;
    }
    
    .content-main {
        width: 95%;
        padding: 20px 10px;
        margin-top: 20px;
    }
    
    .predictdata {
        gap: 15px;
        padding: 5px;
    }
    
    .data-item {
        padding: 12px;
        min-height: 140px;
    }
    
    .data-item label {
        font-size: 20px;
    }
    
    .data-item p {
        font-size: 13px;
    }
    
    .data-item:nth-child(4) {
        min-height: 230px;
    }
    
    .predict-button {
        margin-top: 20px;
    }
    
    .predict-button button {
        width: 90%;
        height: 60px;
        font-size: 28px;
    }
    
    .result {
        margin-top: 30px;
    }
    
    .result-content {
        width: 95%;
        padding: 25px 15px;
    }
    
    .result-icon {
        font-size: 35px;
    }
    
    .salary-display {
        padding: 20px 15px;
    }
    
    footer {
        margin-top: 60px;
        padding: 15px 5%;
    }
    
    footer p {
        font-size: 14px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .nav-bar h1 {
        font-size: 18px;
    }
    
    .nav-bar ul {
        font-size: 12px;
    }
    
    .content-intro h2 {
        font-size: 22px;
    }
    
    .predictdata {
        grid-template-columns: 1fr;
    }
    
    .data-item {
        min-height: 130px;
    }
    
    .predict-button button {
        width: 95%;
        font-size: 24px;
    }
}