@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Colors - Reference: Human Force */
    --clr-primary: #000F99;
    --clr-secondary: #ff0000;
    /* Keeping as error/alert or unused for now, or could map to secondary */
    --clr-accent: #6680FF;
    --clr-accent-hover: #526bf5;
    /* Darker/Richer than #6680FF */
    --clr-primary-light: #1a27b3;
    /* Slightly lighter than #000F99 */
    /* Slightly lighter than #000F99 */

    --clr-bg-body: #ffffff;
    --clr-bg-light: #f8fafc;
    --clr-bg-contrast: #000850;
    /* Darker Navy Blue */

    --clr-text-main: #0f172a;
    --clr-text-muted: #64748b;
    --clr-text-light: #f1f5f9;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    --container-width: 1200px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--clr-bg-body);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    /* Header Space */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--clr-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--clr-bg-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-accent {
    background-color: var(--clr-accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-outline {
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: white;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    /* Vertically center items in the ul */
    height: 100%;
    /* Ensure full height if needed */
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-main);
    position: relative;
    padding: 0.5rem 0;
    /* Keeping some padding for click area, flex aligns the container */
    display: flex;
    align-items: center;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-accent);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--clr-primary);
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--clr-text-muted);
}

.lang-btn.active {
    color: var(--clr-primary);
    text-decoration: underline;
}

/* Components */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-primary);
}

.card:hover h3 {
    color: var(--clr-primary);
    transition: color 0.3s;
}

.card:hover p {
    color: var(--clr-text-main);
    transition: color 0.3s;
}

.job-listing {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--clr-primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: 0.3s;
}

.job-listing:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 1000;
    border: 1px solid #f1f5f9;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--clr-text-main);
    font-size: 0.95rem;
    transition: 0.2s;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--clr-bg-light);
    color: var(--clr-primary);
    padding-left: 1.8rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hamburger {
        display: block;
        margin-left: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        /* Solid background as requested */
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        box-shadow: none;

        /* Animation: Fade In/Out */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease-in-out;

        z-index: 1000;
        align-items: center;
        overflow-y: auto;

        /* Ensure it doesn't block clicks when hidden */
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Adjust items inside mobile menu */
    .nav-links li {
        width: 100%;
        text-align: center;
        display: block !important;
        /* Stack items vertically */
        height: auto !important;
        /* Allow expansion */
        padding: 1rem 0;
    }

    .nav-link {
        justify-content: center;
        /* Center the flex content of the link */
        width: 100%;
    }

    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--clr-bg-light);
        padding: 0.5rem;
        margin-top: 0.5rem;
        display: block;
        /* Visible by default on mobile */
    }

    /* Make dropdown visible in mobile - FLATTENED VERSION */
    /* Handled by specific media query at bottom of file for flattening */
    .nav-links .dropdown:hover .dropdown-menu {
        display: block;
    }



    .job-listing {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Fix Team Slider Scrolling on Mobile */
    /* Fix Team Slider Scrolling on Mobile */
    .team-slider {
        display: flex;
        flex-wrap: nowrap;
        /* Ensure no wrapping */
        justify-content: flex-start !important;
        /* Force start alignment */
        text-align: left;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll for iOS */
    }

    .team-slider .card {
        flex: 0 0 85%;
        /* Card width */
        margin-left: 0 !important;
        margin-right: 1rem !important;
        max-width: 350px;
        /* Limit width */
    }

    /* Aggressive Reset for Mobile Interactions */
    .card,
    .job-listing,
    .btn,
    .btn-primary,
    .btn-accent {
        transform: none !important;
        transition: none !important;
        /* Remove transitions to prevent sticky states */
    }

    .card:hover,
    .job-listing:hover,
    .btn:hover,
    .btn-primary:hover,
    .btn-accent:hover {
        transform: none !important;
        box-shadow: var(--shadow-md) !important;
    }

    /* Force buttons to be on top */
    .btn {
        position: relative;
        z-index: 99 !important;
        cursor: pointer;
        /* Ensure clickability */
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--clr-text-main);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.page-btn.active {
    background: var(--clr-primary);
    color: white;
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-md);
}


/* Team Slider */
.team-slider {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0.5rem 2rem 0.5rem;
    /* Bottom padding for shadow/scroll */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    /* Firefox */
}

.team-slider::-webkit-scrollbar {
    height: 6px;
}

.team-slider::-webkit-scrollbar-thumb {
    background: var(--clr-primary);
    border-radius: 10px;
}

.team-slider::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.team-slider .card {
    flex: 0 0 300px;
    /* Fixed width for slider items */
    scroll-snap-align: center;
    min-height: 400px;
    /* Align heights */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .team-slider .card {
        flex: 0 0 85%;
        /* Wider on mobile */
    }
}

/* Modern Job Card Styles */
.job-card-modern {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.job-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    border-color: var(--clr-accent);
}

.job-card-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--clr-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card-modern:hover::before {
    opacity: 1;
}

.job-card-header {
    margin-bottom: 0.5rem;
}

.job-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-heading);

    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.job-card-subtitle {
    color: var(--clr-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f8fafc;
    color: #64748b;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #f1f5f9;
}

.job-tag svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.job-card-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.job-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-right: auto;
}

@media (min-width: 768px) {
    .job-card-modern {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .job-card-content {
        flex: 1;
        padding-right: 2rem;
    }

    .job-card-actions {
        margin-top: 0;
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-between;
        height: 100%;
        gap: 1rem;
    }

    .job-date {
        margin-right: 0;
        margin-top: auto;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Mobile Reordering for Contact Page */
@media (max-width: 992px) {
    .form-section {
        display: flex !important;
        flex-direction: column !important;
    }

    .form-section>div:nth-child(2) {
        order: -1;
        /* General Application first */
        margin-bottom: 2rem;
    }

    .form-section>div:nth-child(1) {
        order: 1;
        /* Contact Info second */
    }
}

/* Flatten Dropdown in Mobile Menu */
@media (max-width: 992px) {
    .nav-links .dropdown {
        display: block;
        /* Remove flex container behavior */
    }

    .nav-links .dropdown>a {
        display: none;
        /* Hide the "Hizmetlerimiz" parent link */
    }

    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        padding: 0;
        margin: 0;
        display: block;
    }

    .nav-links .dropdown-menu a {
        padding: 1rem 0 !important;
        text-align: center;
        width: 100%;
        color: var(--clr-text-main);
        font-weight: 500;
        border-bottom: 1px solid #f1f5f9;
        /* Separator like other items */
    }

    .nav-links .dropdown-menu a:hover {
        background: transparent;
        color: var(--clr-primary);
        padding-left: 0 !important;
        /* No indent on hover */
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--clr-bg-contrast);
    color: white;
    padding: 1rem 2rem;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
}

.cookie-btn {
    background-color: white;
    color: var(--clr-bg-contrast);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: var(--clr-bg-light);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        text-align: center;
    }

    .cookie-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}