/* ====================================
   PANIKODASI.COM — Industrial Security Theme
   ==================================== */
:root {
    --pk-black: #0D0D0D;
    --pk-panel: #171717;
    --pk-red: #D72638;
    --pk-red-dark: #B01E2E;
    --pk-border: #2A2A2A;
    --pk-gray: #D1D5DB;
}

* {
    scroll-behavior: smooth;
}

::selection {
    background: var(--pk-red);
    color: white;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pk-black);
}

::-webkit-scrollbar-thumb {
    background: var(--pk-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pk-red);
}

/* Header */
#site-header.scrolled {
    background: rgba(13, 13, 13, 0.98) !important;
    box-shadow: 0 1px 0 var(--pk-border);
}

/* Mobile Menu */
#mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* CTA Glow */
.btn-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    box-shadow: 0 0 25px rgba(215, 38, 56, 0.4);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-cta:hover::before {
    left: 100%;
}

/* Card Hover */
.card-hover {
    border: 1px solid var(--pk-border);
    transition: all 0.4s ease;
}

.card-hover:hover {
    border-color: rgba(215, 38, 56, 0.4);
    box-shadow: 0 0 30px rgba(215, 38, 56, 0.08);
    transform: translateY(-4px);
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 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: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Hero */
.hero-gradient {
    background: linear-gradient(135deg, var(--pk-black) 0%, #1a0a0a 50%, var(--pk-black) 100%);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(215, 38, 56, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Armored Panel */
.armored-panel {
    position: relative;
    background: var(--pk-panel);
    border: 1px solid var(--pk-border);
    border-radius: 4px;
}

.armored-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pk-red), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.armored-panel:hover::before {
    opacity: 1;
}

/* FAQ */
.faq-item {
    border: 1px solid var(--pk-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(215, 38, 56, 0.3);
}

.faq-item.active {
    border-color: var(--pk-red);
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Calculator */
.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 2px solid var(--pk-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--pk-gray);
    transition: all 0.3s;
}

.step-dot.active {
    border-color: var(--pk-red);
    background: var(--pk-red);
    color: white;
}

.step-dot.completed {
    border-color: var(--pk-red);
    background: rgba(215, 38, 56, 0.15);
    color: var(--pk-red);
}

.step-line {
    height: 2px;
    background: var(--pk-border);
    flex: 1;
    transition: background 0.3s;
}

.step-line.active {
    background: var(--pk-red);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

/* Blog */
.blog-card {
    background: var(--pk-panel);
    border: 1px solid var(--pk-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s;
}

.blog-card:hover {
    border-color: rgba(215, 38, 56, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Badges & Stats */
.danger-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(215, 38, 56, 0.1);
    border: 1px solid rgba(215, 38, 56, 0.3);
    color: var(--pk-red);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--pk-red);
    line-height: 1;
}

/* Grid BG */
.grid-bg {
    background-image:
        linear-gradient(rgba(42, 42, 42, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 42, 42, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Animations */
@keyframes pulse-border {

    0%,
    100% {
        border-color: var(--pk-border);
    }

    50% {
        border-color: rgba(215, 38, 56, 0.5);
    }
}

.pulse-border {
    animation: pulse-border 3s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* WhatsApp Tooltip */
#whatsapp-float::after {
    content: 'Bize Yazın';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 12px;
    background: var(--pk-panel);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border: 1px solid var(--pk-border);
}

#whatsapp-float:hover::after {
    opacity: 1;
}

/* Range Input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--pk-border);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--pk-red);
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid white;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--pk-red);
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid white;
}

/* Hero text animation initial state */
#hero-line-1,
#hero-line-2,
#hero-line-3,
#hero-subtitle,
#hero-cta,
#hero-trust,
#hero-badge,
#hero-stats-bar,
#hero-divider {
    opacity: 0;
}

#hero-illustration {
    opacity: 0;
}

#hero-side-left,
#hero-side-right {
    opacity: 0;
}

/* Hero Glitch Text */
.hero-glitch-text {
    position: relative;
    display: inline-block;
}

.hero-glitch-text::before,
.hero-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    color: #D72638;
    pointer-events: none;
    opacity: 0;
}

.hero-glitch-text.glitch-active::before {
    animation: hero-glitch-1 4s infinite linear;
    text-shadow: -2px 0 rgba(215, 38, 56, 0.7);
    opacity: 0.8;
}

.hero-glitch-text.glitch-active::after {
    animation: hero-glitch-2 4s infinite linear;
    text-shadow: 2px 0 rgba(215, 38, 56, 0.5);
    opacity: 0.6;
}

@keyframes hero-glitch-1 {

    0%,
    90%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    92% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-3px, 1px);
    }

    94% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(3px, -1px);
    }

    96% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-2px, 0);
    }
}

@keyframes hero-glitch-2 {

    0%,
    88%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    90% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(3px, 1px);
    }

    93% {
        clip-path: inset(30% 0 40% 0);
        transform: translate(-3px, -1px);
    }

    95% {
        clip-path: inset(70% 0 5% 0);
        transform: translate(2px, 0);
    }
}

/* Hero Primary Button */
.hero-btn-primary {
    background: linear-gradient(135deg, #D72638 0%, #B01E2E 100%);
    box-shadow: 0 4px 25px rgba(215, 38, 56, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-btn-primary:hover {
    box-shadow: 0 8px 40px rgba(215, 38, 56, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: none;
}

.hero-btn-primary::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(215, 38, 56, 0.3) 100%);
    border-radius: inherit;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-btn-primary:hover::after {
    opacity: 1;
}

/* Stat Card Hover */
.hero-stat-card {
    transition: all 0.3s ease;
}

.hero-stat-card:hover {
    transform: translateY(-3px);
}

.hero-stat-card:hover>div:first-child {
    border-color: rgba(215, 38, 56, 0.3) !important;
    box-shadow: 0 4px 20px rgba(215, 38, 56, 0.1);
}

/* Colon Blink */
.hero-colon {
    animation: colon-blink 1s step-end infinite;
}

@keyframes colon-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.hero-tag {
    opacity: 0;
}

@keyframes tag-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero-tag {
    animation: tag-float 4s ease-in-out infinite;
}

/* Threat Ticker */
.threat-ticker {
    will-change: transform;
}

/* Counter pulse */
#counter-mins,
#counter-secs {
    transition: color 0.3s;
}

/* Hero trust stat hover */
#hero-trust>div {
    transition: all 0.3s ease;
}

#hero-trust>div:hover {
    border-color: rgba(215, 38, 56, 0.4);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width:768px) {
    .stat-number {
        font-size: 2rem;
    }

    .hero-gradient {
        min-height: 80vh;
    }
}

@media (max-width:640px) {
    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}