/* ============================================================
   FRONTLINE WEBSITE — Design System
   Colors: Navy #0D1B2A | Orange #F4622A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Brand Colors */
    --navy: #0D1B2A;
    --navy-mid: #1B263B;
    --navy-light: #415A77;
    --orange: #F4622A;
    --orange-hover: #E0521E;
    --orange-glow: rgba(244, 98, 42, 0.3);

    /* Functional Colors */
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-main: #0D1B2A;
    --text-muted: #415A77;
    --border-light: rgba(13, 27, 42, 0.1);
    --border-dark: #415A77;

    /* Gradients */
    --grad-navy: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
    --grad-orange: linear-gradient(135deg, #F4622A 0%, #FF7A44 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--grad-orange);
    color: var(--white);
    box-shadow: 0 4px 14px var(--orange-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--orange-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--orange);
    color: var(--orange);
}

.btn-outline:hover {
    background: var(--orange);
    color: var(--white);
}

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

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* ============================================================
   BLOG DESIGN (Ref: blog-design.jpg)
   ============================================================ */

.blog-section {
    padding: 80px 0;
    background: #F9FBFC;
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.05);
    margin-bottom: 80px;
    min-height: 400px;
}

.featured-image-side {
    position: relative;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px;
}

.featured-image-side img {
    width: 98%;
    height: 98%;
    object-fit: cover;
    border-radius: 40px;
    z-index: 2;
}

.featured-content-side {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Post Cards */
.blog-grid-header {
    margin-bottom: 40px;
}

.blog-grid-header h2 {
    font-size: 2rem;
    color: var(--navy);
}

.blog-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.post-card-v2 {
    display: flex;
    flex-direction: column;
}

.post-card-top {
    margin-bottom: 20px;
}

.post-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.badge-tag.sales {
    background: #FDE8F1;
    color: #D63384;
}

.badge-tag.linkedin {
    background: #E1F5FE;
    color: #0288D1;
}

.badge-tag.product {
    background: #F3E5F5;
    color: #7B1FA2;
}

.badge-tag.general {
    background: #E8F5E9;
    color: #2E7D32;
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-left: auto;
}

.post-card-graphic {
    background: var(--navy);
    border-radius: 12px;
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.post-card-graphic img {
    width: 99%;
    height: 99%;
    object-fit: cover;
    border-radius: 20px;
}

.post-card-info {
    padding: 10px 0;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orange);
}

.author-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-card-v2 h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-read-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.post-read-link:hover {
    color: var(--orange);
}

@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-content-side {
        padding: 40px;
    }
}

/* Animations */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
}

.nav-links a:hover {
    color: var(--orange);
}

nav.scrolled .nav-links a {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    display: block;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.4rem;
    opacity: 0.95;
    margin: 0 auto 48px;
    max-width: 700px;
}

.hero-image {
    display: none;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-shape {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--orange);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

/* Section Styling */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--navy);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* App & Employer Sections */
.split-section {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.feature-list {
    margin: 32px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}

.feature-item i {
    color: var(--orange);
}

/* Stats Section */
.stats {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--orange);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 24px;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 24px;
}

.footer-links h4 {
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--orange);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {

    .hero-content,
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .nav-links {
        display: none;
    }

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

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

/* Enquiry Section */
.enquiry-section {
    padding: 100px 0;
    background: var(--text-muted);
}

.enquiry-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.enquiry-form input,
.enquiry-form textarea {
    padding: 16px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: 5px 6px 6px 2px rgba(13, 27, 42, 0.1);
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow);
}

.enquiry-form textarea {
    height: 150px;
    resize: none;
}

.enquiry-form .btn {
    grid-column: span 2;
    padding: 16px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .enquiry-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .enquiry-form .btn {
        grid-column: span 1;
    }

    .enquiry-container {
        padding: 40px 24px;
    }
}

/* Footer Improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Jobs Grid & Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.job-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-glow);
}

.job-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.job-card-header i {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    color: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.job-card-header h3 {
    font-size: 1.25rem;
    color: var(--navy);
    line-height: 1.3;
}

.job-card-body {
    flex-grow: 1;
    margin-bottom: 24px;
}

.job-card-body p {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-card-body p i {
    color: var(--orange);
}

.job-card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.job-card-footer .btn {
    width: 100%;
}