/* =============================================
   Ketsoft Yazılım Teknolojileri — Custom CSS
   Bootstrap 5 + Custom Styles
   ============================================= */

:root {
    --ks-primary:      #003366;
    --ks-primary-mid:  #004488;
    --ks-primary-light:#0066CC;
    --ks-accent:       #C0392B;
    --ks-accent-light: #E74C3C;
    --ks-dark:         #0D1B2A;
    --ks-gray:         #6C757D;
    --ks-light:        #F4F7FB;
    --ks-white:        #FFFFFF;
    --ks-border:       #DEE2E6;
    --ks-shadow:       0 4px 24px rgba(0,51,102,0.10);
    --ks-shadow-hover: 0 8px 36px rgba(0,51,102,0.18);
    --ks-radius:       12px;
    --ks-radius-sm:    8px;
    --ks-transition:   all 0.3s ease;
}

/* ---- Global ---- */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #1A2B3C;
    background: var(--ks-white);
    overflow-x: hidden;
}

a { color: var(--ks-primary-light); text-decoration: none; transition: var(--ks-transition); }
a:hover { color: var(--ks-accent); }

/* ---- Navbar ---- */
#mainNav {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
    padding: 4px 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,51,102,0.12);
}
#mainNav .navbar-brand img { height: 80px; transition: var(--ks-transition); }

#mainNav .nav-link {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #2E6DA4 !important;
    padding: 6px 14px !important;
    border-radius: var(--ks-radius-sm);
    transition: var(--ks-transition);
}
#mainNav .nav-link i {
    color: #000;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    background: var(--ks-primary) !important;
    color: #fff !important;
    border-radius: var(--ks-radius-sm);
}
#mainNav .nav-link:hover i,
#mainNav .nav-link.active i {
    color: #fff;
}

/* Navbar hamburger */
#mainNav .navbar-toggler {
    border-color: var(--ks-primary);
}
#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,51,102,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#mainNav .navbar-collapse.show,
#mainNav .navbar-collapse.collapsing {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 14px 14px;
    border-radius: 10px;
    margin-top: 8px;
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: calc(100vh - 200px);
    background: url('../../IMG/BG01.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,20,51,0.80) 0%, rgba(0,60,120,0.65) 60%, rgba(0,30,80,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    backdrop-filter: blur(6px);
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 16px;
}
.hero-title span { color: #7FB3F5; }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    text-align: center;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- Stats bar ---- */
.stats-bar {
    background: var(--ks-primary);
    padding: 28px 0;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.70);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.20);
    margin: auto;
}

/* ---- Sections ---- */
section { padding: 80px 0; }
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ks-primary-light);
    background: rgba(0,102,204,0.08);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--ks-primary);
    line-height: 1.25;
    margin-bottom: 16px;
}
.section-lead {
    font-size: 1.05rem;
    color: #4A6080;
    line-height: 1.75;
    max-width: 620px;
}
.section-divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--ks-primary-light), var(--ks-accent));
    border-radius: 2px;
    margin: 16px 0 28px;
}

/* ---- Hakkımızda ---- */
.expertise-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ks-border);
}
.expertise-item:last-child { border-bottom: none; }
.expertise-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: rgba(0,102,204,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ks-primary-light);
    font-size: 1rem;
}
.expertise-text {
    font-size: 0.95rem;
    color: #3A5070;
    line-height: 1.5;
    padding-top: 2px;
}
.expertise-text strong { color: var(--ks-primary); }

.info-card {
    background: var(--ks-light);
    border-radius: var(--ks-radius);
    padding: 28px;
    height: 100%;
    border: 1px solid var(--ks-border);
    transition: var(--ks-transition);
}
.info-card:hover {
    box-shadow: var(--ks-shadow);
    transform: translateY(-2px);
}
.info-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--ks-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

/* ---- Parallax Banner ---- */
.parallax-banner {
    position: relative;
    min-height: 320px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.parallax-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,20,51,0.65);
}
.parallax-banner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 20px;
}
.parallax-quote {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-style: italic;
    font-weight: 300;
    color: #fff;
    line-height: 1.6;
    letter-spacing: 0.01em;
}
.parallax-quote em {
    font-style: normal;
    font-weight: 700;
    color: #7FB3F5;
}

/* ---- Vizyon ---- */
.vizyon-list { list-style: none; padding: 0; margin: 0; }
.vizyon-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ks-border);
    font-size: 1rem;
    color: #fff;
}
.vizyon-list li:last-child { border-bottom: none; }
.vizyon-list li i {
    color: #7FB3F5;
    font-size: 1.1rem;
    min-width: 24px;
}
.vizyon-bg-card {
    background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-mid) 100%);
    border-radius: var(--ks-radius);
    padding: 40px;
    color: #fff;
}
.vizyon-bg-card p {
    color: rgba(255,255,255,0.85);
    font-size: 0.97rem;
    line-height: 1.75;
}

/* ---- Hızlı Yazılım ---- */
.hizli-section { background: var(--ks-light); }
.feature-card {
    background: var(--ks-white);
    border-radius: var(--ks-radius);
    padding: 28px;
    height: 100%;
    border: 1px solid var(--ks-border);
    transition: var(--ks-transition);
}
.feature-card:hover {
    box-shadow: var(--ks-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--ks-primary-light);
}
.feature-card .fc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.feature-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ks-primary);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.9rem;
    color: #4A6080;
    line-height: 1.6;
    margin: 0;
}

.platform-highlight {
    background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-light) 100%);
    border-radius: var(--ks-radius);
    padding: 40px;
    color: #fff;
}
.platform-highlight h3 { font-weight: 800; margin-bottom: 16px; }
.platform-highlight p { color: rgba(255,255,255,0.85); line-height: 1.7; }
.platform-highlight .stat-num { font-size: 3rem; font-weight: 800; color: #7FB3F5; }
.platform-highlight .stat-desc { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ---- Ürünler ---- */
.product-card {
    background: var(--ks-white);
    border-radius: var(--ks-radius);
    overflow: hidden;
    border: 1px solid var(--ks-border);
    transition: var(--ks-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--ks-shadow-hover);
    transform: translateY(-6px);
    border-color: transparent;
}
.product-card-img {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: var(--ks-light);
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    padding: 10px 0;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ks-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
h2.product-card-title { margin: 0; }
.product-card-title a { color: inherit; text-decoration: none; }
.product-card-title a:hover { color: var(--ks-primary-light); }
.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ks-primary);
    margin-bottom: 8px;
}
.product-card-desc {
    font-size: 0.87rem;
    color: #4A6080;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 16px;
}
@keyframes ks-arrow-nudge {
    0%, 80%, 100% { transform: translateX(0); }
    88%           { transform: translateX(5px); }
    94%           { transform: translateX(2px); }
}
.product-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ks-primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 0;
    border-radius: 20px;
    transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease;
}
.product-card-link i {
    animation: ks-arrow-nudge 2.8s ease-in-out infinite;
}
.product-card-link:hover {
    gap: 10px;
    color: #fff;
    background: var(--ks-primary-light);
    padding: 6px 16px;
    box-shadow: 0 4px 14px rgba(0,102,204,0.25);
}
.product-card-link:hover i {
    animation: none;
    transform: translateX(3px);
}

/* ---- İletişim ---- */
.contact-section {
    position: relative;
    background: url('../../IMG/BG07.jpg') center center / cover no-repeat;
    background-attachment: fixed;
}
.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,20,51,0.88) 0%, rgba(0,50,110,0.75) 100%);
}
.contact-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--ks-radius);
    padding: 40px;
    color: #fff;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-item-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.contact-item-text { font-size: 0.95rem; color: rgba(255,255,255,0.88); line-height: 1.5; }
.contact-item-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-map-img {
    position: relative;
    z-index: 2;
    border-radius: var(--ks-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.contact-map-img img { width: 100%; display: block; }

.social-links { display: flex; gap: 10px; }
.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #333;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--ks-transition);
}
.social-btn:hover { transform: translateY(-2px); }

.social-btn .bi-instagram { color: #E1306C; }
.social-btn .bi-linkedin  { color: #0A66C2; }
.social-btn .bi-twitter-x { color: #fff; }
.social-btn .bi-youtube   { color: #FF0000; }

.social-btn:hover .bi-instagram { color: #fff; }
.social-btn:hover .bi-linkedin  { color: #fff; }
.social-btn:hover .bi-twitter-x { color: #fff; }
.social-btn:hover .bi-youtube   { color: #fff; }

.social-btn:has(.bi-instagram):hover { background: #E1306C; border-color: #E1306C; }
.social-btn:has(.bi-linkedin):hover  { background: #0A66C2; border-color: #0A66C2; }
.social-btn:has(.bi-twitter-x):hover { background: #000;    border-color: #000; }
.social-btn:has(.bi-youtube):hover   { background: #FF0000; border-color: #FF0000; }

/* ---- Footer ---- */
.site-footer {
    background: var(--ks-dark);
    padding: 48px 0 24px;
}
.footer-logo img { height: 42px; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 8px; }
.footer-heading { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: var(--ks-transition); }
.footer-links a:hover { color: #7FB3F5; }
.footer-divider { border-color: rgba(255,255,255,0.10); margin: 32px 0 20px; }
.footer-bottom { color: rgba(255,255,255,0.40); font-size: 0.8rem; }

.footer-links li a i,
.footer-links li span i {
    color: #7FB3F5;
}


/* ---- Btn styles ---- */
.btn-ks-primary {
    background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-light) 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--ks-radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: var(--ks-transition);
    box-shadow: 0 4px 16px rgba(0,51,102,0.25);
}
.btn-ks-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,51,102,0.35);
}
.btn-ks-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 11px 28px;
    border-radius: var(--ks-radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--ks-transition);
}
.btn-ks-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

/* ---- Animate on scroll ---- */
.ks-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.ks-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}
.ks-animate-delay-1 { transition-delay: 0.1s; }
.ks-animate-delay-2 { transition-delay: 0.2s; }
.ks-animate-delay-3 { transition-delay: 0.3s; }
.ks-animate-delay-4 { transition-delay: 0.4s; }
.ks-animate-delay-5 { transition-delay: 0.5s; }

/* ---- Ürün Detay Sayfası ---- */
.product-page-header {
    background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-mid) 100%);
    padding: 100px 0 48px;
    color: #fff;
}
.product-page-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.product-page-header .breadcrumb { opacity: 0.65; }
.product-page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.product-page-header .breadcrumb a { color: rgba(255,255,255,0.8); }

.product-detail-section { padding: 64px 0; }
.product-detail-img {
    border-radius: var(--ks-radius);
    overflow: hidden;
    box-shadow: var(--ks-shadow-hover);
}
.product-detail-img img { width: 100%; display: block; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: var(--ks-radius-sm);
    background: var(--ks-light);
    border: 1px solid var(--ks-border);
    font-size: 0.92rem;
    color: #2A3E54;
    line-height: 1.55;
    transition: var(--ks-transition);
}
.feature-list li:hover { border-color: var(--ks-primary-light); background: #EEF3FB; }
.feature-list li i {
    color: var(--ks-primary-light);
    font-size: 0.95rem;
    min-width: 20px;
    margin-top: 2px;
}
.feature-list li strong { color: var(--ks-primary); font-weight: 700; }

.product-intro {
    background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-mid) 100%);
    border-radius: var(--ks-radius);
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 28px;
}
.product-intro p { color: rgba(255,255,255,0.88); font-size: 1rem; line-height: 1.75; margin: 0; }

/* ---- Sub-page Navbar ---- */
.sub-nav .nav-link { color: var(--ks-primary) !important; }
.sub-nav .nav-link:hover { background: var(--ks-light) !important; }

/* ---- Urunler Page ---- */
.urunler-hero {
    background: linear-gradient(135deg, var(--ks-primary) 0%, var(--ks-primary-mid) 100%);
    padding: 110px 0 52px;
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .parallax-banner { background-attachment: scroll; }
    .contact-section { background-attachment: scroll; }
    section { padding: 60px 0; }
}

@media (max-width: 767px) {
    .hero-section { min-height: calc(100svh - 150px); }
    .stats-bar .stat-divider { display: none; }
    .stat-number { font-size: 1.1rem; }
    .stat-label { font-size: 0.41rem; }
    section { padding: 48px 0; }
    .contact-card { padding: 28px 20px; }
}
