/* ============================================
   GENETEC DESTEK TR — Premium Design System
   ============================================ */

/* --- Base & Reset Enhancements --- */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(0, 95, 158, 0.3);
    color: #fff;
}

/* --- Modern Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080c16; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #005F9E; }

/* --- Noise Texture Overlay --- */
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* --- Gradient Mesh Background --- */
.gradient-mesh {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 95, 158, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 95, 158, 0.08) 0%, transparent 50%);
}

.gradient-mesh-light {
    background:
        radial-gradient(ellipse at 10% 20%, rgba(0, 95, 158, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 50%);
}

/* --- Grid Pattern --- */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.grid-pattern-light {
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- Scan Line Effect (Security Theme) --- */
.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
    animation: scanline 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes scanline {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- Glassmorphism --- */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* --- Animated Gradient Border --- */
.glow-border {
    position: relative;
}
.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #005F9E, #38bdf8, #005F9E, #38bdf8);
    background-size: 300% 300%;
    animation: gradient-rotate 6s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.glow-border:hover::before {
    opacity: 1;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Shimmer Button Effect --- */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}
.btn-shimmer:hover::after {
    left: 100%;
}

/* --- Glow Shadow Variants --- */
.shadow-glow {
    box-shadow: 0 0 30px rgba(0, 95, 158, 0.15), 0 10px 40px rgba(0, 0, 0, 0.1);
}
.shadow-glow-accent {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15), 0 10px 40px rgba(0, 0, 0, 0.1);
}
.shadow-glow-hover:hover {
    box-shadow: 0 0 40px rgba(0, 95, 158, 0.25), 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* --- Reveal Animations (Scroll-Triggered) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- Card Hover Effects --- */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(0, 95, 158, 0.08);
}

.card-tilt {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-tilt:hover {
    transform: translateY(-4px) rotate(-0.5deg);
}

/* --- Header Shrink --- */
.header-shrink {
    transition: all 0.3s ease;
}
.header-shrink.scrolled {
    padding-top: 0;
    padding-bottom: 0;
}
.header-shrink.scrolled .header-inner {
    height: 3.5rem;
}

/* --- Floating Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(4px) rotate(-1deg); }
}
.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* --- Pulse Glow --- */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
    50% { box-shadow: 0 0 40px rgba(56, 189, 248, 0.4); }
}
.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* --- Counter Animation --- */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* --- Separator Line --- */
.line-accent {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #005F9E, #38bdf8);
    border-radius: 99px;
}

/* --- Tag / Badge --- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.tag-accent {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}
.tag-primary {
    background: rgba(0, 95, 158, 0.1);
    border: 1px solid rgba(0, 95, 158, 0.2);
    color: #005F9E;
}

/* --- Divider with icon --- */
.divider-icon {
    display: flex;
    align-items: center;
    gap: 16px;
}
.divider-icon::before,
.divider-icon::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 95, 158, 0.2), transparent);
}

/* --- Hero Parallax Layer --- */
.parallax-layer {
    will-change: transform;
}

/* --- Accordion/Details Enhancement --- */
details summary {
    cursor: pointer;
}
details summary::-webkit-details-marker {
    display: none;
}
details[open] summary .chevron-icon {
    transform: rotate(180deg);
}
.chevron-icon {
    transition: transform 0.3s ease;
}

/* --- Focus Styles --- */
a:focus-visible, button:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Responsive Typography Scale --- */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.15;
    }
}

/* --- Print Styles --- */
@media print {
    .no-print { display: none !important; }
    body { background: white; color: black; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-float, .animate-float-slow, .animate-pulse-glow {
        animation: none;
    }
    .scan-line::after {
        animation: none;
    }
}
