/* Global Resets and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* For smooth scrolling on anchor links */
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light gray background for the body */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles from previous update */
.logo-container {
    display: flex; 
    align-items: center; 
    text-decoration: none; 
}
.logo-image-wrapper {
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    overflow: hidden; 
    margin-right: 10px; 
    border: 2px solid #007bff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
.logo-image-wrapper img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #007bff;
    text-decoration: none;
    margin: 0; 
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a { /* Styling for "Features" and "How It Works" */
    color: #333;
    text-decoration: none;
    margin-left: 2rem; /* Increased margin for these links */
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active-link { 
    color: #0056b3; 
    border-bottom: 2px solid #0056b3;
}

/* --- MODIFIED NAVIGATION BUTTONS --- */
.nav-button, .nav-button-primary {
    display: inline-block; /* Allows padding and width to take effect */
    padding: 0.75rem 1.5rem; /* Increased padding for a "boxier" feel */
    border-radius: 8px;    /* Slightly less rounded for a boxier feel, adjust as desired */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    margin-left: 1rem; /* Increased margin-left from previous 1.5rem on .main-nav a */
    border: 2px solid transparent;
    text-align: center;
    line-height: 1.2; /* Ensure text is vertically centered if it wraps */
    min-width: 120px; /* Set a minimum width to help them be the same size */
}

.nav-button { /* Login button */
    background-color: #e9ecef; /* Light grey */
    color: #007bff; /* Blue text */
    border-color: #007bff; /* Blue border */
}

.nav-button:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px); /* Slight lift on hover */
}

.nav-button-primary { /* Register button */
    background-color: #007bff; /* Blue background */
    color: #fff; /* White text */
    border-color: #007bff; /* Blue border, though background covers it */
}

.nav-button-primary:hover {
    background-color: #0056b3; /* Darker blue on hover */
    border-color: #0056b3;
    color: #fff;
    transform: translateY(-2px); /* Slight lift on hover */
}
/* --- END OF MODIFIED NAVIGATION BUTTONS --- */


/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none; 
    background: none;
    border: none;
    color: #007bff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}
.sr-only { 
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Hero Section Styles */
.hero {
    position: relative; 
    color: #fff;
    text-align: center;
    padding: 8rem 0; 
    overflow: hidden; 
    min-height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(-45deg, #007bff, #00bfff, #28a745, #ffc107);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
}

.hero-background {
    background-image: url('images/cat.gif'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2;
}

.hero-content {
    position: relative; 
    z-index: 3;
    max-width: 700px; 
}

.hero h2 {
    font-size: 3rem; 
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background-color: #fff;
    color: #007bff;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px; 
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cta-btn:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Section Title Styles */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after { 
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: #007bff;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}


/* Features Section Styles */
.features-section {
    padding: 4rem 0;
    background-color: #ffffff; 
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem; 
    color: #007bff;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* How It Works Section Styles */
.how-it-works-section {
    padding: 4rem 0;
    background-color: #eef3f7; 
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.step-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: #007bff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,123,255,0.4);
}
.step-icon, .step-icon-seeker, .step-icon-employer {
    font-size: 2.8rem;
    color: #007bff;
    margin-bottom: 1rem;
    margin-top: 2rem; 
}
.step-icon-employer { display: none; } 


.step-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: #666;
}


/* Footer Styles */
.site-footer {
    background-color: #2c3e50; 
    color: #ecf0f1;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.site-footer .footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.85rem;
}
.site-footer .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }
    .logo-container {
        flex-grow: 1; 
    }
    .logo-image-wrapper {
        width: 40px; 
        height: 40px;
    }
    .logo-text {
        font-size: 1.5rem; 
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%; 
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        order: 2; /* Ensure nav comes after logo and toggle */
    }
    .main-nav.active { /* This class is toggled by JS */
        display: flex;
    }
    .main-nav a { /* Includes "Features" and "How it Works" */
        margin-left: 0;
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .main-nav a:last-child { /* Prevent double border if last item is a plain link */
        border-bottom: none;
    }
    /* Ensure buttons also take full width and have bottom border in mobile nav */
    .nav-button, .nav-button-primary {
        width: calc(100% - 2rem); /* Full width minus padding */
        margin: 0.5rem 1rem; /* Centering and vertical spacing */
        text-align: center;
        /* Add bottom border if they are not the last item in the mobile nav flow */
        /* This might need JS to apply conditionally or a different structure */
    }
    .main-nav > a:not(:last-child), /* For plain links */
    .main-nav > .nav-button:not(:last-child),
    .main-nav > .nav-button-primary:not(:last-child) {
         border-bottom: 1px solid #eee;
    }
     .main-nav > .nav-button:last-child,
    .main-nav > .nav-button-primary:last-child {
         border-bottom: none;
    }


    .mobile-nav-toggle {
        display: block;
        order: 1; 
    }

    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .cta-btn { padding: 0.8rem 1.8rem; font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .features-grid, .steps-container { grid-template-columns: 1fr; }
}
