/* =====================================================
   HEFA YAZILIM - GİRİŞ ANİMASYONU
   ===================================================== */

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #020617;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* HEFA SVG Text */
.intro-text {
    position: relative;
}

.intro-text svg {
    width: 400px;
    max-width: 70vw;
    height: auto;
}

.intro-text svg text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 140px;
    letter-spacing: 5px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawText 2.5s ease forwards;
}

@keyframes drawText {
    0% {
        stroke-dashoffset: 600;
        fill: transparent;
    }
    70% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    100% {
        stroke-dashoffset: 0;
        fill: #ffffff;
    }
}

.intro-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s 1.2s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   SAYFA GEÇİŞ ANİMASYONU
   ===================================================== */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #020617;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(15px);
}

.page-transition.active .transition-content {
    animation: transitionShow 0.4s 0.1s ease forwards;
}

@keyframes transitionShow {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.transition-hefa {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 12px;
    line-height: 1;
    margin-right: -12px;
}

.transition-yazilim {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 10px;
    line-height: 1;
    margin-right: -10px;
}

.transition-line {
    width: 0;
    height: 3px;
    background: #0284c7; /* maviye çalan güzel bir renk */
    margin-top: 15px;
    border-radius: 4px;
}

.page-transition.active .transition-line {
    animation: expandLine 0.6s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes expandLine {
    0% { width: 0; opacity: 0; }
    100% { width: 120%; opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .intro-text svg {
        width: 280px;
    }
    
    .intro-text svg text {
        font-size: 100px;
    }
    
    .intro-subtitle {
        font-size: 0.7rem;
        letter-spacing: 6px;
    }
    
    .transition-hefa {
        font-size: 2.2rem;
        letter-spacing: 8px;
        margin-right: -8px;
    }
    
    .transition-yazilim {
        font-size: 0.9rem;
        letter-spacing: 6px;
        margin-right: -6px;
    }
}
