/* =============
   PRELOADER / AÇILIŞ ANİMASYONU ============= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 3.5rem; /* Boyutu isteğe göre ayarlayabilirsiniz */
    font-weight: 800;
    margin-bottom: 0; /* Alt boşluğu sıfırladık çünkü artık yan yana */
    line-height: 1;
}

.preloader-logo img {
    width: auto;
    height: 80px; /* Yaprakla orantılı olması için logonun yüksekliğini sabitledik */
    display: block;
    object-fit: contain;
    /* İsterseniz logoya hafif bir giriş animasyonu ekleyebilirsiniz: */
    animation: fadeInLogo 1.5s ease forwards;
}

.preloader-logo .logo-grow {
    color: var(--primary-green);
}

.preloader-logo .logo-it {
    color: white;
}

.preloader-brand {
    display: flex;
    align-items: center; /* Yaprak ve logonun dikey merkezlenmesini sağlar */
    justify-content: center;
    gap: 5px; /* Aradaki boşluk */
    margin-bottom: 20px;
}

.preloader-leaf {
    width: 70px; /* Logonun boyutuna göre burayı ayarlayabilirsiniz */
    height: 70px;
    margin: 0;
}

.leaf-svg {
    width: 100%;
    height: 100%;
}

.leaf-path {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLeaf 2s ease forwards;
}

.leaf-vein {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 1.5;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawVein 1.5s ease 0.5s forwards;
}

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

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

.preloader-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: var(--primary-green);
    border-radius: 3px;
    animation: progressBar 2s ease forwards;
}

@keyframes progressBar {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}