
* {
    margin: 0;
    padding: 0;
    font-family: Assistant,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   
    line-height: 1.6;
    background-image: url('back90.avif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: keeps image fixed when scrolling */
    background-color: #cccccc; /* Optional: a fallback color if the image doesn't load */
    min-height: 100vh; 
    height : 100%
    
}


/* header section */
.left{
    display:flex;
    align-items:center;
}
.logo {
    margin-left: 2px;
    margin-top: 30px;
}
.logo-text {  
    margin : 30px;
    height: 300px;
    width : 300px
}
.nav-links {
    display: flex;
    min-width: 500px;
    justify-content: space-evenly;
}

.nav-links a {
    font-size: 18px;
    letter-spacing: .3px;
    color: rgb(242, 247, 246);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 28px 0;
     border-bottom: 4px solid #033067;
    
}
.nav-links a:hover {
    color : grey;
    border-bottom: 4px solid #160011;
}

header {
    display: flex;
    background-image: linear-gradient(rgb(23, 1, 13), rgb(19, 19, 107));;
    height: 100px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0f0226; 
}




/* Solutions Page */
.solutions-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.solutions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.solutions-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: rgb(205, 229, 239);
}

.solutions-subtitle {
    font-size: 1.125rem;
    color: pink;
    max-width: 600px;
    margin: 0 auto;
}






/* Form Styles */
.form-card {
    background:  linear-gradient(rgb(3, 14, 117), rgb(85, 2, 112));;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow:rgb(0, 0, 8);
    margin-bottom: 2rem;
    margin-left: 190px;
    margin-right: 190px;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgb(221, 241, 246);
}

.form-group {
    margin-bottom: 1.5rem;
    color : white;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(186, 180, 180);
}

.file-upload-wrapper {
    position: relative;
     color: rgb(0, 1, 7);
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
     color: rgb(5, 0, 10);
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border : 1px solid rgb(1, 1, 17);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.file-label:hover {
    border-color: var(--primary-color);
    border: 1px dashed rgb(2, 27, 36);
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.file-text {
    font-weight: 600;
    color: rgb(0, 7, 9);
    margin-bottom: 0.25rem;
}

.file-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgb(236, 230, 230);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    color : black;
    font-size: medium;
}

.form-textarea:focus {
    outline: none;
    border-color:  rgb(242, 234, 242);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-actions  {
    flex: 1;
    min-width: 150px;
}
.btn{
    flex : 1;
    width : 400px;
    height : 60px;
    padding : 10px;
    border-radius: 70px;
    font-size: 20px;
    background-color: rgb(2, 40, 56);
    border : 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    color : white;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 24px rgba(8, 27, 64, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(120deg, #dbeafe, #60a5fa, #8b5cf6, #dbeafe);
    background-size: 220% 220%;
    animation: buttonBorderFlow 4s linear infinite;
    z-index: -2;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #0f4ea3 0%, #132c7a 55%, #3c1361 100%);
    z-index: -1;
}

.btn:hover{
     transform: translateY(-3px) scale(1.01);
     box-shadow: 0 16px 34px rgba(8, 27, 64, 0.36);
     border-color: rgba(255, 255, 255, 0.4);
}

.btn:active {
    transform: translateY(-1px) scale(0.995);
}

#confirm-optimize-btn {
    max-width: 340px !important;
}

@keyframes buttonBorderFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.btn-loader {
    display: inline-block;
    margin-left: 0.5rem;
}








/* Results Section */
.results-section {
    margin-top: 2rem;
}

.results-card {
    background: linear-gradient(180deg, #060e1b 0%, #1c162b 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(7, 25, 58, 0.28);
    margin-bottom: 2rem;
    border: 1px solid rgba(173, 216, 255, 0.18);
}

#template-selection-section.results-card,
#ats-results.results-card,
#optimize-results.results-card {
    background: linear-gradient(135deg, #020c29 0%, #071231 45%, #3c1361 100%);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid whitesmoke;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5fbff;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #dbeafe;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
}

.results-content {
    color: #e5eefb;
}

/* ATS Score Display */
.ats-score-display {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.match-level {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fbff;
    margin-bottom: 2rem;
}

.score-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.score-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.matched-items, .missing-items {
    margin-top: 0.5rem;
}

.matched-items {
    color: #bfdbfe;
}

.missing-items {
    color: #dbeafe;
}

.item-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.matched-items .item-tag {
    background: rgba(96, 165, 250, 0.24);
    color: #eff6ff;
}

.missing-items .item-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #dbeafe;
}

.recruiter-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #8ec5ff;
    border-radius: 8px;
}

.recruiter-tips-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.recruiter-tips ul {
    list-style: none;
    padding-left: 0;
}

.recruiter-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.recruiter-tips li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* Optimize Results */
.optimize-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.16) 0%, rgba(37, 99, 235, 0.08) 100%);
    border-radius: 12px;
}

.optimize-success-icon {
    width: 92px;
    height: 92px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 30% 30%, #93c5fd 0%, #3b82f6 45%, #1d4ed8 100%);
    box-shadow: 0 0 0 10px rgba(96, 165, 250, 0.12), 0 18px 40px rgba(29, 78, 216, 0.35);
    animation: tickPulse 2.2s ease-in-out infinite;
    color: transparent;
    overflow: hidden;
}

.optimize-success-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.38), rgba(255,255,255,0.02));
}

.optimize-success-icon::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 22px;
    width: 22px;
    height: 40px;
    border-right: 6px solid #fff;
    border-bottom: 6px solid #fff;
    transform: rotate(45deg);
    animation: tickReveal 0.9s ease-out both;
}

.optimize-success-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.optimize-success-message {
    color: #dbeafe;
    margin-bottom: 2rem;
}

.score-change-banner {
    margin: 18px 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f4ea3 0%, #183a9e 45%, #3c1361 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(15, 78, 163, 0.28);
    animation: comparisonGlow 2.8s ease-in-out infinite;
}

.comparison-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 18px 0 22px;
}

.ats-score-card {
    flex: 1;
    min-width: 220px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0c3f88 0%, #112b7a 50%, #31105a 100%);
    border: 1px solid rgba(219, 234, 254, 0.22);
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(10, 30, 84, 0.34);
    animation: comparisonFloatIn 0.6s ease-out both;
}

.ats-score-card-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.ats-score-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.ats-score-card-level {
    font-weight: 600;
    color: #eef4ff;
}

.ats-score-card .recruiter-tips {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #b8d7ff;
}

.ats-score-card .recruiter-tips-title,
.ats-score-card .recruiter-tips li {
    color: #ffffff;
}

.download-btn {
    background-color: rgb(2, 40, 56);
    color: white;
    padding: 1rem 2rem;
    border-radius: 70px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 24px rgba(8, 27, 64, 0.28);
    min-width: 320px;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 34px rgba(8, 27, 64, 0.36);
    border-color: rgba(255, 255, 255, 0.4);
}

.download-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(120deg, #dbeafe, #60a5fa, #8b5cf6, #dbeafe);
    background-size: 220% 220%;
    animation: buttonBorderFlow 4s linear infinite;
    z-index: -2;
}

.download-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #0f4ea3 0%, #132c7a 55%, #3c1361 100%);
    z-index: -1;
}

.download-btn:active {
    transform: translateY(-1px) scale(0.995);
}

@keyframes tickPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(96, 165, 250, 0.12), 0 18px 40px rgba(29, 78, 216, 0.35);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 14px rgba(96, 165, 250, 0.08), 0 22px 46px rgba(29, 78, 216, 0.42);
    }
}

@keyframes tickReveal {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0.35);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

@keyframes comparisonFloatIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes comparisonGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 14px 34px rgba(15, 78, 163, 0.28);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 18px 42px rgba(60, 19, 97, 0.34);
    }
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}









/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .btn-primary-nav {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

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

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

/* ================= EXISTING CODE (UNCHANGED ABOVE) ================= */

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .btn-primary-nav {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

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

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

/* ================= NEW RESPONSIVE IMPROVEMENTS ================= */

/* Fix form width (remove rigid margins) */
.form-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    width: 90%;
}

/* Make buttons flexible */
.btn {
    width: 100%;
    max-width: 400px;
}

/* Improve grid responsiveness */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Make results responsive */
.results-card {
    width: 90%;
    margin: 0 auto 2rem;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        min-width: unset;
        width: 100%;
    }

    .nav-links a {
        padding: 10px 0;
        font-size: 16px;
        border-bottom: none;
    }

    .logo-text {
        width: 180px;
        height: auto;
        margin: 10px;
    }

    body {
        background-attachment: scroll;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .form-textarea {
        font-size: 14px;
        padding: 0.75rem;
    }

    .form-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .solutions-title {
        font-size: 1.8rem;
    }

    .solutions-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}
}
.solutions-section {
    min-height: calc(100vh - 200px);
}
.solutions-section {
    padding: 4rem 0;
    min-height: auto;
}




/* Template Selection Styles */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.template-item {
    background: linear-gradient(180deg, #021630 0%, #04033f 100%);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f5fbff;
}

.template-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(5, 20, 48, 0.35);
    border-color: #8ec5ff;
}

.template-item.selected {
    border-color: #d8efff;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 25px -5px rgba(24, 98, 194, 0.32);
}

.template-option-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.template-option-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.template-option-style {
    font-size: 0.875rem;
    color: #dbeafe;
}



.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.template-card {
    background: linear-gradient(180deg, #0f4ea3 0%, #0a336d 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(6, 24, 57, 0.28);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(6, 24, 57, 0.38);
}

.template-card.selected {
    border-color: #d8efff;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}

.template-image-container {
    position: relative;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.template-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.template-info {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #f8fbff;
}

.template-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(29, 78, 216, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}


.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* bigger cards */
    gap: 20px;
}

.template-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.template-card:hover {
    transform: scale(1.03);
}

.template-image-container {
    width: 100%;
    height: 380px; /* 🔥 increase height */
    overflow: hidden;
    border-radius: 12px;
}

.template-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps it clean */
}


.templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.template-image-container {
    height: 500px;
}
.template-img {
    transition: transform 0.3s ease;
}

.template-card:hover .template-img {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .templates-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .template-image-container {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .template-image-container {
        height: 320px;
    }
}

@media (max-width: 520px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .template-image-container {
        height: 260px;
    }
}

#template-selection-section .results-content p,
#ats-results p,
#optimize-results p,
#ats-results strong,
#optimize-results strong,
#ats-results li,
#optimize-results li {
    color: #eaf4ff;
}

#template-selection-section .results-content p {
    color: white;
    font-size: 1.1rem;
}

#template-selection-section .results-title,
#optimize-results .results-title,
#optimize-results .optimize-success-title,
#optimize-results .optimize-success-message,
#ats-results .score-section-title,
#ats-results .match-level {
    color: #eff6ff;
}
