/* ===========================
   Formül Yazılım - Site CSS
   Navy Tema
=========================== */

:root {
    --navy-darkest: #081422;
    --navy-dark:    #0d2246;
    --navy:         #1a3a6e;
    --navy-light:   #2a5298;
    --navy-pale:    #e8edf8;
    --accent:       #4a90d9;
    --font-base:    'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-base);
    color: #2d3748;
    background: #fff;
}

/* ---- Navbar ---- */
#mainNav {
    background: var(--navy-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding-top: .75rem;
    padding-bottom: .75rem;
}
#mainNav .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
#mainNav .nav-link {
    font-size: .9rem;
    padding: .45rem .9rem;
    border-radius: 6px;
    transition: background .2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    background: rgba(255,255,255,0.12);
}

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(135deg, var(--navy-darkest) 0%, var(--navy) 60%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none; /* tıklamaları engelleme */
    z-index: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .container {
    position: relative;
    z-index: 1; /* ::before overlay'inin önünde kalır */
}
.min-vh-75 { min-height: 70vh; }
.hero-badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 500;
    padding: .45rem 1rem;
    border-radius: 20px;
    letter-spacing: .04em;
    font-size: .8rem;
}
.hero-accent {
    background: linear-gradient(90deg, #7ab8f5, #a8d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active,
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Sections ---- */
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }

/* ---- Service Cards ---- */
.service-card {
    border-radius: 12px;
    border: 1px solid #e8edf5;
    background: #fff;
    transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10,25,70,0.1);
}
.service-icon {
    width: 64px; height: 64px;
    background: var(--navy-pale);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    font-size: 1.75rem;
    color: var(--navy);
}

/* ---- Project Cards ---- */
.project-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10,25,70,0.12);
}
.project-img-wrap {
    height: 200px;
    overflow: hidden;
    background: var(--navy-pale);
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.project-card:hover .project-img { transform: scale(1.04); }
.project-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: var(--navy-light);
    opacity: 0.3;
}

/* ---- Reference Logos (strip) ---- */
.reference-logo-wrap {
    padding: 1rem;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    height: 80px;
    transition: box-shadow .2s;
}
.reference-logo-wrap:hover { box-shadow: 0 4px 16px rgba(10,25,70,0.1); }
.reference-logo { max-height: 48px; max-width: 100%; object-fit: contain; filter: grayscale(40%); transition: filter .2s; }
.reference-logo-wrap:hover .reference-logo { filter: grayscale(0); }
.reference-name { font-size: .75rem; font-weight: 600; color: var(--navy); text-align: center; }

/* ---- Reference Cards (page) ---- */
.reference-card {
    border: 1px solid #e8edf5;
    border-radius: 12px;
    background: #fff;
    transition: transform .25s, box-shadow .25s;
}
.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(10,25,70,0.1);
}
.reference-card-logo { max-height: 72px; max-width: 160px; object-fit: contain; }
.reference-card-icon { font-size: 2.5rem; color: var(--navy-light); opacity: 0.4; }

/* ---- CTA ---- */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
}

/* ---- About ---- */
.about-stat { padding: 1.25rem; background: var(--navy-pale); border-radius: 10px; }
.about-stat-num { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.about-info-card { background: var(--navy-pale); border-radius: 16px; }
.text-navy { color: var(--navy) !important; }
.about-info-list li {
    display: flex; align-items: flex-start; gap: .5rem;
    padding: .75rem 0; border-bottom: 1px solid rgba(26,58,110,0.1);
}
.about-info-list li:last-child { border-bottom: none; }
.about-info-list i { font-size: 1.1rem; margin-top: 2px; }
.why-icon { font-size: 2.5rem; color: var(--navy); }

/* ---- Contact ---- */
.contact-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.contact-info-section { padding: 1rem 0; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid #e8edf5;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--navy-pale); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--navy);
}
.captcha-img { height: 60px; border: 1px solid #dee2e6; }

/* ---- Buttons ---- */
.btn-navy { background: var(--navy); color: #fff; border: none; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
.btn-outline-navy {
    color: var(--navy); border: 1.5px solid var(--navy);
    background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ---- Footer ---- */
.footer-dark {
    background: var(--navy-darkest);
}
.footer-dark p,
.footer-dark small,
.footer-dark span,
.footer-dark .text-muted {
    color: #8fa8d0 !important;
}
.footer-dark h5,
.footer-dark h6 {
    color: #fff !important;
}
.footer-dark hr {
    border-color: rgba(255,255,255,0.1) !important;
}
.footer-link {
    color: #8fa8d0;
    text-decoration: none;
    font-size: .875rem;
    display: block;
    padding: .25rem 0;
    transition: color .2s;
}
.footer-link:hover { color: #fff; }

/* ---- Panel utility ---- */
.text-navy { color: var(--navy) !important; }

/* ---- Scroll-to-Top Butonu ---- */
#scrollTopBtn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s, visibility .25s, transform .25s, background .2s;
    z-index: 1050;
}
#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scrollTopBtn:hover {
    background: var(--navy-light);
}

/* ---- Skip Link (erişilebilirlik) ---- */
.skip-link {
    position: absolute; top: -100px; left: 1rem;
    background: var(--navy); color: #fff;
    padding: .5rem 1rem; border-radius: 0 0 8px 8px;
    font-size: .9rem; z-index: 9999; transition: top .2s;
    text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---- Validation ---- */
.field-validation-error { color: #dc3545; font-size: .82rem; }
