/* ==========================================================================
   1. GLOBAL STYLES & ARCHITECTURE VARIABLES
   ========================================================================== */
:root {
    /* Google Kontrast Testi için Yeşil Renk Bir Tık Koyu Yapıldı (#27ae60) */
    --green: #27ae60;
    --blue: #2c3e50;
    --soft-gray: #f8f9fa;
    --text-dark: #333;
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s ease;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--soft-gray); 
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ==========================================================================
   2. STICKY NAVIGATION BAR STYLES
   ========================================================================== */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 8%; 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

html[dir="rtl"] nav {
    flex-direction: row-reverse;
}

.logo { 
    display: flex; 
    align-items: center; 
    font-weight: 700; 
    font-size: 1.4rem; 
    text-decoration: none;
}
.logo img { 
    height: 40px; 
    margin-right: 12px; 
}
html[dir="rtl"] .logo img {
    margin-right: 0;
    margin-left: 12px;
}
.green { color: var(--green); }
.blue { color: var(--blue); }

.nav-links { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    margin-bottom: 0;
    padding: 0;
}
.nav-links li { margin-left: 25px; }
html[dir="rtl"] .nav-links li {
    margin-left: 0;
    margin-right: 25px;
}

.nav-links a { 
    text-decoration: none; 
    color: var(--blue); 
    font-weight: 500; 
    display: inline-block; 
    transition: var(--transition-bounce); 
}

.nav-links a:hover:not(.nav-cta) {
    color: var(--green);
    transform: translateY(-5px) scale(1.1);
}

.nav-cta { 
    background: var(--blue) !important; 
    color: #fff !important; 
    padding: 10px 22px; 
    border-radius: 50px; 
}
.nav-cta:hover { 
    background: var(--green) !important; 
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3); 
}

/* ==========================================================================
   3. HERO BANNER COMPONENT
   ========================================================================== */
.hero { 
    height: 80vh; 
    background: linear-gradient(rgba(44, 62, 80, 0.75), rgba(44, 62, 80, 0.75)), 
                url('pics/background.png');
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white;
}
.hero h1 { font-size: 3.5rem; margin: 15px 0; }
.green-text { color: var(--green); }
.hero-btns { margin-top: 30px; }

.btn-main, .btn-secondary { 
    padding: 14px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    margin: 10px; 
    transition: var(--transition-bounce); 
    display: inline-block; 
}
.btn-main { background: var(--green); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue); }

.btn-main:hover, .btn-secondary:hover {
    transform: translateY(-8px) scale(1.05);
}

.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
    text-align: center; 
    color: var(--blue); 
    position: relative; 
    padding-bottom: 15px;
}
.section-title::after { 
    content: ''; 
    width: 60px; 
    height: 4px; 
    background: var(--green); 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
}

/* ==========================================================================
   4. ABOUT US CARD SECTION
   ========================================================================== */
.about-section { padding: 80px 0; text-align: center; }
.about-card { 
    background: white; 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    max-width: 800px; 
    margin: 0 auto; 
    transition: var(--transition-bounce);
}
.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ==========================================================================
   5. PARTNERS / CLIENTS
   ========================================================================== */
.brands-section { padding: 60px 0; background: #fff; overflow: hidden; }
.brands-wrapper { position: relative; width: 100%; margin-top: 30px; display: flex; }

.brands-track { 
    display: flex; 
    width: calc(250px * 14); 
    animation: scrollLTR 25s linear infinite; 
}

html[dir="rtl"] .brands-track {
    animation: scrollRTL 25s linear infinite;
}

.brand-logo { 
    width: 250px; 
    height: 100px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0 20px; 
}
.brand-logo img { 
    max-width: 170px; 
    max-height: 75px; 
    width: auto;
    height: auto;
    object-fit: contain; 
    filter: grayscale(1); 
    opacity: 0.5; 
    transition: var(--transition-smooth); 
}
.brands-track:hover { animation-play-state: paused; }
.brand-logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.1); }

@keyframes scrollLTR {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

@keyframes scrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(250px * 7)); }
}

/* ==========================================================================
   6. SERVICES CARDS COMPONENT
   ========================================================================== */
.services { padding: 80px 0; }
.service-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { 
    background: #fff; 
    padding: 40px 30px; 
    border-radius: 25px; 
    text-align: center; 
    transition: var(--transition-bounce); 
    border: 1px solid #eee; 
}
.service-card:hover { 
    transform: translateY(-15px) scale(1.03); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.1); 
    border-color: var(--green); 
}
.icon-box { 
    width: 70px; 
    height: 70px; 
    background: rgba(39, 174, 96, 0.1); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px; 
    color: var(--green); 
    font-size: 2rem; 
}

/* ==========================================================================
   7. GALLERY GRID
   ========================================================================== */
.portfolio-section { padding: 80px 0; background: #fff; text-align: center; }

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    margin-top: 40px; 
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-item { 
    position: relative; 
    border-radius: 20px; 
    overflow: hidden; 
    height: 350px; 
    transition: var(--transition-bounce); 
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.portfolio-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.carousel-inner { cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }

.portfolio-overlay { 
    position: absolute; 
    inset: 0; 
    background: rgba(44, 62, 80, 0.45); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: 0.4s; 
    color: #fff; 
    gap: 8px; 
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.work-title { font-weight: 600; font-size: 1.2rem; }
.click-hint { 
    font-size: 0.85rem; 
    color: #fff; 
    font-weight: 500; 
    background: rgba(39, 174, 96, 0.85); 
    padding: 4px 14px; 
    border-radius: 20px; 
}

.portfolio-item .carousel-control-prev,
.portfolio-item .carousel-control-next {
    width: 45px; 
    height: 45px; 
    background: rgba(255,255,255,0.3); 
    border-radius: 50%; 
    top: 50%; 
    transform: translateY(-50%);
    opacity: 0; 
    transition: all 0.3s ease; 
    z-index: 3; 
    margin: 0 10px;
}
.portfolio-item:hover .carousel-control-prev,
.portfolio-item:hover .carousel-control-next {
    opacity: 1;
}
.portfolio-item .carousel-control-prev:hover,
.portfolio-item .carousel-control-next:hover {
    background: var(--green);
}

/* ==========================================================================
   8. CONTACT CHANNELS & FOOTER
   ========================================================================== */
#contact { padding: 80px 0; text-align: center; }
.old-phone { 
    font-size: 2.5rem; 
    color: var(--green); 
    text-decoration: none; 
    font-weight: 700; 
    display: block; 
    margin-bottom: 25px;
    transition: var(--transition-bounce);
}
.old-phone:hover { transform: scale(1.05); }

.main-email-link {
    display: block; 
    font-size: 1.5rem; 
    color: var(--blue); 
    text-decoration: none; 
    font-weight: 600; 
    margin-bottom: 40px; 
    transition: var(--transition-bounce);
}
.main-email-link i {
    color: var(--green); 
    margin-right: 10px;
}
html[dir="rtl"] .main-email-link i {
    margin-right: 0;
    margin-left: 10px;
}
.main-email-link:hover {
    color: var(--green);
    transform: scale(1.03);
}

.old-social-icons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 0;}
.old-btn { 
    padding: 15px 30px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    transition: var(--transition-bounce); 
    color: #fff !important; 
}
.email-btn { background: #c0392b; }
.insta-grad { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tiktok-black { background: #000; }
.wa-green { background: #1ebd56; }

.old-btn:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.map-frame-wrapper { 
    max-width: 1000px; 
    margin: 60px auto 0; 
    border-radius: 30px; 
    overflow: hidden; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
}
.map-frame-wrapper iframe { width: 100%; height: 450px; border: 0; }

footer { 
    background: var(--blue); 
    color: rgba(255,255,255,0.7); 
    text-align: center; 
    padding: 50px; 
}

/* ==========================================================================
   9. BOOTSTRAP OVERLAY BUG RESOLUTION
   ========================================================================== */
.modal-backdrop {
    z-index: 1040 !important;
    background-color: #000 !important;
    opacity: 0.5 !important;
}

.modal {
    z-index: 1050 !important;
}

.modal-content {
    position: relative;
    z-index: 1060 !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
    background: #fff !important;
}

/* ==========================================================================
   10. MEDIA QUERIES & RESPONSIVE BEHAVIOR
   ========================================================================== */
@media (max-width: 1024px) {
    .container { padding: 0 15px; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .service-container { grid-template-columns: 1fr 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; max-width: 500px; }
    .brand-logo { width: 180px; }
    .portfolio-item .carousel-control-prev, 
    .portfolio-item .carousel-control-next { opacity: 1; }
}

@media (max-width: 480px) {
    .service-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.9rem; }
    .about-card { padding: 20px; }
    .hero-btns { display: flex; flex-direction: column; gap: 10px; }
    .old-social-icons { flex-direction: column; padding: 0 20px; }
    .old-phone { font-size: 1.8rem; }
    .main-email-link { font-size: 1.1rem; }
}

/* ==========================================================================
   11. MOBİL DİL BUTONU & YUKARI ÇIK (HOME) AKSİYONLARI
   ========================================================================== */
@media (max-width: 768px) {
    nav {
        padding: 10px 5%;
    }
    .nav-links { 
        display: flex !important; 
    }
    .nav-links li:not(:last-child) { 
        display: none !important; /* Dil butonu hariç diğer linkleri mobilde gizle */
    }
    .nav-links li {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #langBtn {
        padding: 6px 16px !important;
        font-size: 0.85rem;
    }
}

.scroll-to-home {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--blue);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition-bounce);
    font-size: 1.2rem;
}

.scroll-to-home:hover {
    background-color: var(--green);
    transform: translateY(-5px);
}

html[dir="rtl"] .scroll-to-home {
    right: auto;
    left: 25px;
}