/* ======================================================================= */
/* BÖLÜM 1: TEMEL DEĞİŞKENLER VE KURULUM
/* ======================================================================= */
:root {
    --bg-main: #F3EAD3; 
    --bg-gradient: linear-gradient(135deg, #F3EAD3, #EFE8D1);
    --card-bg: #FFFFFF; 
    --card-border: #EAEAEA;
    --text-dark: #3D3D3D; 
    --text-medium: #888888;
    --accent-copper: #C4A484; 
    --accent-copper-dark: #B08F71;
    --accent-copper-light: #DDC5AF; 
    --accent-success: #7E8C82; 
    --accent-success-dark: #6A776D;
    --accent-error: #D32F2F; /* Hata rengi */
    --paper-texture-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    --font-elegant: 'EB Garamond', serif;
}

body, html {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

body {
    background: linear-gradient(135deg, #F5F5DC 0%, #FAF0E6 50%, #FFF5EE 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================================================= */
/* BÖLÜM 2: ARKA PLAN ANİMASYONU
/* ======================================================================= */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.canvas-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; display: block;
}
.gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(245, 245, 220, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(250, 240, 230, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(255, 245, 238, 0.2) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}
.floating-shapes { position: absolute; width: 100%; height: 100%; }
.shape {
    position: absolute;
    background: rgba(255, 250, 240, 0.15);
    border: 1px solid rgba(245, 222, 179, 0.25);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}
.shape:nth-child(1) { width: 120px; height: 120px; top: 20%; left: 10%; animation-delay: 0s; animation-duration: 25s; }
.shape:nth-child(2) { width: 80px; height: 80px; top: 60%; left: 80%; animation-delay: 5s; animation-duration: 20s; }
.shape:nth-child(3) { width: 150px; height: 150px; top: 70%; left: 20%; animation-delay: 10s; animation-duration: 30s; }
.shape:nth-child(4) { width: 100px; height: 100px; top: 30%; left: 70%; animation-delay: 15s; animation-duration: 22s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-40px) rotate(90deg); }
    50% { transform: translateY(20px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}
@keyframes gradientShift {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

/* ======================================================================= */
/* BÖLÜM 3: ANA YAPI VE İLETİŞİM KARTI
/* ======================================================================= */
.contact-container {
    width: 100%;
    max-width: 750px;
    min-height: 80vh;
    background-color: var(--card-bg);
    background-image: var(--paper-texture-svg);
    border-radius: 12px;
    padding: 3rem 4rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--card-border);
    animation: fadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
}
.contact-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px; padding: 2px;
    background: linear-gradient(145deg, var(--accent-copper-light) 0%, rgba(255,255,255,0) 50%, var(--accent-copper) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; pointer-events: none; opacity: 0.3;
}
.contact-container::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02), inset 0 0 50px rgba(0,0,0,0.01);
    pointer-events: none;
}
.contact-header, .info-section, .contact-form-wrapper { text-align: center; margin-bottom: 2.5rem; }
.brand-logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.8rem; 
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dark);
}
.subtitle { font-size: 1.2rem; color: var(--text-medium); margin-top: 0.75rem;}
.email-link {
    display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none;
    color: var(--text-dark); font-size: 1.1rem; transition: all 0.3s ease;
    margin-bottom: 1.8rem; padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent-copper-light); border-radius: 25px;
    background-color: #fcf8f3; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.email-link:hover { background-color: var(--accent-copper); color: white; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.07); }
.email-link i { color: var(--accent-copper-dark); font-size: 1.4rem; transition: color 0.3s ease;}
.email-link:hover i { color: white; }
.social-links { display: flex; justify-content: center; gap: 1.2rem; }
.social-icon {
    width: 45px; height: 45px; border-radius: 50%; background-color: #f1f1f1;
    color: var(--text-medium); display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 1.2rem; transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.social-icon:hover { background-color: var(--accent-copper); color: white; transform: translateY(-4px); box-shadow: 0 5px 12px rgba(0,0,0,0.1); }
.social-icon span { font-weight: bold; }
.form-title {
    font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 2.5rem;
    position: relative; padding-bottom: 1rem; color: var(--text-dark);
}
.form-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background: var(--accent-copper);
}

/* ======================================================================= */
/* BÖLÜM 4: FORM ELEMENTLERİ
/* ======================================================================= */
.form-group { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.8rem; text-align: left; }
.form-group label { color: var(--text-dark); font-size: 1.1rem; font-weight: 500; font-family: var(--font-elegant); }
.form-actions { display: flex; justify-content: center; padding-top: 1rem; margin-top: 1rem; }

.input-anim-container { position: relative; }
.input-anim-container input, .input-anim-container textarea {
    width: 100%; border: 1px solid var(--card-border); background-color: #fcfcfc;
    transition: all 0.3s ease; border-radius: 8px; padding: 0.9rem;
    font-size: 1.1rem; font-family: var(--font-elegant); color: var(--text-dark);
}
textarea { resize: vertical; min-height: 120px; }
.input-anim-container input::placeholder, .input-anim-container textarea::placeholder { color: var(--text-medium); opacity: 0.7; }
.input-anim-container input:focus, .input-anim-container textarea:focus { outline: none; border-color: transparent !important; }

.input-anim-container span {
    position: absolute; background-color: var(--accent-copper-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease; pointer-events: none;
}
.input-anim-container input:focus ~ span, .input-anim-container textarea:focus ~ span { box-shadow: 0 0 8px var(--accent-copper-light); }
.input-anim-container .bottom, .input-anim-container .top { height: 2px; left: 0; right: 0; transform: scaleX(0); }
.input-anim-container .left, .input-anim-container .right { width: 2px; top: 0; bottom: 0; transform: scaleY(0); }
.input-anim-container .bottom { bottom: 0; transform-origin: bottom right; }
.input-anim-container input:focus ~ .bottom, .input-anim-container textarea:focus ~ .bottom { transform-origin: bottom left; transform: scaleX(1); }
.input-anim-container .right { right: 0; transform-origin: top right; }
.input-anim-container input:focus ~ .right, .input-anim-container textarea:focus ~ .right { transform-origin: bottom right; transform: scaleY(1); }
.input-anim-container .top { top: 0; transform-origin: top left; }
.input-anim-container input:focus ~ .top, .input-anim-container textarea:focus ~ .top { transform-origin: top right; transform: scaleX(1); }
.input-anim-container .left { left: 0; transform-origin: bottom left; }
.input-anim-container input:focus ~ .left, .input-anim-container textarea:focus ~ .left { transform-origin: top left; transform: scaleY(1); }

/* GÖNDER BUTONU ANİMASYONU */
.btn-save {
    outline: none; height: 50px; text-align: center; width: 180px;
    border-radius: 40px; background: var(--accent-success); border: none;
    color: white; letter-spacing: 1px;
    font-size: 14px; font-weight: bold; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-save i { font-size: 1.1rem; }
.btn-save:hover { background: var(--accent-success-dark); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.btn-save.onclic {
    width: 50px; height: 50px;
    border: 3px solid #EAEAEA;
    border-left-color: var(--accent-success);
    font-size: 0; color: transparent;
    animation: rotating 1s linear infinite;
    background: transparent; box-shadow: none;
}
.btn-save.onclic i { display: none; }
.btn-save.onclic:hover { background: transparent; color: transparent; }
.btn-save.validate {
    width: 180px;
    font-size: 0; color: transparent; background: var(--accent-success);
    border-color: var(--accent-success); position: relative;
}
.btn-save.validate::after {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 16px;
    color: white; content: "\f00c";
}
@keyframes rotating { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ======================================================================= */
/* BÖLÜM 5: ANİMASYONLAR VE RESPONSIVE
/* ======================================================================= */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

@media screen and (max-width: 768px) {
    .contact-container { max-width: 90%; padding: 2.5rem 2rem; }
    .shape { width: 80px !important; height: 80px !important; }
}

@media screen and (max-width: 480px) {
    .contact-container { padding: 2rem 1.5rem; min-height: 70vh; }
    .shape { width: 50px !important; height: 50px !important; }
}

/* BİLDİRİM MESAJI - GÜNCELLENMİŞ */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 350px; /* Boyut küçültüldü */
}
.notification-popup.success { border-left: 4px solid var(--accent-success); }
.notification-popup.error { border-left: 4px solid var(--accent-error); }
.notification-popup i { font-size: 1.4rem; }
.notification-popup.success i { color: var(--accent-success); }
.notification-popup.error i { color: var(--accent-error); }
.notification-title { font-weight: 600; margin-bottom: 2px; font-size: 1rem; font-family: 'Playfair Display';}
.notification-text { font-size: 0.9rem; color: var(--text-medium); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }