/* ============================================
   JobSpark Website Styles
   ============================================ */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    /* Brand colors from original site */
    --primary-color: #156da1;        /* Professional blue */
    --primary-dark: #104d75;         /* Darker blue */
    --primary-light: #1a8acc;        /* Lighter blue */
    --orange-primary: #fc8319;       /* Orange accent */
    --orange-light: #fca734;         /* Light orange */
    --orange-dark: #fc7923;          /* Dark orange */
    --navy: #194480;                 /* Navy blue */

    /* Neutrals */
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f3f3f3;             /* Light gray from original */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px; /* Slightly larger padding */
    border-radius: 4px; /* Less rounded for professional look (was 6px) */
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px); /* More subtle lift (was -2px) */
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px); /* More subtle lift (was -2px) */
}

/* Hero-specific button overrides */
.hero .btn-primary {
    background-color: var(--primary-color); /* Blue */
    border-color: var(--primary-color);
    color: white;
}

.hero .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.hero .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: linear-gradient(135deg, #ff8844 0%, #ff7722 50%, #ff9944 100%);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Scrolled header state - white background */
.header.scrolled {
    background-color: var(--bg-white) !important;
    background-image: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    transition: filter 0.3s ease;
}

.header.scrolled .logo {
    filter: brightness(0) saturate(100%);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--bg-white); /* White text on orange background */
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link.active {
    color: var(--bg-white);
}

/* Scrolled header nav links - dark text */
.header.scrolled .nav-link {
    color: var(--text-dark);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header.scrolled .nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--bg-white);
    transition: background-color 0.3s ease;
}

.header.scrolled .nav-link.active::after {
    background-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-white); /* White hamburger icon */
    transition: var(--transition);
}

.header.scrolled .mobile-menu-toggle span {
    background-color: var(--text-dark);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 40px 0 120px 0;
    background: linear-gradient(135deg, #ff8844 0%, #ff7722 50%, #ff9944 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: white;
    clip-path: polygon(0 100%, 100% 10%, 100% 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 120% 50%, rgba(255, 200, 100, 0.5) 0%, rgba(255, 165, 0, 0.3) 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    font-weight: 800;
    line-height: 1.2;
}

.hero-title .title-light {
    font-weight: 300;
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--bg-white); /* White text on orange */
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
}

.phone-mockup {
    max-width: 550px;
    margin: 0;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
    position: relative;
    top: 20px;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 60px 0 40px 0; /* Reduced bottom padding for less empty space */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   Features Overview
   ============================================ */
.features-overview {
    background-color: var(--bg-white);
}

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

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px; /* Less rounded for professional look (was 12px) */
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-primary); /* Orange icon background */
    border-radius: 12px; /* Rounded square like original */
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
}

/* ============================================
   Feature Details
   ============================================ */
.feature-details {
    background-color: var(--bg-light);
}

.feature-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.feature-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-detail-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--orange-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-detail-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-detail-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.feature-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image-container img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
    background-color: var(--bg-white);
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-container {
    overflow: hidden;
    border-radius: 12px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: 8px; /* Less rounded for professional look (was 12px) */
}

.testimonial-content {
    text-align: center;
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.875rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter {
    background: linear-gradient(135deg, var(--orange-light), var(--orange-dark)); /* Orange gradient */
    color: white;
    padding: 60px 0 40px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.newsletter-form {
    margin-top: 2rem;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.form-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    color: var(--text-dark);
}

.form-input:focus {
    outline: 2px solid var(--primary-light);
}

.form-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-note a {
    color: white;
    text-decoration: underline;
}

/* ============================================
   App Download Section
   ============================================ */
.app-download {
    background-color: var(--bg-light);
    text-align: center;
}

.app-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.app-store-btn img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.app-store-btn:hover img {
    transform: scale(1.05);
}

/* ============================================
   About Page Styles
   ============================================ */
.about-hero {
    padding: 100px 0 60px 0;
    background: url('../images/about-banner-bg.png') center top/cover no-repeat;
    background-size: 100% auto;
    /* min-height: 500px; */
    color: var(--bg-white);
}

.about-hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--bg-white);
    margin-bottom: 3rem;
}

.about-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.analytics-chart {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mission {
    background-color: var(--bg-white);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mission-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.values {
    background-color: var(--bg-light);
}

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

.value-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 8px; /* Less rounded for professional look (was 12px) */
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
}

.key-features {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.about-header-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon img {
    width: 60px;
    height: auto;
}

.about-header-section h2 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-dark);
}

.about-header-section .text-gray {
    color: var(--text-light);
    font-weight: 400;
}

.about-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 80px;
}

.about-phone-section {
    display: flex;
    justify-content: center;
}

.about-phone-section img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

.about-text-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.about-text-section h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.about-text-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0;
}

.about-bottom-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 40px;
}

.about-feature-with-icon {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.feature-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.feature-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-highlight:last-child {
    margin-bottom: 0;
}

.feature-highlight.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-highlight.reverse .feature-highlight-content {
    order: 2;
}

.feature-highlight.reverse .feature-highlight-image {
    order: 1;
}

.feature-highlight-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-highlight-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-highlight-content ul {
    list-style: none;
    padding-left: 0;
}

.feature-highlight-content li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-light);
}

.feature-highlight-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--navy); /* Navy background from original */
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 968px) {
    .hero-content,
    .feature-details-container,
    .feature-highlight {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-highlight.reverse .feature-highlight-content,
    .feature-highlight.reverse .feature-highlight-image {
        order: 0;
    }

    .feature-image-container {
        margin-top: 40px;
    }

    .hero-title,
    .page-title {
        font-size: 2.5rem;
    }

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

    .carousel-btn.prev {
        left: -10px;
    }

    .carousel-btn.next {
        right: -10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--orange-primary);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .about-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-bottom-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-header-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-header-section h2 {
        font-size: 2rem;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title,
    .page-title {
        font-size: 2rem;
    }

    .hero-description,
    .page-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 40px 0;
    }

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

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

    .feature-highlight {
        padding: 20px;
    }

    .feature-list {
        gap: 30px;
    }

    .testimonial-slide {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

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

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title,
    .page-title {
        font-size: 1.75rem;
    }

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

    .container {
        padding: 0 15px;
    }
}
