/* ========================================
   Komplett Developer - Recruitment Page
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-black: #1a1a1a;
    --color-dark: #333;
    --color-gray: #666;
    --color-light-gray: #e5e5e5;
    --color-bg: #fff;
    --color-accent: #0066cc;
    --color-accent-hover: #004d99;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1100px;
    --section-padding: 80px 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-light-gray);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: transform 0.2s;
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-black);
    color: #fff;
    border-color: var(--color-black);
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--color-black);
}

/* ---- Hero ---- */

.hero {
    position: relative;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image img,
.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.hero-overlay h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* ---- Sections ---- */

.section {
    padding: var(--section-padding);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.section-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 16px;
    max-width: 720px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.section-content.centered p {
    text-align: center;
}

.divider {
    border: none;
    border-top: 1px solid var(--color-light-gray);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-gray);
    max-width: 720px;
    margin-bottom: 32px;
}

/* ---- Jobs Grid ---- */

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.job-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.job-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.job-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
    line-height: 1.3;
}

.job-summary {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-accent);
    background: rgba(0, 102, 204, 0.08);
    padding: 4px 10px;
    border-radius: 3px;
}

/* ---- About Layout ---- */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.about-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ---- Culture Grid ---- */

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.culture-item {
    padding: 24px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.culture-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.culture-number {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.culture-item p {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.5;
}

.culture-item .culture-description {
    font-weight: 400;
    color: var(--color-gray);
    font-size: 14px;
    margin-top: 6px;
}

.culture-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.culture-images a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.culture-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.culture-images a:hover img {
    transform: scale(1.05);
}

/* ---- Lightbox ---- */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox-img.loaded {
    opacity: 1;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 20px;
    right: 24px;
    font-size: 40px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ---- Lightbox Video ---- */

.lightbox-video {
    display: none;
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.lightbox-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.lightbox.open.lightbox-mode-video .lightbox-img {
    display: none;
}

.lightbox.open.lightbox-mode-video .lightbox-video {
    display: block;
}

.lightbox.open.lightbox-mode-video .lightbox-prev,
.lightbox.open.lightbox-mode-video .lightbox-next {
    display: none;
}

/* ---- Video Expand Hint ---- */

.video-lightbox-trigger {
    display: block;
    position: absolute;
    inset: 0;
}

.video-lightbox-trigger iframe {
    pointer-events: none;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-expand-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
    cursor: pointer;
    border-radius: 8px;
}

.video-expand-hint svg {
    opacity: 0;
    transition: opacity 0.2s;
}

.video-lightbox-trigger:hover .video-expand-hint {
    background: rgba(0, 0, 0, 0.4);
}

.video-lightbox-trigger:hover .video-expand-hint svg {
    opacity: 1;
}

/* ---- Tech Grid ---- */

.technology-content {
    margin-bottom: 48px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.tech-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tech-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.tech-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
}

/* ---- Blog Card Link ---- */

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ---- Blog List Page ---- */

.blog-list-page .container {
    max-width: var(--max-width);
}

.blog-list-page .back-link {
    margin-bottom: 24px;
}

.blog-list-page h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

/* ---- Blog Grid ---- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    border: 1px solid var(--color-light-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    background: rgba(0, 102, 204, 0.08);
    border-radius: 3px;
}

.blog-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-card-description {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.meta-separator {
    color: #ccc;
}

.empty-state {
    text-align: center;
    color: var(--color-gray);
    font-size: 16px;
    padding: 40px 0;
}

/* ---- Footer ---- */

.site-footer {
    background: var(--color-black);
    color: #fff;
    padding: 60px 0;
    margin-top: 80px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.footer-address p {
    font-size: 14px;
    color: #aaa;
}

.footer-cta h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-cta .btn-outline {
    border-color: #fff;
    color: #fff;
}

.footer-cta .btn-outline:hover {
    background: #fff;
    color: var(--color-black);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #aaa;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* ---- Blog Post Detail ---- */

.blog-post {
    padding: 40px 0 80px;
}

.blog-post .container {
    max-width: 760px;
}

.back-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 32px;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.7;
}

.blog-post-header {
    margin-bottom: 32px;
}

.blog-post-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.blog-post-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.blog-post-hero {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-dark);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-light-gray);
}

.blog-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-dark);
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    color: var(--color-black);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.blog-post-content h2 { font-size: 28px; }
.blog-post-content h3 { font-size: 22px; }
.blog-post-content h4 { font-size: 18px; }

.blog-post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post-content a:hover {
    color: var(--color-accent-hover);
}

.blog-post-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 4px 0 4px 20px;
    margin: 24px 0;
    color: var(--color-gray);
    font-style: italic;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
}

.blog-post-content .content-image {
    margin: 32px 0;
}

.blog-post-content .content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-post-content .content-image figcaption {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .culture-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-light-gray);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .hero-image {
        height: 350px;
    }

    .hero-overlay h1 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 48px 0;
    }

    .section h2 {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .culture-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .culture-images img {
        height: 150px;
    }
}
