:root {
    --bg-color: #050505;
    --dark-gray: #121212;
    --card-bg: linear-gradient(145deg, #161616, #0a0a0a);
    --border-gray: #2a2a2a;
    --text-main: #ffffff;
    --text-muted: #999999;
    --accent: #e0e0e0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Arial, sans-serif; }

body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
body.loading { overflow: hidden; /* Açılış animasyonu bitene kadar kaydırmayı engeller */ }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* -----------------------------
   AÇILIŞ ANİMASYONU (PRELOADER)
------------------------------ */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 1s ease, visibility 1s;
}

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

.loader-content .motto {
    font-size: 14px; letter-spacing: 8px; color: #555;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 1s forwards 0.5s;
}

.loader-content .logo-large {
    font-size: 5rem; font-weight: 900; letter-spacing: -2px;
    margin: 20px 0; color: #fff;
    opacity: 0; transform: scale(0.9);
    animation: popIn 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards 1.2s;
}

.loader-content .sub-text {
    font-size: 12px; letter-spacing: 4px; color: #444;
    opacity: 0;
    animation: fadeIn 1s forwards 2.2s;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { to { opacity: 1; } }

/* -----------------------------
   NAVBAR
------------------------------ */
header {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(5, 5, 5, 0); border-bottom: 1px solid transparent;
    transition: var(--transition);
}
header.scrolled {
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-gray);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 28px; font-weight: 900; letter-spacing: -1px; }
nav ul { list-style: none; display: flex; gap: 20px; align-items: center; }
nav ul li a { font-size: 14px; font-weight: 600; }
nav ul li a:hover:not(.btn-solid):not(.btn-outline) { color: var(--text-muted); }

/* -----------------------------
   BUTONLAR
------------------------------ */
.btn-outline { border: 1px solid var(--border-gray); padding: 10px 20px; border-radius: 4px; }
.btn-outline:hover { background: var(--text-main); color: var(--bg-color); border-color: var(--text-main); }
.btn-solid { background: var(--text-main); color: var(--bg-color); padding: 10px 20px; border-radius: 4px; font-weight: bold; }
.btn-solid:hover { background: var(--accent); transform: translateY(-2px); }
.btn-outline.large, .btn-solid.large { padding: 15px 30px; font-size: 16px; }
.shadow-glow { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); }
.shadow-glow:hover { box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }

.btn-text {
    color: var(--text-muted); font-weight: bold; text-transform: uppercase;
    font-size: 14px; letter-spacing: 1px; display: inline-block; margin-top: 10px;
}
.btn-text:hover { color: var(--text-main); transform: translateX(5px); }

/* -----------------------------
   HERO (KARŞILAMA EKRANI)
------------------------------ */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 20px; position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: grayscale(100%) brightness(0.4); z-index: 1;
    animation: slowZoom 10s infinite alternate linear;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(5,5,5,0.3) 0%, rgba(5,5,5,1) 90%); z-index: 2;
}
.hero-content { position: relative; z-index: 3; }
.hero-content h1 { font-size: 5.5rem; line-height: 1; margin-bottom: 20px; letter-spacing: -2px; }
.text-gradient { background: linear-gradient(90deg, #fff, #666); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px auto; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.05); } }

/* -----------------------------
   HİZMETLER
------------------------------ */
.services { padding: 120px 0; background: radial-gradient(circle at top, #0f0f0f 0%, #050505 100%); }
.text-center { text-align: center; margin-bottom: 100px; }
.section-title { font-size: 2.8rem; margin-bottom: 10px; letter-spacing: -1px; }
.section-subtitle { color: var(--text-muted); font-size: 1.2rem; }

.service-row {
    display: flex; align-items: center; max-width: 1050px; margin: 0 auto 120px auto;
    gap: 60px; padding: 0 20px;
}
.service-row.reverse { flex-direction: row-reverse; }

.service-image {
    flex: 1; overflow: hidden; border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    position: relative;
}
.service-image::after {
    content: ''; position: absolute; inset: 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8); pointer-events: none;
}
.service-image img {
    width: 100%; height: auto; display: block;
    filter: grayscale(80%) contrast(1.1); transition: transform 0.6s ease, filter 0.6s ease;
}
.service-row:hover .service-image img { transform: scale(1.05); filter: grayscale(0%); }

.service-text { flex: 1; background: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid var(--border-gray); }
.service-text h3 { font-size: 2.2rem; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-gray); }
.service-text p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.15rem; line-height: 1.8; }

/* -----------------------------
   FOOTER
------------------------------ */
footer { background-color: #000; padding: 80px 0 30px 0; border-top: 1px solid var(--border-gray); }
.footer-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.footer-left h2 { font-size: 28px; font-weight: 900; letter-spacing: -1px; }
.footer-left p, .footer-right p { color: var(--text-muted); margin-top: 5px; }
.footer-phone { font-size: 28px; font-weight: bold; display: inline-block; margin-top: 10px; color: #fff; }
.footer-phone:hover { color: var(--text-muted); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-gray); padding-top: 30px; color: #444; font-size: 14px; }

/* -----------------------------
   MOBİL UYUMLULUK
------------------------------ */
@media (max-width: 768px) {
    .loader-content .logo-large { font-size: 3rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-buttons { flex-direction: column; }
    .service-row, .service-row.reverse { flex-direction: column; gap: 40px; margin-bottom: 80px; }
    .service-text { padding: 30px 20px; }
    nav ul { display: none; }
    .footer-container { flex-direction: column; text-align: center; gap: 40px; }
}