

:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #2563eb;
    --success: #16a34a;

    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --border: #e5e7eb;

    --text-main: #0f172a;
    --text-muted: #475569;
}



* {
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    margin: 0;
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
    color: var(--text-main);
}

.container {
    max-width: 900px;
    margin: auto;
}



header {
    text-align: center;
    padding: 28px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

header h1 {
    margin-bottom: 6px;
    font-size: 1.9rem;
    letter-spacing: -0.3px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

header h3 {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-muted);
}



.card {
    background: var(--bg-main);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.card:first-of-type h2 {
    color: var(--primary);
}

.card:nth-of-type(2) h2 {
    color: var(--secondary);
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #334155;
}

input,
select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    outline: none;
}

input[type="range"] {
    padding: 0;
}

output {
    text-align: right;
    font-size: 0.85rem;
    color: var(--secondary);
}



.predict-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: #ffffff;
    letter-spacing: 0.4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.predict-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239,68,68,0.35);
}



.result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    border-left: 6px solid transparent;
}

.result h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.result.High {
    background: #fee2e2;
    border: 1px solid var(--primary);
    border-left-color: var(--primary);
    color: #7f1d1d;
}

.result.Low {
    background: #dcfce7;
    border: 1px solid var(--success);
    border-left-color: var(--success);
    color: #14532d;
}

.advice {
    font-size: 0.95rem;
}



.site-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 60px;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border-top: 1px solid var(--border);
    padding: 40px 20px 15px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}



.footer-profile {
    max-width: 250px;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--border);
}

.footer-profile h3 {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 600;
}

.footer-profile p {
    font-size: 14px;
    color: var(--text-muted);
}



.footer-links h4,
.footer-connect h4 {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    margin-bottom: 6px;
}

.footer-links a:hover {
    color: var(--secondary);
}



.connect-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px;
    font-size: 14px;
    text-decoration: none;
    color: #334155;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.connect-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.15s ease;
}

.connect-item.instagram svg { color: #E4405F; }
.connect-item.linkedin svg  { color: #0A66C2; }
.connect-item.github svg    { color: #000000; }
.connect-item.twitter svg   { color: #000000; }
.connect-item.email svg     { color: #22c55e; }

.connect-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.connect-item:hover svg {
    transform: scale(1.15);
}



.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}



@media (max-width: 768px) {

    body {
        padding: 12px;
    }

    header {
        padding: 22px 16px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

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

    .predict-btn {
        font-size: 1rem;
        padding: 12px;
    }

    .result h2 {
        font-size: 1.2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: left;
        gap: 25px;
    }

    .connect-item {
        justify-content: center;
    }
}
@media (max-width: 768px) {

    
    .footer-profile {
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .footer-profile h3 {
        margin-top: 6px;
        font-size: 1.1rem;
    }

    .footer-profile p {
        font-size: 0.9rem;
    }

    .avatar-img {
        /* margin: 0 auto 8px; */
        display: block;
    }

    
    .footer-links,
    .footer-connect {
        opacity: 0.6;
        font-size: 0.85rem;
        margin-top: 10px;
    }

    .footer-links h4,
    .footer-connect h4 {
        font-size: 0.9rem;
        text-align: left;
        margin-left: 0;
    }

    
    .site-footer {
        padding-top: 25px;
    }
}



@media (max-width: 768px) {

    
    .connect-item {
        justify-content: flex-start !important;
        text-align: left;
    }

    
    .footer-connect {
        text-align: left;
        align-items: flex-start;
    }

    .footer-connect h4 {
        text-align: left;
    }
}
