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

:root {
    /* Color Palette */
    --primary: #0056b3;
    --primary-dark: #004494;
    --primary-light: #e6f0ff;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-body: #f1f5f9;
    --border-color: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #f59e0b;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

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

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.d-flex {
    display: flex;
    align-items: center;
}

.d-none-mobile {
    display: block;
}

.d-block-mobile {
    display: none;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

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

.text-primary {
    color: var(--primary);
}

.fw-bold {
    font-weight: 700;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.py-50 {
    padding: 50px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

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

.btn-white:hover {
    background: var(--bg-light);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar i {
    margin-right: 6px;
    color: white;
}

.top-bar a:hover {
    color: white;
    opacity: 0.8;
}

/* Header & Nav */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: var(--secondary);
}

/* Hero Section (Fallback) */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.service-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Why Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.why-icon {
    font-size: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.why-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.why-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    background: transparent;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
    font-size: 18px;
}

.process-step strong {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 14px;
}

.process-step span {
    font-size: 12px;
    color: var(--text-light);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 86, 179, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    padding: 20px;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* Footer */
.main-footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
    border-top: 4px solid white;
}

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

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
}

.ms-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    border-right: 1px solid var(--border-color);
    text-decoration: none;
}

.ms-item i {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--primary);
}

.ms-item.cta {
    background: var(--primary);
    color: white;
    border: none;
}

.ms-item.cta i {
    color: white;
}

/* ============================================ */
/* RESPONSIVE - MOBILE FIRST APPROACH          */
/* ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (max 900px) */
@media (max-width: 900px) {
    body {
        padding-bottom: 60px;
    }

    .d-none-mobile {
        display: none !important;
    }

    .d-block-mobile {
        display: block !important;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-sticky-bar {
        display: flex;
    }

    .top-bar {
        display: none;
    }

    .logo {
        font-size: 18px;
    }

    .logo img {
        max-height: 40px;
    }
}

/* Mobile Small (max 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }

    .container {
        padding: 0 15px;
    }

    .py-50 {
        padding: 35px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 15px;
        padding: 0 10px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-item {
        background: white;
        padding: 20px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
    }

    /* Process */
    .process-steps {
        flex-direction: column;
        gap: 25px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
        width: 45px;
        height: 45px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-card {
        height: 200px;
    }

    .project-overlay {
        opacity: 1;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        justify-content: flex-end;
        padding-bottom: 15px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .gallery-thumb img {
        height: 120px !important;
    }

    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-nav {
        display: none;
    }
}

/* Mobile XS (max 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .slide-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }

    .slide-buttons .btn {
        width: 100%;
    }

    /* Project Header on Detail */
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile XXS (max 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 16px;
    }

    .logo img {
        max-height: 35px;
    }

    .hero-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }

    .mobile-sticky-bar {
        height: 55px;
    }

    .ms-item {
        font-size: 10px;
    }

    .ms-item i {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {

    .top-bar,
    .mobile-sticky-bar,
    .nav-menu,
    .mobile-toggle {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* Footer Dropdown Styles */
.footer-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.footer-dropdown summary::-webkit-details-marker {
    display: none;
}

.footer-dropdown summary:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-dropdown summary i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.footer-dropdown[open] summary i {
    transform: rotate(180deg);
}

.footer-dropdown ul {
    margin: 0;
    padding: 0;
}

/* Desktop Floating Dropdown */
@media (min-width: 900px) {
    .footer-dropdown {
        position: relative;
    }

    .footer-dropdown ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--secondary);
        /* Dark background matching footer vibe but distinct */
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
        animation: fadeIn 0.2s ease;
    }

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

    .footer-dropdown ul li:last-child {
        margin-bottom: 0;
    }
}

/* Mobile Accordion */
@media (max-width: 900px) {
    .footer-dropdown ul {
        margin-top: 10px;
        margin-bottom: 20px;
        padding-left: 10px;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Footer Logo Container */
.footer-logo-container {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 20px;
}/* FIX: Footer Accordion Style - Force clean accordion behavior */
details.footer-dropdown>summary {
    list-style: none;
    /* Standart ok işaretini gizle */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    color: white;
}

details.footer-dropdown>summary::-webkit-details-marker {
    display: none;
}

/* Açıldığında iconu çevir */
details.footer-dropdown[open]>summary i {
    transform: rotate(180deg);
}

/* Sadece mobilde (küçük ekran) accordion gibi çalışsın */
@media (max-width: 900px) {
    .footer-links ul {
        /* Flex yapısını iptal et, alt alta dizilsin */
        display: block !important;
        padding-left: 0 !important;
        margin-top: 10px;
    }

    .footer-links li {
        width: 100%;
        text-align: left;
        padding-left: 15px;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 8px;
    }

    /* Dropdown içeriğinin animasyonla açılması */
    details.footer-dropdown[open] ul {
        animation: fadeIn 0.3s ease;
    }
}/* FIX: Desktop Footer Accordion - Force Static Layout */
@media (min-width: 900px) {

    /* Floating (popup) yapıyı iptal et */
    .footer-dropdown {
        position: static !important;
    }

    .footer-dropdown ul {
        position: static !important;
        /* Yüzmeyi bırak, içerik akışına gir */
        background: transparent !important;
        /* Arkaplanı kaldır */
        padding: 10px 0 10px 15px !important;
        /* Sol taraftan girinti ver */
        border: none !important;
        border-left: 2px solid rgba(255, 255, 255, 0.1) !important;
        /* Sol çizgi */
        box-shadow: none !important;
        min-width: unset !important;
        z-index: auto !important;
        transform: none !important;
        animation: fadeIn 0.3s ease !important;
    }

    /* Linklerin listesi */
    .footer-dropdown ul li {
        margin-bottom: 8px !important;
    }

    /* Hizalama */
    .footer-links {
        display: block !important;
    }

    /* Başlık çizgisi */
    .footer-dropdown summary {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
}/* FIX: Responsive Grid Layouts */

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Service Detail Page Grid */
.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Service Detail Sidebar */
.service-sidebar {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

/* RESPONSIVE BREAKPOINTS */

/* Tablet & Mobile (max 900px) */
@media (max-width: 900px) {

    /* Stack grids vertically */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Disable sticky behavior on sidebar for mobile */
    .service-sidebar {
        position: static;
        margin-top: 30px;
    }

    /* Order change for service detail: Content first, sidebar second (default is fine) */
}

/* Specific fix for Kurumsal Page overflow/cutting issues on mobile */
@media (max-width: 768px) {

    /* Ensure body has enough padding for fixed footer */
    body {
        padding-bottom: 70px !important;
    }

    /* Ensure sticky bar is always on top */
    .mobile-sticky-bar {
        z-index: 2147483647 !important;
        /* Max z-index */
        bottom: 0 !important;
        height: 60px !important;
        position: fixed !important;
    }
}/* FIX: More Responsive Layouts & Kurumsal Image Fix */

/* Blog Detail Grid */
.blog-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* Blog Sidebar */
.blog-sidebar {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    position: sticky;
    top: 100px;
}

/* Kurumsal (About) Image Floated */
.about-img-float {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 50%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* RESPONSIVE BREAKPOINTS */

@media (max-width: 900px) {

    /* Blog Detail Stack */
    .blog-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }

    /* Kurumsal Image Fix for Mobile */
    .about-img-float {
        float: none;
        display: block;
        margin: 0 auto 30px;
        /* Center image and add bottom margin */
        width: 100%;
        max-width: 100%;
        /* Full width on mobile */
        margin-left: 0;
    }
}

/* Fix Mobile Sticky Bar cutoff on Kurumsal page specifically */
/* The previous fix in responsive_fixes.css might need a boost or check */
@media (max-width: 768px) {

    /* Ensure no weird overflow hides the bar */
    .mobile-sticky-bar {
        width: 100vw;
        /* Force full viewport width */
        left: 0;
        right: 0;
        bottom: 0;
    }
}/* FIX: Mission/Vision Grid & Global Scroll */

/* Global Horizontal Scroll Fix */
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Mission Grid (Kurumsal Page) */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Responsive Styles */
@media (max-width: 900px) {

    /* Stack Mission/Vision on mobile */
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ensure body has padding for the sticky bar */
    body {
        padding-bottom: 80px !important;
        /* Bir tık artırıldı */
    }

    /* Force Sticky Bar Styling */
    .mobile-sticky-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        z-index: 99999 !important;
        background: white !important;
        display: flex !important;
        /* Flex olduğundan emin ol */
        transform: translateZ(0);
        /* GPU acceleration for smoother fix */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    }
}