@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;600&display=swap');

/* Mobile responsive container styles - Updated */
:root {
    --primary-color: #ff8c00;
    --primary-dark: #e07b00;
    --secondary-color: #222222;
    --text-color: #555555;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --header-bg: rgba(255, 255, 255, 0.85); /* Saydamlık eklendi */
    --section-padding: 100px 0; /* Geniş boşluk standardı */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background: var(--bg-white);
    line-height: 1.7; /* Okunabilirlik için satır arası */
    overflow-x: hidden;
    cursor: default; /* Metin üzerinde düzenleme imleci çıkmasını engeller, seçimi etkilemez */
}

/* Metin imlecinin (I-beam) görünmesini engellemek için genel metin elementlerine de cursor:default eklenir */
p, h1, h2, h3, h4, h5, h6, span, li, blockquote {
    cursor: default; /* İmleci standart ok yapar */
    user-select: none; /* Metin seçimini engeller, I-beam imlecinin çıkmasını önler */
}

/* Menü açıldığında sayfa kaydırmasını engelle */
body.menu-open {
    overflow: hidden; /* Sayfa kaydırılmasın */
}

input, textarea { user-select: text; }

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    padding: 0px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(255,255,255,0.05);
}

.container { width: 80%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

@media (max-width: 768px) {
    .container { width: 90%; max-width: 600px; padding: 0 8px; }
}

.navbar { display: flex; justify-content: space-between; align-items: center; }

.logo { padding: 0;  }

header.scrolled .logo { color: #000; }

/* Desktop Menu */
.nav-menu { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-link { color: #ffffff; font-weight: 600; font-size: 1.3rem; text-decoration: none; transition: 0.3s; padding: 10px 0; display: flex; align-items: center; gap: 6px; }
.nav-link:hover { color: var(--primary-color); }
@media (min-width: 1101px) {
    header.scrolled .nav-link { color: #000000; }
}
.nav-link i { font-size: 0.75rem; transition: transform 0.3s;}
.dropdown:hover .nav-link i { transform: rotate(180deg); }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 280px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 12px 25px; color: #333; font-weight: 500; font-size: 0.9rem; border-bottom: 1px solid #f0f0f0; transition: 0.2s; text-decoration: none; }
.dropdown-item:hover { background: #fff8f0; color: var(--primary-color); padding-left: 30px; }
.dropdown-menu.mega-menu { width: 600px; display: grid; grid-template-columns: 1fr 1fr; }

/* Header Right */
.btn-demo { background: var(--primary-color); color: #fff; padding: 10px 25px; border-radius: 5px; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: 0.3s; }
.btn-demo:hover { background: var(--primary-dark); transform: translateY(-2px); }
.lang-btn { cursor: pointer; color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 8px 15px; border-radius: 5px; font-size: 0.85rem; font-weight: 600; transition: 0.3s; }
.lang-btn:hover { background: rgba(255,255,255,0.1); }
header.scrolled .lang-btn { color: #000; border-color: rgba(0,0,0,0.2); }
header.scrolled .lang-btn:hover { background: rgba(0,0,0,0.05); }

/* --- MOBILE MENU --- */
.hamburger { 
    display: none; 
    color: #fff; 
    font-size: 1.8rem; 
    font-style: var(--bg-white);
    cursor: pointer; 
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    margin-left: 10px;
    order: 3;
    z-index: 1006; /* Menünün üstünde kalması için */
}
header.scrolled .hamburger { color: var(--secondary-color); }

/* language toggle button (header) */
.lang-toggle { 
    cursor: pointer; 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.12); 
    padding: 8px 12px; 
    border-radius: 6px; 
    font-weight: 700; 
    background: transparent; 
    transition: all 0.3s ease;
}
.lang-toggle[data-current-lang="en"] { background: rgba(255,255,255,0.04); }
header.scrolled .lang-toggle { color: #000; border-color: rgba(0,0,0,0.12); }
header.scrolled .lang-toggle[data-current-lang="en"] { background: rgba(0,0,0,0.04); }

/* Desktop lang toggle (visible by default, hidden on mobile) */
.desktop-lang-toggle { display: inline-block; order: 2; }
/* Mobile lang toggle (hidden by default, shown on mobile) */
.mobile-lang-toggle { display: none; order: 1; }

@media (max-width: 1100px) {
    .btn-demo, .header-right .lang-btn { display: none; }
    .hamburger { display: block; }
    .desktop-lang-toggle { display: none; }
    .mobile-lang-toggle { display: block; }
    
    .nav-menu {
        position: fixed; top: 0%; right: -100%; width: 75%; height: 100vh;
        background: #1a1a1a; flex-direction: column; align-items: flex-start;
        padding: 80px 25px; transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 1005; 
    }
    .nav-menu.active { right: 0; }
    .nav-menu li { width: 100%; }
    /* Mobil menüdeki linklerin scroll durumundan etkilenmemesi ve her zaman beyaz kalması için: */
    .nav-menu .nav-link { 
        color: #fff; font-size: 1.1rem; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; justify-content: space-between; 
    }

    /* Mobil Dropdown (Accordion) */
    .dropdown-menu, .dropdown-menu.mega-menu {
        position: static; width: 100%; transform: none; opacity: 1; visibility: visible;
        display: none; background: #2a2a2a; border: none; padding: 0; color: #ccc; 
        grid-template-columns: 1fr;
    }
    .dropdown.active .dropdown-menu { display: block; animation: fadeIn 0.3s; }
    .dropdown-item { color: #ccc; padding: 15px 30px; border-color: #333; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}

/* Ensure navbar has flex display for proper alignment */
.navbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: flex-start; text-align: left;
    color: #fff; position: relative; padding-top: 60px;
}

/* Hero Background Mode */
.hero.hero-background {
    background: #000;
}

.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-carousel .carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0 !important;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.hero-bg-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-bg-carousel .carousel-slide.carousel-active {
    opacity: 0.7;
}

.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif; text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.hero p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.95; font-weight: 400; }
.hero-btns { display: flex; gap: 20px; justify-content: flex-start; flex-wrap: wrap; }

/* Hero Carousel Styles (for normal carousel display) */
.hero-carousel { position: relative; z-index: 2; }
.carousel-container { position: relative; width: 100%; padding-bottom: 75%; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.3); }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease-in-out; }
.carousel-slide.carousel-active { opacity: 1; }

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-content { flex-direction: column !important; }
    .hero-carousel { flex: 1 !important; }
}


/* --- SECTIONS GENERAL --- */
section { padding: var(--section-padding); overflow: hidden; position: relative; }
.bg-light { background: var(--bg-light); }

.section-title { text-align: center; margin-bottom: 70px; }
.section-title h2 {
    font-size: 2.5rem; color: var(--secondary-color); font-weight: 700;
    font-family: 'Montserrat', sans-serif; display: inline-block; position: relative; padding-bottom: 20px;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px; background: var(--primary-color); border-radius: 2px;
}
.section-title p { color: #888; margin-top: 15px; font-size: 1.1rem; }

/* --- CARDS & HOVER FIX --- */
.service-card {
    background: #fff; padding: 40px 30px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-bottom: 4px solid transparent;
    height: 100%; display: flex; flex-direction: column;
    /* Kartın kendi geçiş efekti */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease;
    cursor: pointer;
}

/* ÖNEMLİ: visible olduktan sonra hover edilirse büyüyecek */
.anim-block.visible:hover .service-card, 
.service-card:hover {
    transform: translateY(-10px) scale(1.03) !important; /* !important ile animasyon transformunu eziyoruz */
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-bottom-color: var(--primary-color);
}

/* Link wrapper for service cards */
.service-card-link {
    text-decoration: none;
    display: block; /* Ensures the link takes up the full grid cell space */
}

.service-card i { margin-bottom: 25px; transition: 0.3s; }
.service-card:hover i { transform: scale(1.1); }

.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--secondary-color); font-weight: 700; }
.service-card p { font-size: 0.95rem; color: #666; margin-bottom: 15px; }
.service-card ul { list-style: none; padding: 0; margin-top: auto; } /* Listeyi alta it */
.service-card ul li { font-size: 0.9rem; color: #555; margin-bottom: 8px; position: relative; padding-left: 20px; text-align: left;}
.service-card ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--primary-color); font-size: 0.8rem; }
/* --- REFERANSLAR (MARQUEE) --- */
.reference-slider { background: #fff; padding: 30px 0; overflow: hidden; white-space: nowrap; }
.reference-slider-1 { border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 40px 0; }
.reference-slider-2 { border-bottom: 1px solid #eee; padding: 30px 0; }

.reference-track { display: inline-block; }
.reference-track-1 { animation: scroll 30s linear infinite; }
.reference-track-2 { animation: scroll 25s linear infinite; }

.reference-logo {   transition: 0.3s; }
.reference-logo-1 { height: 150px; margin: 0 30px; }
@media (max-width: 768px) { .reference-logo-1 { height: 100px; } }
.reference-logo-2 { height: 80px; margin: 0 20px; }
@media (max-width: 768px) { .reference-logo-2 { height: 60px; } }
.reference-logo:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- FORM --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

form { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
form label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; font-size: 0.9rem; }
form input, form textarea { width: 100%; padding: 12px 15px; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 20px; font-family: inherit; transition: 0.3s; background: #fcfcfc; }
form input:focus, form textarea:focus { border-color: var(--primary-color); outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1); }

/* --- CONTACT MAP & CARD --- */
.contact-map { margin-top: 22px; display: block; }
.contact-card {
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-left: 5px solid var(--primary-color);
    overflow: hidden;
}
.contact-card iframe { width: 100%; height: 360px; border: 0; display: block; }

@media (max-width: 900px) {
    .contact-card iframe { height: 280px; }
    .contact-card { padding: 12px; }
}


/* --- BUTTONS --- */
.btn { display: inline-block; padding: 14px 35px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: 0.3s; cursor: pointer; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: transparent; border-color: var(--primary-color); color: var(--primary-color); }
.btn-white { border-color: #fff; color: #fff; }
.btn-white:hover { background: #fff; color: var(--secondary-color); }

/* --- ANIMATED BG --- */
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.animated-gradient-bg {
    background: linear-gradient(-45deg, #0582bcd6, #1208a0, #07c4d5, #ffffff);
    background-size: 400% 400%; animation: gradientBG 15s ease infinite; color: white;
}

/* --- SCROLL ANIMATION CORE --- */
.anim-block { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.anim-block.visible { opacity: 1; transform: none; }

/* Animasyon Yönleri */
[data-anim-type="fade-left"] { transform: translateX(-50px); }
[data-anim-type="fade-right"] { transform: translateX(50px); }
[data-anim-type="fade-up"] { transform: translateY(50px); }
[data-anim-type="zoom-in"] { transform: scale(0.8); }

/* --- ABOUT PAGE LAYOUT --- */
.about-section { padding-top: 60px; padding-bottom: 80px; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.about-card {
    background: #fff;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
    border-left: 6px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.about-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--secondary-color); }
.about-card p { color: #555; line-height: 1.7; margin-bottom: 12px; }
.about-card .about-list { list-style: none; padding: 0; margin: 10px 0 0 0; }
.about-card .about-list li { position: relative; padding-left: 22px; margin-bottom: 8px; color: #444; }
.about-card .about-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--primary-color); }
.about-list-numeric { margin: 8px 0 0 18px; }
.small-note { color: #777; font-size: 0.95rem; }

.about-figure { background: linear-gradient(180deg, #fff, #fbfbfb); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-figure img { height: 260px; }
}

/* --- REFERENCES PAGE --- */
.references-page-section {
    background-color: var(--bg-white);
    padding-top: 60px;
    padding-bottom: 80px;
}

.logo-scroller {
    max-width: 100%;
    overflow: hidden;
    padding: 40px 0;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.logo-scroller .scroller__inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px; /* Logolar arası boşluk */
    animation: scroll 40s linear infinite;
}

.logo-scroller[data-direction="right"] .scroller__inner {
    animation-direction: reverse;
    animation-duration: 45s;
}

@media (prefers-reduced-motion: reduce) {
    .logo-scroller .scroller__inner {
        animation-play-state: paused;
    }
}

.logo-scroller img {
    height: 60px; /* Standart logo yüksekliği */
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-scroller img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    to { transform: translate(calc(-50% - 20px)); } /* (yarısı + yarım boşluk) kadar kaydır */
}

/* --- CAREER PAGE --- */
.career-section { padding-top: 60px; padding-bottom: 80px; background: var(--bg-light); }
.career-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}
.career-intro h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.career-intro p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.career-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.career-form h3 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }

.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.file-drop-area:hover, .file-drop-area.dragover {
    border-color: var(--primary-color);
    background-color: #fffaf2;
}
.file-drop-area .file-input { position: absolute; width: 100%; height: 100%; top: 0; left: 0; opacity: 0; cursor: pointer; }
.file-drop-area .file-icon { font-size: 2.5rem; color: #ccc; margin-bottom: 15px; transition: color 0.3s; }
.file-drop-area:hover .file-icon { color: var(--primary-color); }
.file-drop-area .file-msg { color: #888; }
.file-drop-area .file-browse { color: var(--primary-color); font-weight: 600; text-decoration: underline; }
.file-info {
    display: none; /* Başlangıçta gizli */
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 6px;
}
.remove-file-btn {
    cursor: pointer;
    color: #999;
    font-size: 1.1rem;
    margin-left: 15px;
    transition: color 0.2s ease;
}
.remove-file-btn:hover { color: #d9534f; }

@media (max-width: 992px) {
    .career-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* --- SOLUTION MODAL --- */
.solution-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-modal-overlay.visible {
    display: flex;
    opacity: 1;
}

.solution-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 60%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.solution-modal-overlay.visible .solution-modal {
    transform: scale(1);
}

.solution-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.solution-modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
}

.solution-modal-close-btn {
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    background: none;
    border: none;
}

.solution-modal-close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.solution-modal-content {
    padding: 30px;
    overflow-y: auto;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 768px) {
    .solution-modal {
        width: 95%;
        max-height: 85vh;
    }
    .solution-modal-header {
        padding: 15px 20px;
    }
    .solution-modal-header h3 {
        font-size: 1.2rem;
    }
    .solution-modal-content {
        padding: 20px;
    }
}
