/* Eroğlu Studios - Master CSS 2026 */

:root {
    --bg-dark: #080808;
    --bg-card: #121212;
    --gold: #d4af37;
    --gold-hover: #b8962d;
    --text-white: #f5f5f5;
    --text-gray: #999;
    --transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 1. Temel Yapı ve Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: inherit;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* 2. Loader ve Animasyonlar */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-logo {
    /* clamp ile yazı boyutu ekrana göre otomatik küçülür/büyür */
    font-size: clamp(1.8rem, 5vw, 2.5rem); 
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center; /* Mobilde ortalanmasını sağlar */
    width: 100%;
    padding: 0 20px;
    animation: luxuryPulse 2s infinite ease-in-out;
}

@keyframes luxuryPulse {
    0% { opacity: 0.1; transform: scale(0.95); filter: blur(2px); }
    50% { opacity: 1; transform: scale(1); filter: blur(0px); }
    100% { opacity: 0.1; transform: scale(0.95); filter: blur(2px); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.logo span { color: var(--gold); font-weight: 300; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--gold); }

/* 4. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(8,8,8,0.4) 0%, var(--bg-dark) 95%);
}

.hero-content { position: relative; z-index: 5; padding: 0 20px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }

/* 5. Genel Bölüm ve Kartlar */
.section-container { padding: 100px 6%; text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 60px; font-weight: 700; }
.section-title span { color: var(--gold); }

/* Portfolio Grid */
.main-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-cat-card {
    background: var(--bg-card);
    padding: 50px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: var(--transition);
}

.main-cat-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cat-icon-box { font-size: 3rem; color: var(--gold); margin-bottom: 20px; }

/* Paketler Grid */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    flex: 1;
    min-width: 320px;
    max-width: 380px;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #222;
    transition: var(--transition);
    text-align: left;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.pricing-card button {
    margin-top: auto;
}

.pricing-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
}

.featured {
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.price { font-size: 2.2rem; font-weight: 700; color: var(--gold); margin: 10px 0; }

/* 6. Modal Stilleri */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    background: #111;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow-y: auto;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: var(--gold);
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.modal-close:hover { color: #fff; }

.feature-detail-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    transition: 0.3s;
}

.feature-detail-box:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: #1f1f1f;
}

.app-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #333;
    transition: 0.3s;
}

.app-link-box:hover {
    border-color: var(--gold);
    background: #202020;
}

/* 7. İletişim Formu */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 18px;
    background: #080808;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: 0.3s;
    width: 100%;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--gold);
}

/* 8. Butonlar */
.btn-gold {
    background: var(--gold);
    color: #000;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: 0.3s;
    display: inline-block;
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    padding: 14px 28px;
    border-radius: 10px;
    border: 2px solid var(--gold);
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
}

/* 9. Mail Gönderim Bildirimi (Toast) */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #121212;
    border: 1px solid var(--gold);
    color: var(--text-white);
    text-align: center;
    border-radius: 10px;
    padding: 16px 20px;
    position: fixed;
    z-index: 3000;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.5s ease, bottom 0.5s ease;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* 10. Footer İmza */
.footer-signature {
    text-align: center;
    padding: 50px 20px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: 30px;
}

.footer-signature .logo {
    font-size: 26px;
    margin-bottom: 10px;
}

.footer-signature p {
    font-size: 0.85rem;
    color: #555;
}

/* =========================================
   11. KUSURSUZ MOBİL UYUMLULUK (RESPONSIVE)
   ========================================= */

/* Tablet ve Yatay Ekranlar (900px ve altı) */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        text-align: center; /* Mobilde her şeyi ortalar */
    }

    .form-row {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .contact-links {
        align-items: center;
    }
}

/* Mobil Telefonlar (768px ve altı) */
@media (max-width: 768px) {
    .section-container {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-top: -50px; 
    }

    .pricing-card, .main-cat-card {
        min-width: 100%;
        padding: 30px 20px;
        text-align: center; /* Kart içindeki yazıları ortalar */
    }
    
    .pricing-card ul {
        text-align: left; /* Listedeki maddelerin sola dayalı kalması daha iyi okunur */
        display: inline-block;
    }

    .modal-container {
        padding: 35px 20px 25px 20px;
    }
    
    .modal-inner-content {
        text-align: center !important; /* Modal içi yazıları mobilde ortalar */
    }
    
    .modal-inner-content h3 {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .app-link-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        align-items: stretch;
    }

    .app-link-box a, .app-link-box span {
        text-align: center;
        width: 100%; 
    }

    .feature-detail-box {
        flex-direction: column; 
        text-align: center;
        align-items: center;
    }
}