/* 
   www.atilimdijital.com - Atılım Dijital
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-h: 215;
    --primary-s: 98%;
    --primary-l: 51%;
    
    --accent-h: 25;
    --accent-s: 95%;
    --accent-l: 53%;

    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --soft-shadow: 0 15px 35px -10px rgba(2, 101, 241, 0.08);
    --hover-shadow: 0 25px 50px -12px rgba(2, 101, 241, 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    color: white;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* GLASSMORPHISM */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card {
    background: white;
    border: 1px solid rgba(241, 245, 249, 0.8);
    box-shadow: var(--soft-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* ANIMATIONS */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* BUTTONS */
.btn-soft-primary {
    background: linear-gradient(145deg, hsl(var(--primary-h), var(--primary-s), 55%), hsl(var(--primary-h), var(--primary-s), 45%));
    color: white;
    box-shadow: 0 4px 20px -5px rgba(2, 101, 241, 0.4);
    transition: all 0.3s ease;
}

.btn-soft-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(2, 101, 241, 0.5);
}

.btn-soft-accent {
    background: linear-gradient(145deg, hsl(var(--accent-h), var(--accent-s), 55%), hsl(var(--accent-h), var(--accent-s), 45%));
    color: white;
    box-shadow: 0 4px 20px -5px rgba(245, 127, 23, 0.4);
    transition: all 0.3s ease;
}

.btn-soft-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(245, 127, 23, 0.5);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

.gradient-text {
    background: linear-gradient(to right, hsl(var(--primary-h), var(--primary-s), 50%), hsl(var(--primary-h), var(--primary-s), 30%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FORM ELEMENTS */
.input-soft {
    background: #f8fafc;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-soft:focus {
    background: white;
    border-color: hsl(var(--primary-h), var(--primary-s), 90%);
    box-shadow: 0 0 0 4px rgba(2, 101, 241, 0.1);
    outline: none;
}

/* FAQ */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* Z-INDEX HIERARCHY - KRİTİK! */
#navbar {
    z-index: 9999 !important;
}

main section {
    position: relative;
    z-index: 1 !important;
}

.fixed.bottom-6 {
    z-index: 40 !important;
}

/* REFERENCE CARDS */
.reference-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: var(--soft-shadow);
    transition: all 0.4s ease;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.reference-card img {
    transition: transform 0.6s ease;
}

.reference-card:hover img {
    transform: scale(1.05);
}

.reference-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* PROSE */
.prose {
    max-width: 65ch;
}

.prose h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.prose h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose strong {
    font-weight: 700;
    color: #0f172a;
}

.prose a {
    color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    text-decoration: underline;
}

.prose img {
    border-radius: 1rem;
    margin: 2rem 0;
}

/* FLOATING BUTTONS */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 1; }
}

.animate-pulse {
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .prose h1 { font-size: 2rem; }
    .prose h2 { font-size: 1.75rem; }
    .prose h3 { font-size: 1.25rem; }
}

/* LOADING */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f1f5f9 8%, #e2e8f0 18%, #f1f5f9 33%);
    background-size: 1000px 100%;
}

/* PRINT */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white;
    }
    .glass-card {
        box-shadow: none;
        border: 1px solid #cbd5e1;
    }
}
/* STICKY SIDEBAR FIX */
.sticky-sidebar {
    position: sticky;
    top: 120px;
    z-index: 10;
    align-self: flex-start;
}

@media (max-width: 1023px) {
    .sticky-sidebar {
        position: static;
    }
}