/* Mimari/Mühendislik hero animasyonu — SVG wireframe */

.arch-hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center;
    padding: 40px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(0,105,174,0.35), transparent 55%),
        radial-gradient(ellipse at 20% 70%, rgba(10,132,210,0.22), transparent 60%),
        linear-gradient(180deg, #040810 0%, #0a0f17 100%);
}

/* Blueprint grid arkaplan */
.arch-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(63,163,224,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63,163,224,0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
    animation: gridDrift 60s linear infinite;
}

.arch-hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.arch-hero__text {
    max-width: 600px;
}

/* SVG sahne */
.arch-scene {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 560px;
    margin-left: auto;
}
.arch-scene svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Çizgilerin kendi kendine çizilmesi */
.arch-scene path,
.arch-scene line,
.arch-scene polyline,
.arch-scene rect.stroke {
    fill: none;
    stroke: var(--color-brand-hi, #3fa3e0);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.arch-draw {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 3.5s var(--ease-out) forwards;
}
.arch-draw-slow  { animation-duration: 4.5s; }
.arch-draw-fast  { animation-duration: 2.5s; }
.arch-draw-d2    { animation-delay: 0.3s; }
.arch-draw-d4    { animation-delay: 0.6s; }
.arch-draw-d6    { animation-delay: 0.9s; }
.arch-draw-d8    { animation-delay: 1.2s; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Measurement tick / grid ayıracı */
.arch-tick {
    stroke: rgba(63,163,224,0.35);
    stroke-width: 1;
    stroke-dasharray: 2 4;
}

.arch-dot {
    fill: var(--color-brand-hi);
    filter: drop-shadow(0 0 6px var(--color-brand-hi));
    animation: dotPulse 3s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}
@keyframes dotPulse {
    0%   { opacity: 0; transform: scale(0.3); }
    30%  { opacity: 1; transform: scale(1); }
    70%  { opacity: 1; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1); }
}

/* Float measurement labels */
.arch-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    fill: rgba(63,163,224,0.7);
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fadeIn 0.6s ease 2s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* Floating particles */
.arch-particles {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 1;
}
.arch-particle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-brand-hi);
    opacity: 0.4;
    animation: particleFloat 15s linear infinite;
    box-shadow: 0 0 8px var(--color-brand-hi);
}
.arch-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.arch-particle:nth-child(2) { top: 70%; left: 80%; animation-delay: -3s; }
.arch-particle:nth-child(3) { top: 50%; left: 40%; animation-delay: -6s; }
.arch-particle:nth-child(4) { top: 30%; left: 60%; animation-delay: -9s; }
.arch-particle:nth-child(5) { top: 85%; left: 20%; animation-delay: -12s; }
@keyframes particleFloat {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { transform: translate(80px, -120px); opacity: 0; }
}

/* Rotating corner badge (technical stamp) */
.arch-stamp {
    position: absolute;
    bottom: 40px; left: 40px;
    width: 110px; height: 110px;
    z-index: 4;
    animation: spinSlow 30s linear infinite;
    pointer-events: none;
    opacity: 0.75;
}
.arch-stamp svg { width: 100%; height: 100%; }
.arch-stamp text {
    fill: var(--color-brand-hi);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
    .arch-hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .arch-scene { max-width: 420px; margin: 0 auto; }
    .arch-stamp { display: none; }
}
