/* Bu dosyayı 'destek' klasörü içine 'ozel_stil.css' adıyla kaydedin. */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #050505;
    color: white;
    overflow: hidden; /* Yükleyici devredeyken */
}

/* --- ÖZEL SCROLLBAR TASARIMI (Mesaj Kutusu İçin) --- */
/* Webkit tarayıcılar (Chrome, Safari, Edge) için */
textarea#message::-webkit-scrollbar {
    width: 8px; /* Çubuk genişliği */
}

textarea#message::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); /* Arka plan */
    border-radius: 4px;
}

textarea#message::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #4f46e5, #ec4899); /* Tema renkleri */
    border-radius: 4px;
    border: 2px solid #050505; /* Kenarlardan boşluk hissi */
}

textarea#message::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #4338ca, #db2777);
}

/* Firefox için scrollbar */
textarea#message {
    scrollbar-width: thin;
    scrollbar-color: #ec4899 rgba(255, 255, 255, 0.05);
}

/* Animasyonlar */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Temel Bileşenler */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, #050505 120%);
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.gradient-text {
    background: linear-gradient(to right, #4f46e5, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s ease infinite;
}

/* Hizmet Kartları */
.service-icon {
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
    color: #ec4899;
}

/* Yükleyici (Loader) */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50; 
    background-color: rgba(5, 5, 5, 0.95); 
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease-out; 
}

.progress-bar-container {
    width: 80%;
    max-width: 400px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #4f46e5, #ec4899, #f59e0b);
    border-radius: 5px;
    transition: width 0.1s linear;
}

#loader-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-top: 10px;
}

/* Form Stilleri */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    /* İKON İÇİN SAĞ BOŞLUK (Yazının ikonun altına girmemesi için) */
    padding-right: 3.5rem !important; 
}
.form-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Mesaj Alanı */
#message {
    resize: vertical; 
    min-height: 120px;
    max-height: 300px;
}

/* Doğrulama İkonları */
.status-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 20;
}

/* Mesaj Kutusu İkon Pozisyonu (GÜNCELLENDİ) */
#message-status { 
    position: absolute;
    /* Scrollbar (8px) ile çakışmaması için sağdan daha fazla boşluk bırakıyoruz */
    right: 24px; 
    top: 15px; 
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 20;
}

.status-icon.show, #message-status.show {
    opacity: 1;
    visibility: visible;
}

.valid-icon { color: #22c55e; }
.invalid-icon { color: #ef4444; }
.form-input.valid { border-color: #22c55e; }
.form-input.invalid { border-color: #ef4444; }

/* Pasif Buton Stili */
button:disabled, button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
    transform: none !important;
}

/* Çerez Banner */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 40;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    max-width: 380px;
}
#cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Modallar */
#modal-overlay, #form-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 48; /* Başarı modal overlay'i 51 olacak */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
#form-success-overlay { z-index: 51; }

#kvkk-modal, #form-success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 49; /* Başarı modalı 52 olacak */
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
#form-success-modal {
    max-width: 400px;
    z-index: 52;
}

body.modal-open #modal-overlay, body.form-success-open #form-success-overlay {
    opacity: 1;
    visibility: visible;
}
body.modal-open #kvkk-modal, body.form-success-open #form-success-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Başa Dön Butonu */
#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}