/* =========================================
   AI RECOMMENDATION SYSTEM
   Main Website Styles
   ========================================= */


/* ---------- General Reset ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ---------- Body ---------- */

body {
    font-family: Arial, Helvetica, sans-serif;

    background-color: #08111f;

    color: #f5f7fa;

    min-height: 100vh;

    position: relative;
}


/* ---------- Background Image ---------- */

body::before {
    content: "";

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-image: url("../images/background.jpg");

    background-size: cover;

    background-position: center;

    opacity: 0.12;

    z-index: -2;
}


/* ---------- Dark Overlay ---------- */

body::after {
    content: "";

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(4, 10, 20, 0.82);

    z-index: -1;
}


/* ---------- Navbar ---------- */

.navbar {
    width: 100%;

    padding: 18px 7%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: rgba(8, 17, 31, 0.85);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(10px);
}


.logo {
    font-size: 22px;

    font-weight: bold;

    color: #ffffff;

    text-decoration: none;
}


.logo span {
    color: #38bdf8;
}


.nav-links {
    display: flex;

    gap: 28px;

    list-style: none;
}


.nav-links a {
    color: #cbd5e1;

    text-decoration: none;

    font-size: 15px;

    transition: 0.3s;
}


.nav-links a:hover {
    color: #38bdf8;
}


/* ---------- Main Container ---------- */

.container {
    width: 86%;

    max-width: 1100px;

    margin: auto;

    padding: 70px 0;
}


/* ---------- Hero Section ---------- */

.hero {
    min-height: 75vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;
}


.hero-icon {
    width: 105px;
    height: 105px;

    margin-bottom: 25px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.hero h1 {
    font-size: 48px;

    line-height: 1.15;

    max-width: 850px;

    margin-bottom: 20px;
}


.hero h1 span {
    color: #38bdf8;
}


.hero p {
    max-width: 650px;

    color: #a8b3c2;

    font-size: 18px;

    line-height: 1.7;

    margin-bottom: 35px;
}


/* ---------- Buttons ---------- */

.btn {
    display: inline-block;

    padding: 14px 28px;

    border-radius: 8px;

    background: #38bdf8;

    color: #06111f;

    text-decoration: none;

    font-weight: bold;

    border: none;

    cursor: pointer;

    transition: 0.3s;
}


.btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25);
}


/* ---------- Page Heading ---------- */

.page-title {
    text-align: center;

    margin-bottom: 45px;
}


.page-title h1 {
    font-size: 38px;

    margin-bottom: 12px;
}


.page-title p {
    color: #a8b3c2;

    font-size: 16px;
}


/* ---------- Cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}


.card {
    background: rgba(15, 27, 45, 0.82);

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    padding: 30px;

    backdrop-filter: blur(10px);

    transition: 0.3s;
}


.card:hover {
    transform: translateY(-5px);

    border-color: rgba(56, 189, 248, 0.4);
}


.card-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 18px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.card-icon img {
    width: 60px;
    height: 60px;

    object-fit: contain;

    display: block;
}


.card h2 {
    margin-bottom: 12px;

    color: #ffffff;
}


.card p {
    color: #a8b3c2;

    line-height: 1.6;
}


/* ---------- Form ---------- */

.form-container {
    max-width: 700px;

    margin: auto;

    background: rgba(15, 27, 45, 0.88);

    padding: 40px;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
}


.form-group {
    margin-bottom: 25px;
}


.form-group label {
    display: block;

    margin-bottom: 10px;

    font-weight: bold;

    color: #e2e8f0;
}


.form-group select {
    width: 100%;

    padding: 13px;

    border-radius: 8px;

    border: 1px solid #334155;

    background: #0b1728;

    color: #ffffff;

    font-size: 15px;

    outline: none;
}


.form-group select:focus {
    border-color: #38bdf8;
}


/* ---------- Result Cards ---------- */

.result-card {
    max-width: 750px;

    margin: 25px auto;

    padding: 35px;

    border-radius: 18px;

    background: rgba(15, 27, 45, 0.88);

    border: 1px solid rgba(56, 189, 248, 0.18);

    backdrop-filter: blur(12px);
}


.result-icon {
    width: 100px;
    height: 100px;

    margin: 0 auto 20px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.result-icon img {
    width: 90px;
    height: 90px;

    object-fit: contain;

    display: block;
}

/* Roadmap icon slightly smaller */
.result-icon img[alt="Learning Roadmap"] {
    width: 85px;
    height: 85px;
}


.result-card h2 {
    color: #38bdf8;

    margin-bottom: 10px;
}


.result-card h3 {
    font-size: 28px;

    margin-bottom: 15px;
}


.result-card p {
    color: #b8c3d1;

    line-height: 1.7;
}


/* ---------- History Table ---------- */

.table-container {
    overflow-x: auto;

    background: rgba(15, 27, 45, 0.88);

    border-radius: 15px;

    padding: 15px;

    backdrop-filter: blur(10px);
}


.history-table {
    width: 100%;

    border-collapse: collapse;
}


.history-table th,
.history-table td {
    padding: 14px;

    text-align: left;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.history-table th {
    color: #38bdf8;

    background: rgba(56, 189, 248, 0.06);
}


.history-table td {
    color: #d5dde8;
}


/* ---------- Footer ---------- */

.footer {
    text-align: center;

    padding: 25px;

    margin-top: 50px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: #7f8da1;

    font-size: 14px;
}


/* ---------- Responsive Design ---------- */

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;

        gap: 15px;
    }


    .nav-links {
        gap: 15px;
    }


    .hero h1 {
        font-size: 36px;
    }


    .cards {
        grid-template-columns: 1fr;
    }


    .form-container {
        padding: 25px;
    }

}
/* ---------- Mobile Improvements ---------- */

@media (max-width: 600px) {

    .container {
        width: 92%;
        padding: 45px 0;
    }

    .hero {
        min-height: 65vh;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .navbar {
        padding: 15px 5%;
    }

    .logo {
        font-size: 19px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .page-title h1 {
        font-size: 29px;
    }

    .form-container {
        padding: 22px;
    }

    .result-card {
        padding: 25px;
    }

    .result-card h3 {
        font-size: 24px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

	@media (max-width: 900px) {

    .top-projects-grid {
        grid-template-columns: 1fr;
    }

}

}

/* ---------- Learning Roadmap ---------- */

.roadmap-list{
    margin-left:22px;
    margin-top:10px;
}

.roadmap-list li{

    margin-bottom:14px;

    color:#dbe4ef;

    line-height:1.6;

    font-size:15px;

    padding-left:6px;

}
/* ---------- Learning Roadmap ---------- */

.roadmap-list{

    margin-left:22px;
    margin-top:12px;

}

.roadmap-list li{

    margin-bottom:14px;

    color:#dbe4ef;

    line-height:1.7;

    font-size:15px;

    padding-left:5px;

}
/* ---------- Roadmap Timeline ---------- */

.roadmap-timeline{

    margin-top:20px;

}

.roadmap-step{

    display:flex;

    align-items:flex-start;

    gap:16px;

    position:relative;

    padding-bottom:22px;

}

.roadmap-step:last-child{

    padding-bottom:0;

}

.step-number{

    width:38px;
    height:38px;

    min-width:38px;

    border-radius:50%;

    background:#38bdf8;

    color:#08111f;

    font-weight:bold;

    display:flex;

    align-items:center;

    justify-content:center;

    position:relative;

    z-index:2;

}

.step-content{

    flex:1;

    color:#dbe4ef;

    line-height:1.7;

    padding-top:6px;

}

/* Vertical Line */

.roadmap-step:not(:last-child) .step-number::after{

    content:"";

    position:absolute;

    top:38px;

    left:50%;

    transform:translateX(-50%);

    width:2px;

    height:28px;

    background:rgba(56,189,248,.45);

}
.duration-badge{

    display:inline-block;

    padding:10px 16px;

    background:rgba(56,189,248,.12);

    color:#7dd3fc;

    border:1px solid rgba(56,189,248,.25);

    border-radius:30px;

    font-weight:600;

    margin-top:8px;

}
/* ---------- Project Recommendation ---------- */

.project-recommendation-card {
    text-align: left;
}

.project-recommendation-card h2 {
    text-align: center;
}

.project-title {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 16px;
    font-size: 24px;
}

.project-description {
    line-height: 1.7;
    margin-bottom: 22px;
}

.project-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.project-detail {
    flex: 1;
    min-width: 150px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
}

.project-detail strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.project-detail span {
    font-size: 14px;
}

.project-section {
    margin-top: 20px;
}

.project-section h4 {
    margin-bottom: 8px;
}

.project-section p {
    line-height: 1.7;
}
/* ---------- Why This Project ---------- */

.why-project {
    margin-top: 25px;
    margin-bottom: 30px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.why-project h4 {
    margin-bottom: 10px;
}

.why-project p {
    line-height: 1.7;
    margin: 0;
}
/* ---------- Top 3 Matching Projects ---------- */

.top-projects-section {
    margin-top: 45px;
}

.top-projects-section h2 {
    text-align: center;
    margin-bottom: 10px;
}

.top-projects-intro {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.top-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.top-project-card {
    position: relative;
    padding: 25px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-rank {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 18px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
}

.top-project-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.top-project-description {
    line-height: 1.6;
    margin-bottom: 20px;
}

.top-project-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.top-project-info div {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.top-project-info strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.top-project-info span {
    font-size: 14px;
}

.top-project-tech {
    margin-top: 15px;
}

.top-project-tech strong {
    display: block;
    margin-bottom: 7px;
}

.top-project-tech p {
    line-height: 1.6;
    margin: 0;
}