/* ==========================================================================
   GPU HARDWARE ACCELERATED LEAF PARTICLES & CONTACT FORM DOCK & PROTECTION
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark-green: #030c08;
    --card-glass-bg: rgba(6, 18, 12, 0.28);
    --dock-glass-bg: rgba(4, 14, 9, 0.42);
    --border-glass: rgba(255, 255, 255, 0.20);
    
    --text-white: #ffffff;
    --text-title: #d1fae5;
    --text-sub: #a7f3d0;
    
    --primary-emerald: #10b981;
    --primary-mint: #34d399;
    --border-grey: rgba(180, 195, 210, 0.50);
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-main);
    background-color: var(--bg-dark-green);
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
    /* Sağ Tık & Metin Seçimi Koruması */
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* ==========================================================================
   BACKGROUND (YAKINLAŞTIRILMIŞ IZGARA & ULTRA-SMOOTH GPU LEAF PARTICLES)
   ========================================================================== */

.grid-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-color: #030c08;
    overflow: hidden;
}

.grid-lines-layer {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(52, 211, 153, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.15) 1px, transparent 1px);
    background-size: 85px 85px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 35%, rgba(0,0,0,0.6) 70%, transparent 95%);
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,1) 35%, rgba(0,0,0,0.6) 70%, transparent 95%);
}

.center-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(5, 45, 30, 0.12) 55%, transparent 85%);
    filter: blur(80px);
}

.leaves-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.leaf-particle {
    position: absolute;
    top: 0;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0,0,0);
}

/* ==========================================================================
   MAIN FLOATING GLASS CARD
   ========================================================================== */

.card-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 2rem 1rem;
}

.glass-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: var(--card-glass-bg);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    backdrop-filter: blur(3px) saturate(120%);
    -webkit-backdrop-filter: blur(3px) saturate(120%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 35px rgba(16, 185, 129, 0.2);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
    transform: translateZ(0);
}

.glass-card:hover {
    box-shadow: 0 38px 75px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 50px rgba(16, 185, 129, 0.3);
}

.card-body {
    padding: 2.75rem 2rem 1.75rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--border-grey);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: border-color 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.avatar-wrapper:hover .avatar-image {
    border-color: var(--primary-mint);
    transform: scale(1.03);
}

.user-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.user-primary-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary-mint);
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.user-secondary-title {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-sub);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.dock-toggle-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.dock-toggle-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.35rem 1.15rem;
    background: rgba(255, 255, 255, 0.12);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border: 1px solid var(--border-glass);
    border-bottom: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.dock-toggle-bar:hover {
    background: rgba(16, 185, 129, 0.3);
}

.toggle-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-title);
    letter-spacing: 0.01em;
}

.toggle-icon {
    font-size: 0.75rem;
    color: var(--primary-mint);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-toggle-bar.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   BOTTOM DOCK & EXPANDABLE FORM
   ========================================================================== */

.bottom-dock {
    background: var(--dock-glass-bg);
    border-top: 1px solid var(--border-glass);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.75rem 0.5rem;
    will-change: transform;
}

.dock-primary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.dock-expanded {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    will-change: max-height, opacity;
}

.bottom-dock.open .dock-expanded {
    max-height: 380px;
    opacity: 1;
    margin-top: 0.65rem;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.2s ease, background 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    will-change: transform;
}

.dock-item:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(52, 211, 153, 0.4);
    transform: translateY(-2px);
}

.dock-icon {
    font-size: 1.3rem;
    color: var(--primary-mint);
}

.dock-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-title);
}

.dock-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.4rem 0.2rem 0.2rem 0.2rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    /* Kullanıcının form alanlarına rahatça yazı yazabilmesi için */
    user-select: text;
    -webkit-user-select: text;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(203, 213, 225, 0.6);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary-mint);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}

.form-field textarea {
    resize: none;
}

.send-message-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-mint));
    border: none;
    border-radius: 12px;
    color: #042f2e;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.2rem;
}

.send-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.4);
}

.toast-popup {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #064e3b;
    border: 1px solid var(--primary-mint);
    color: #ffffff;
    padding: 0.7rem 1.35rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    z-index: 200;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.minimal-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-sub);
}

@media (max-width: 480px) {
    .glass-card {
        max-width: 320px;
    }
}
