/* ==========================================================================
   CANOPUS BİLİŞİM - MASTER DESIGN SYSTEM & CUSTOM STYLES (2026)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL & CUSTOM SCROLLBAR
   -------------------------------------------------------------------------- */
* {
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

/* --------------------------------------------------------------------------
   2. HERO METRICS & COUNTERS
   -------------------------------------------------------------------------- */
#hero-metrics .counter {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

#hero-metrics > div:hover div:first-child {
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* --------------------------------------------------------------------------
   3. MARQUEE (KAYAN MARKA LOGOLARI)
   -------------------------------------------------------------------------- */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    animation: marquee 45s linear infinite;
}

.marquee-container:hover .animate-marquee {
    animation-play-state: paused;
}



/* --------------------------------------------------------------------------
   4. BENTO GRID SERVICE CARDS & SUB-BADGES
   -------------------------------------------------------------------------- */
.service-card {
    text-decoration: none;
    backdrop-filter: blur(16px);
    background: rgba(17, 24, 39, 0.75);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(56, 189, 248, 0.2);
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    background-color: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.9);
    border-radius: 0.6rem;
    text-decoration: none;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .sub-badge {
    color: #f1f5f9;
    border-color: rgba(56, 189, 248, 0.35);
    background-color: rgba(56, 189, 248, 0.08);
}

.sub-badge:hover,
.service-card:hover .sub-badge:hover {
    color: #0b0f19 !important;
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px) scale(1.03);
}
/* ==================== CARD SPOTLIGHT & GLASS EFFECTS ==================== */
.card-spotlight {
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(56, 189, 248, 0.15),
        transparent 40%
    );
}

.ui-card {
    backdrop-filter: blur(16px);
    background-color: rgba(17, 24, 39, 0.75);
    will-change: transform, box-shadow;
}

.ui-card:hover {
    box-shadow: 0 20px 40px -15px rgba(56, 189, 248, 0.25);
}

/* --------------------------------------------------------------------------
   5. UI CARDS, FORMS & GLOW EFFECTS
   -------------------------------------------------------------------------- */
.ui-card {
    backdrop-filter: blur(12px);
    background-color: rgba(17, 24, 39, 0.7);
}

.btn-glow-primary:hover {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.tab-btn.active {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

.form-input:focus, .form-select:focus {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

/* --------------------------------------------------------------------------
   6. ABOUT, TESTIMONIALS & BLOG SECTIONS
   -------------------------------------------------------------------------- */
#about {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 15, 25, 0.95) 100%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#testimonials .p-6:hover {
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.1);
}

article {
    backdrop-filter: blur(16px);
    background: rgba(17, 24, 39, 0.75);
}

article:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 35px -15px rgba(56, 189, 248, 0.2);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(31, 41, 55, 0.8);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Scrollbar Hiding */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.social-icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.5);
}

/* Modals & Keyframes */
#auth-modal > div { animation: modalPop 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

#cart-drawer > div { animation: drawerSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes drawerSlide {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    border-width: 1px;
    border-style: solid;
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
    user-select: none;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* --------------------------------------------------------------------------
   7. HEADER & HERO REFINEMENT
   -------------------------------------------------------------------------- */
#site-header.header-scrolled {
    background: rgba(11, 15, 25, 0.85) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
}

#site-header.header-scrolled #header-inner {
    height: 64px;
}

.nav-link .nav-underline {
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: 0.4rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-underline,
.nav-link.active .nav-underline {
    transform: scaleX(1);
}

.hero-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, black 35%, transparent 90%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, black 35%, transparent 90%);
}

@keyframes heroGlowBreathe {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

.hero-glow-breathe {
    animation: heroGlowBreathe 6s ease-in-out infinite;
}

.container-enterprise {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: 24px;
}

@media (max-width: 768px) {
    .container-enterprise { padding-inline: 16px; }
}

.capability-card {
    padding: 20px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

/* ==================== HERO 3D SHOWCASE ==================== */
.perspective-1000 {
    perspective: 1000px;
}

.rotate-x-6 {
    transform: rotateX(6deg) rotateY(-8deg) scale(0.98);
}

#hero-main-card {
    will-change: transform, opacity;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
}

.hero-tab-btn.active {
    background-color: #38bdf8 !important;
    color: #0b0f19 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}