/* Custom Styles - Cekici Assistance Brand Identity */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Cursor - Site kırmızısı */
:root {
    --cursor-outer-color: rgba(220, 38, 38, 0.4);
    --cursor-inner-color: rgba(220, 38, 38, 0.55);
}

/* Custom Cursor Container */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    display: none;
    will-change: transform;
}

.custom-cursor.active {
    display: block;
}

/* Dış Halka */
.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--cursor-outer-color);
    border-radius: 50%;
    opacity: 0.5;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        border-color 0.3s ease;
    will-change: width, height, opacity;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* İç Halka */
.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--cursor-inner-color);
    border-radius: 50%;
    opacity: 0.6;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        background-color 0.3s ease;
    will-change: transform, opacity;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* Hover Efekti */
.custom-cursor.hover::before {
    width: 60px !important;
    height: 60px !important;
    opacity: 0.7 !important;
    border-color: rgba(220, 38, 38, 0.6) !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.custom-cursor.hover::after {
    opacity: 0.8 !important;
    background: rgba(220, 38, 38, 0.7) !important;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

/* Click efekti */
.custom-cursor.click::before {
    width: 50px;
    height: 50px;
    opacity: 0.4;
    border-color: rgba(220, 38, 38, 0.5);
}

.custom-cursor.click::after {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
    background: rgba(220, 38, 38, 0.6);
}

/* Tüm interaktif elementler için cursor'ı gizle */
a,
button,
input,
textarea,
select,
[role="button"],
.hover-effect,
[onclick],
label,
[tabindex] {
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
    zoom: 1;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Brand Colors - Kırmızı Beyaz Tema */
:root {
    /* Koyu Kırmızı */
    --color-primary-dark: #B91C1C;

    /* Orta Kırmızı */
    --color-primary: #DC2626;

    /* Açık Kırmızı */
    --color-primary-light: #FECACA;

    /* Parlak Kırmızı */
    --color-accent: #EF4444;

    /* C:0 M:0 Y:0 K:100 - Siyah */
    --color-black: #000000;

    /* White */
    --color-white: #FFFFFF;
}

body {
    font-family: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-black);
    zoom: 1;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    cursor: none;
    /* Varsayılan cursor'ı gizle */
}

/* Mobil cihazlarda cursor'ı göster */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none !important;
    }
}

/* Brand Typography - Neo Sans Alternative */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    /* Bold */
}

.brand-font-bold {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.brand-font-ultra {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.brand-font-medium {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Logo Styles */
.logo-img {
    object-fit: contain;
    max-height: 50px;
}

.logo-fallback {
    display: none;
}

/* Package Card Styles */
.package-card {
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(239, 68, 68, 0.1) 50%, transparent 70%);
    animation: package-shimmer 3s infinite;
}

@keyframes package-shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* Smooth transitions */
.transition-smooth {
    transition: all 0.3s ease;
}

/* Custom button hover effects */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Theme-aligned select dropdown styling */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    font-weight: 500;
    border-radius: 0.5rem;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23DC2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select.form-input:hover {
    border-color: #f87171;
    background-color: #fffafa;
}

select.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
    background-color: #ffffff;
}

select.form-input:disabled {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Opened option list styling (browser-supported parts) */
select.form-input option {
    background-color: #ffffff;
    color: #111827;
    font-weight: 500;
    padding: 10px 12px;
}

select.form-input option:hover {
    background-color: #fee2e2;
    color: #991b1b;
}

select.form-input option:checked {
    background: linear-gradient(#FECACA, #FECACA);
    color: #7f1d1d;
    font-weight: 700;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}

@media (min-width: 769px) {
    .desktop-hidden {
        display: none;
    }
}

/* Mobile Menu - Dikey Menü Stilleri */
#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu:not(.hidden) {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

#mobile-menu>div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

#mobile-menu a {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    flex-shrink: 0 !important;
}

/* Çekici animasyonu kaldırıldı */

/* Emergency Button - Acil Yardım Butonu - Sabit Konum */
#emergency-help-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 99999 !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: #ef4444 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Ripple animasyonu gorunurde tasiyor; tasan kisim baska elementlerin (checkbox gibi)
       tiklamalarini yakalamasin diye butonu kendi sinirlari icinde kirpiyoruz. */
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4), 0 0 0 0 rgba(239, 68, 68, 0.7) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Bayilik basvuru sayfasinda buton, onay checkbox'larinin ustune binebiliyor.
   Bu sayfada gizleyip formun sorunsuz tamamlanmasini sagliyoruz. */

#emergency-help-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6), 0 0 0 10px rgba(239, 68, 68, 0.1) !important;
    background: #dc2626 !important;
}

#emergency-help-btn i {
    font-size: 28px !important;
    z-index: 2 !important;
    animation: phonePulse 2s ease-in-out infinite !important;
    color: white !important;
}

@keyframes phonePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

#emergency-help-btn::before {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: #ef4444 !important;
    opacity: 0.6 !important;
    animation: ripple 2s ease-out infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

#emergency-help-btn .tooltip-text {
    position: absolute !important;
    bottom: 85px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #1f2937 !important;
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    font-family: 'Montserrat', sans-serif !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 100000 !important;
}

#emergency-help-btn .tooltip-text::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 6px solid transparent !important;
    border-top-color: #1f2937 !important;
}

#emergency-help-btn:hover .tooltip-text {
    opacity: 1 !important;
}

/* Navbar: dünya üzerine gelince yukarı kayarak gizlenir, geride beyaz alan kalmasın */
#navbar {
    transition: transform 0.35s ease-out;
    will-change: transform;
}

body.globe-hover #navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

body.globe-hover #navbar * {
    pointer-events: none;
}

/* Hero - 3D Etkileşimli Dünya (Fütüristik) */
.hero-globe-section {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    background: radial-gradient(ellipse 80% 70% at 50% 40%, #0c1629 0%, #030712 50%, #020617 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Login sayfası: dünya sabit arka plan, form üstte */
body.login-page {
    cursor: auto;
}
body.login-page .login-globe-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    height: 100vh;
    min-height: 100vh;
    max-height: none;
}
body.login-page .login-globe-bg .globe-canvas,
body.login-page .globe-canvas {
    cursor: default !important;
    pointer-events: none !important;
}
body.login-page .login-content-wrap {
    position: relative;
    z-index: 10;
}
body.login-page .login-content-wrap,
body.login-page .login-content-wrap a,
body.login-page .login-content-wrap input,
body.login-page .login-content-wrap label,
body.login-page .login-content-wrap select,
body.login-page .login-content-wrap textarea {
    cursor: default !important;
}
body.login-page .login-content-wrap button,
body.login-page .login-content-wrap [type="submit"] {
    cursor: pointer !important;
}

.globe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    z-index: 0;
    overflow: hidden;
    contain: layout style paint;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.globe-canvas:active {
    cursor: grabbing;
}

/* Mobil: küre küçülsün ve ortada kalsın */
@media (max-width: 768px) {
    .globe-canvas {
        width: min(92vw, 380px);
        height: min(52vh, 340px);
        left: 50%;
        top: 42%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.15);
    }
}

@media (max-width: 480px) {
    .globe-canvas {
        width: min(88vw, 320px);
        height: min(48vh, 300px);
        top: 40%;
    }
}

.globe-scanlines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
    opacity: 0.6;
}

.globe-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
}

.globe-overlay {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    pointer-events: none;
    overflow: visible;
    width: 100%;
    max-width: 90vw;
    padding: 0 1.5rem;
    box-sizing: border-box;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.globe-hover .globe-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.globe-overlay .globe-cta {
    pointer-events: auto;
}

.globe-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.2);
    color: #fecaca;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    border: 1px solid rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.25);
    white-space: nowrap;
    box-sizing: border-box;
}

.globe-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #f0fdfa;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.4), 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.globe-subtitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: rgba(204, 251, 241, 0.85);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.globe-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.globe-cta:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.globe-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
    transition: transform 0.4s ease-out, opacity 0.35s ease;
    will-change: transform;
}

body.globe-hover .globe-wave {
    transform: translateY(100%);
    pointer-events: none;
}

.globe-wave svg {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .globe-overlay {
        bottom: 10%;
        padding: 0 1rem;
    }

    .globe-title {
        font-size: 1.5rem;
    }

    .globe-badge {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        padding: 0.3rem 0.75rem;
    }

    .globe-subtitle {
        font-size: 0.8125rem;
    }

    .globe-cta {
        padding: 0.65rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .globe-overlay {
        bottom: 8%;
    }

    .globe-title {
        font-size: 1.35rem;
    }
}

/* Responsive - Mobil için */
@media (max-width: 768px) {
    #emergency-help-btn {
        bottom: 20px !important;
        right: 20px !important;
        width: 60px !important;
        height: 60px !important;
    }

    #emergency-help-btn i {
        font-size: 24px !important;
    }

    #emergency-help-btn .tooltip-text {
        bottom: 75px !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}