/* Index.html specific styles */

/* Hero Section with Chatbot */
.hero {
    text-align: center;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent);
    z-index: 0;
}

.hero h1 {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 0;
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    transform: translateY(-50px);
}

.hero p {
    font-size: 28px;
    margin: 10px 0 30px 0;
    position: relative;
    z-index: 1;
    color: #D1D5DB;
    transform: translateY(-50px);
}

/* Hero chatbot styling */
.hero .chatbot {
    background: linear-gradient(45deg, #1A1F2E, #2A2F3E);
    border: 2px solid #00D4FF;
    border-radius: 15px;
    padding: 34px;
    max-width: 765px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
    animation: pulse 2s infinite;
    min-height: 382.5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(-50px);
}

.hero .chatbot .labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 21.25px;
    font-size: 15.3px;
}

.hero .chatbot .labels span {
    color: #D1D5DB;
}

.hero .chatbot .labels .employer-btn {
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    color: #FFFFFF;
    padding: 8.5px 17px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero .chatbot .labels .employer-btn:hover {
    transform: scale(1.05);
}

.hero .chatbot p {
    font-size: 17px;
    margin-bottom: 21.25px;
    flex-grow: 1;
    text-align: center;
}

#jobseeker-chatbot p {
    margin: 12.75px 0 29.75px 0;
    transform: none;
    text-align: center;
    flex-grow: 0;
}

#employer-chatbot p {
    transform: translateY(0);
    padding-top: 4.25px;
    text-align: center;
}

.hero .chatbot .options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 17px;
    justify-items: center;
    min-height: 170px;
}

.hero .chatbot .options button {
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    border: none;
    color: #FFFFFF;
    padding: 12.75px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
    width: 297.5px;
    height: 68px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15.3px;
}

.hero .chatbot .options button:hover {
    transform: scale(1.05);
}

/* Header navigation style for index */
header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header nav a {
    color: #D1D5DB;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s, text-shadow 0.3s;
}

header nav a:hover {
    color: #00D4FF;
    text-shadow: 0 0 5px #00D4FF;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
    text-align: center;
    background: rgba(10, 14, 23, 0.7);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.how-it-works.visible {
    opacity: 1;
    transform: translateY(0);
}

.how-it-works h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.how-it-works .toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.how-it-works .toggle-btn {
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s;
    font-size: 16px;
    font-weight: 600;
}

.how-it-works .toggle-btn:hover {
    transform: scale(1.05);
}

.how-it-works .toggle-btn.active {
    background: linear-gradient(45deg, #00D4FF, #A855F7);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background: #1A1F2E;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
}

.step i {
    color: #00D4FF;
    font-size: 40px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00D4FF;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #A855F7, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.step p {
    font-size: 16px;
    color: #D1D5DB;
}

/* Blogs Section */
.blogs {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.blogs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent);
    z-index: 0;
}

.blogs.visible {
    opacity: 1;
    transform: translateY(0);
}

.blogs h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.blogs .story p {
    font-size: 16px;
    color: #D1D5DB;
}

/* FAQ Section */
.faq {
    padding: 80px 20px;
    text-align: center;
    background: rgba(10, 14, 23, 0.7);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.faq.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    max-width: 100%;
}

.faq-item summary {
    background: #1A1F2E;
    padding: 15px;
    border: 1px solid #00D4FF;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
    max-width: 100%;
    box-sizing: border-box;
}

.faq-item summary:hover {
    background: linear-gradient(45deg, #A855F7, #00D4FF);
}

.faq-item p {
    background: #2A2F3E;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    color: #D1D5DB;
    max-width: 100%;
}

.faq-item a {
    color: #00D4FF;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.faq-item a:hover {
    color: #A855F7;
    text-shadow: 0 0 5px #A855F7;
}

.faq .more-questions {
    display: inline-block;
    margin-top: 20px;
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s;
    cursor: pointer;
}

.faq .more-questions:hover {
    transform: scale(1.05);
}

.extra-faq {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.extra-faq.visible {
    display: block;
}

.extra-faq .faq-item {
    margin-bottom: 15px;
}

.extra-faq .faq-item summary {
    background: #1A1F2E;
    padding: 15px;
    border: 1px solid #00D4FF;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
    max-width: 100%;
    box-sizing: border-box;
}

.extra-faq .faq-item summary:hover {
    background: linear-gradient(45deg, #A855F7, #00D4FF);
}

.extra-faq .faq-item p {
    background: #2A2F3E;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    color: #D1D5DB;
    max-width: 100%;
}

/* Final Call to Action Section */
.final-cta {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent);
    z-index: 0;
}

.final-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.final-cta h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    color: #D1D5DB;
}

.final-cta .cta {
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #0A0E17, #1A1F2E);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #00D4FF;
    position: relative;
    z-index: 1;
}

footer .links a {
    color: #D1D5DB;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s, text-shadow 0.3s;
}

footer .links a:hover {
    color: #00D4FF;
    text-shadow: 0 0 5px #00D4FF;
}

footer .socials {
    margin: 20px 0;
}

footer .socials a {
    color: #00D4FF;
    margin: 0 10px;
    font-size: 24px;
    transition: color 0.3s, text-shadow 0.3s;
}

footer .socials a:hover {
    color: #A855F7;
    text-shadow: 0 0 5px #A855F7;
}

footer .contact {
    margin-bottom: 20px;
}

footer .contact p {
    margin-bottom: 10px;
    color: #D1D5DB;
}

footer .contact form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

footer .contact input {
    padding: 10px;
    border: 1px solid #00D4FF;
    border-radius: 5px;
    background-color: #1A1F2E;
    color: #FFFFFF;
}

footer .contact button {
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

footer .contact button:hover {
    transform: scale(1.05);
}

/* Responsive Design for Index specific styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 20px;
    }

    .hero .chatbot {
        max-width: 100%;
        padding: 17px;
    }

    .value-proposition h2,
    .success-stories h2 {
        font-size: 32px;
    }
}

/* Dynamic Blog Loading Styles */
.loading-story, .no-blogs, .error-story {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: rgba(26, 31, 46, 0.8);
    border-radius: 12px;
    color: #B8BCC8;
    text-align: center;
}

.loading-placeholder, .no-blogs-placeholder, .error-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-placeholder i {
    font-size: 2rem;
    color: #00D4FF;
    animation: spin 1s linear infinite;
}

.no-blogs-placeholder i, .error-placeholder i {
    font-size: 2.5rem;
    color: #8B949E;
    margin-bottom: 10px;
}

.error-placeholder i {
    color: #EF4444;
}

.loading-placeholder p, .no-blogs-placeholder p, .error-placeholder p {
    margin: 0;
    font-size: 1rem;
    color: #B8BCC8;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced blog story hover effects */
.stories .story {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stories .story:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.stories .story img {
    transition: all 0.3s ease;
}

.stories .story:hover img {
    transform: scale(1.05);
}