/* =========================================
   1. DEĞİŞKENLER VE TEMEL AYARLAR
   ========================================= */
:root {
    --primary-orange: #FF9F43;
    --secondary-orange: #FFC371;
    --mat-orange: #e08e35;
    --dark-text: #2d3436;
    --light-text: #636e72;
    --bg-white: #ffffff;
    --bg-off-white: #fdfbfb;
    --bg-gray: #f1f2f6;
    --orange-gradient: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
}

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

/* DÜZELTME BURADA YAPILDI */
html {
    scroll-behavior: smooth;
    /* html etiketinden overflow ve width kısıtlamasını KALDIRDIK */
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-white);
    color: var(--dark-text);
    line-height: 1.6;
    position: relative;
    
    /* Sağa taşmayı engelleme kodunu sadece BODY'ye veriyoruz */
    overflow-x: hidden; 
    width: 100%;
}

/* =========================================
   2. ARKA PLAN ANİMASYONLARI
   ========================================= */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--orange-gradient);
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    animation: floatBubble 20s infinite alternate ease-in-out;
}

body::before { top: -200px; left: -200px; }
body::after { bottom: -150px; right: -150px; animation-delay: -10s; }

@keyframes floatBubble {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. HEADER & NAVİGASYON
   ========================================= */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 160px;
    height: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-orange);
}

/* =========================================
   4. HERO SECTION (GİRİŞ)
   ========================================= */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn-main {
    display: inline-block;
    padding: 15px 40px;
    background: var(--orange-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px -10px rgba(255, 159, 67, 0.5);
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(255, 159, 67, 0.7);
}

/* =========================================
   5. GENEL BÖLÜM STİLLERİ
   ========================================= */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--orange-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* =========================================
   6. HİZMETLER BÖLÜMÜ
   ========================================= */
.services-section {
    background-color: var(--bg-off-white);
    border-radius: 30px 30px 0 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--orange-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(255, 159, 67, 0.15);
    border-color: #ffe0b2;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: rgba(255, 159, 67, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.icon-wrapper i {
    font-size: 28px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card:hover .icon-wrapper {
    background: var(--orange-gradient);
    transform: rotateY(360deg);
}

.service-card:hover .icon-wrapper i {
    -webkit-text-fill-color: white;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================
   7. PROJELER BÖLÜMÜ
   ========================================= */
.projects-section {
    background-color: var(--bg-white);
    position: relative;
}

.projects-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.projects-scroller {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 20px 40px 5px; /* Sağ tarafa biraz boşluk verdik */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Scrollbar Özelleştirme */
.projects-scroller::-webkit-scrollbar {
    height: 8px;
}
.projects-scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.projects-scroller::-webkit-scrollbar-thumb {
    background: #FFC371;
    border-radius: 10px;
}
.projects-scroller::-webkit-scrollbar-thumb:hover {
    background: #FF9F43;
}

.project-card {
    flex: 0 0 500px;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    scroll-snap-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-image-container {
    flex: 1;
    min-width: 200px;
    height: 100%;
    background-color: #ddd;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 250px;
}

.project-content {
    flex: 1.5;
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-orange);
}

.project-content p {
    font-size: 0.95rem;
    color: var(--light-text);
}

/* Kaydırma Butonları */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

.scroll-btn:hover {
    background: var(--orange-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255, 159, 67, 0.4);
}

.scroll-btn i {
    font-size: 1.2rem;
}

.scroll-btn.left { left: -25px; }
.scroll-btn.right { right: -25px; }

/* =========================================
   8. EKİBİMİZ (BİZ KİMİZ) BÖLÜMÜ
   ========================================= */
.about-section {
    background-color: var(--bg-gray);
    border-radius: 30px 30px 0 0;
}

.about-header {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #ffe0b2;
}

.member-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
    padding: 3px;
    background: white;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.team-card:hover .member-avatar {
    transform: scale(1.05);
}

.team-card h4 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 5px;
    font-weight: 700;
}

.team-card .role {
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   9. FOOTER (KOMPAKT & MAT TURUNCU)
   ========================================= */
.main-footer {
    background-color: var(--mat-orange);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: start;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
}

/* Linkler ve Liste Stili */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a, 
.contact-info a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover, 
.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

/* İletişim Bilgileri */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

/* Sosyal Medya */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: white;
    color: var(--mat-orange);
}

/* Telif Hakkı */
.copyright-text {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}


/* =========================================
   11. İLETİŞİM BÖLÜMÜ
   ========================================= */
.contact-section {
    background-color: var(--bg-white);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-off-white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input, 
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background-color: #fff;
    appearance: none;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.1);
}

@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
        gap: 20px;
    }
}

/* =========================================
   10. RESPONSIVE (MOBİL UYUMLULUK)
   ========================================= */
@media (max-width: 768px) {
    /* Header */
    header {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav ul {
        gap: 15px;
        font-size: 0.9rem;
    }

    /* Fontlar */
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }

    /* --- PROJELER MOBİL DÜZENLEMESİ (Resimler Oturur) --- */
    .scroll-btn { display: none; } /* Mobilde okları gizle */
    .projects-wrapper { padding: 0; }
    
    .project-card {
        flex: 0 0 85%; /* Ekranın %85'ini kaplasın */
        flex-direction: column; /* Görsel üstte, yazı altta */
        height: auto; /* İçeriğe göre uzasın */
    }
    
    .project-image-container {
        width: 100%;
        height: auto; /* Sabit yüksekliği kaldırdık */
        aspect-ratio: 16 / 9; /* Standart ekran oranı (Youtube gibi) */
    }

    .project-img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Alanı doldur */
        object-position: top center; /* Resmin hep üst kısmını odakla */
    }
}
