/* ═══════════════════════════════════════════════════════════════════════════
   base.css — Genel site stilleri ve CSS degiskenleri
   Proje: 3D Baskın
   Renk sistemi: agents.md Bölüm 6
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Degiskenleri ──────────────────────────────────────────────────── */
:root {
    --color-primary: #0bbed4;
    --color-primary-dark: #099aad;
    --color-primary-light: #5dd6e6;
    --color-secondary: #343f45;
    --color-secondary-dark: #232c30;
    --color-secondary-light: #4a5960;
    --color-white: #ffffff;
    --color-light: #f4f7f8;
    --color-gray: #8d9ca3;
    --color-text: #2c3438;
    --color-text-muted: #6c7a82;

    --font-family-base: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --shadow-sm: 0 1px 3px rgba(52, 63, 69, 0.08);
    --shadow-md: 0 4px 12px rgba(52, 63, 69, 0.12);
    --shadow-lg: 0 8px 30px rgba(52, 63, 69, 0.16);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --transition-base: all 0.3s ease;
}

/* ── Reset & Genel ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar-main {
    background-color: var(--color-secondary);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: background-color 0.4s ease,
                backdrop-filter 0.4s ease,
                box-shadow 0.4s ease,
                padding 0.4s ease;
}

/* Sayfa en üstteyken — opak, katı arkaplan */
.navbar-main.navbar-top {
    background-color: var(--color-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--shadow-md);
}

/* Scroll başladıktan sonra — bulanık saydamlık (glassmorphism) */
.navbar-main.navbar-scrolled {
    background-color: rgba(35, 44, 48, 0.55);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18),
                inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.navbar-main .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    color: var(--color-white);
    transition: var(--transition-base);
}

.navbar-main .navbar-brand:hover {
    color: var(--color-primary);
}

.navbar-main .navbar-brand img {
    height: 58px;
    width: auto;
    background-color: rgba(255, 255, 255, 0.12);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: height 0.4s ease;
}

/* Scroll sonrasi logo biraz kuculsun */
.navbar-main.navbar-scrolled .navbar-brand img {
    height: 48px;
}

.navbar-main .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    position: relative;
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

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

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.65rem;
}

.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%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Butonlar ──────────────────────────────────────────────────────── */
.btn-primary-custom {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.65rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-base);
    cursor: pointer;
    display: inline-block;
}

.btn-outline-custom:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── Section Ortak ─────────────────────────────────────────────────── */
.section-padding {
    padding: 5rem 0;
}

.section-heading {
    font-size: 2.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    margin-bottom: 0.6rem;
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border: none;
    margin: 0.8rem auto 1.5rem;
}

/* ── Kart Ortak ────────────────────────────────────────────────────── */
.card-custom {
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer-main {
    background-color: var(--color-secondary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 1.5rem;
}

.footer-main h5 {
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-main a {
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-base);
}

.footer-main a:hover {
    color: var(--color-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li i {
    color: var(--color-primary);
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.5rem;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.footer-brand img {
    height: 30px;
    width: auto;
    background-color: rgba(255, 255, 255, 0.12);
    padding: 3px;
    border-radius: var(--radius-sm);
}

/* ── Scroll to Top ─────────────────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    border: none;
    cursor: pointer;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.text-primary-custom {
    color: var(--color-primary) !important;
}

.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

.bg-secondary-custom {
    background-color: var(--color-secondary) !important;
}

.bg-light-custom {
    background-color: var(--color-light) !important;
}

/* ── Scroll-Reveal Animasyonlari (Ortak) ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ── Page Header (Ortak ic sayfa basi) ─────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
    padding: 7rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 190, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 190, 212, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 190, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.page-header .page-header-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

.page-header .breadcrumb {
    justify-content: center;
    margin-top: 1.2rem;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item a {
    color: var(--color-primary);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════════════════════ */
body.loading {
    overflow: hidden;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--color-secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-logo {
    animation: preloaderFloat 2s ease-in-out infinite;
}

.preloader-logo img {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(11, 190, 212, 0.4));
}

@keyframes preloaderFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.preloader-spinner {
    position: relative;
    width: 56px;
    height: 56px;
}

.preloader-ring {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(11, 190, 212, 0.12);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════════════════ */
.custom-cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99990;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
}

.custom-cursor.cursor-visible,
.cursor-follower.cursor-visible {
    opacity: 1;
}

.custom-cursor {
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    background: var(--color-primary);
    box-shadow: 0 0 12px rgba(11, 190, 212, 0.6), 0 0 24px rgba(11, 190, 212, 0.3);
    mix-blend-mode: normal;
}

.cursor-follower {
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
    border: 1.5px solid rgba(11, 190, 212, 0.4);
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease,
                margin 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Hover durumu — cursor büyür */
.custom-cursor.cursor-hover {
    width: 6px;
    height: 6px;
    margin-left: -3px;
    margin-top: -3px;
    background: var(--color-white);
    box-shadow: 0 0 16px rgba(11, 190, 212, 0.8);
}

.cursor-follower.cursor-hover {
    width: 52px;
    height: 52px;
    margin-left: -26px;
    margin-top: -26px;
    border-color: rgba(11, 190, 212, 0.6);
    background: rgba(11, 190, 212, 0.05);
}

/* Click durumu */
.custom-cursor.cursor-click {
    transform: scale(0.6);
}

.cursor-follower.cursor-click {
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    border-color: var(--color-primary);
}

/* Touch cihazlarda gizle */
@media (pointer: coarse) {
    .custom-cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 99980;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(11, 190, 212, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE TRANSITION OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99991;
    background: var(--color-secondary-dark);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.page-transition-active {
    opacity: 1;
    pointer-events: all;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEXT SPLIT REVEAL
   ═══════════════════════════════════════════════════════════════════════════ */
.split-reveal {
    overflow: hidden;
}

.split-word {
    display: inline-block;
}

.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-revealed .split-char {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED BUTTON SHIMMER
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-primary-custom {
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: none;
    pointer-events: none;
}

.btn-primary-custom:hover::before {
    animation: btnShimmer 0.6s ease forwards;
}

@keyframes btnShimmer {
    from { left: -100%; }
    to { left: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED FOOTER ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-social a {
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(11, 190, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.footer-social a:hover::before {
    transform: scale(1.8);
}





