html {
    width: 100%;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease, transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.preloader-logo {
    width: min(280px, 55vw);
    max-width: 320px;
    filter: brightness(0) invert(0.02);
    animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader-spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%);
}

@keyframes preloaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.85;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}
  /* CSS Reset ve Temel Ayarlar */
  :root {
    --bg-color: #FFFFFF;
    /* Arka plan: Beyaz */
    --card-bg: rgba(255, 255, 255, 0.85);
    /* Kart arka planı: Daha opak beyaz (okunabilirlik için) */
    --primary-color: #222222;
    /* Ana metin rengi: Koyu Gri/Siyah */
    --secondary-color: #555555;
    /* İkincil metin rengi: Gri */
    --accent-color: #007BFF;
    /* Vurgu rengi (Mavi tonu) */
    --border-color: rgba(0, 0, 0, 0.1);
    /* Kartlar için ince çerçeve rengi */
    --shadow-color: rgba(0, 0, 0, 0.08);
    /* Yumuşak gölge */
    --bg-image: url('img/Work.png');

}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), var(--bg-image);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    color: #FFFFFF;
    margin: 0;
    padding: 40px 20px 0 20px;
    /* Üstten ve alttan boşluk verdik */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    /* AOS animasyonları için önemli */
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    flex: 1 0 auto;
}

/* Hero (Karşılama) Alanı */
.hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}


.hero img {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 330px;
    height: auto;
    filter: brightness(0) invert(1) contrast(115%);
    animation: floatY 6s ease-in-out infinite;
}


.hero-subtitle {
    font-size: 1.35rem;
    /* 20px */
    font-weight: 300;
    color: #FFFFFF;
    margin-top: 6px;
}

/* Ana Layout (Danışmanlık ve Yazılım bölümünü dikeyde ayırır) */
.portal-layout {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* İki bölüm arasına daha belirgin bir boşluk */
}

/* Genel Kart Stili */
.portal-card {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 25px;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s ease, 
                background-color 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portal-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 123, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.15), 
                0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon img {
    width: 80px;
    /* İkon boyutu */
    height: 80px;
    /* İkon boyutu */
    /* Arka plan ve radius kaldırıldı */
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.portal-card:hover .card-content h3 {
    color: rgba(0, 123, 255, 0.8);
}

.card-content p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.card-content .card-link {
    margin-top: auto;
}

.card-link {
    font-weight: 500;
    color: var(--accent-color);
    transition: color 0.3s ease, background 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 10px 20px;
    border-radius: 6px;
    background: transparent;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border: none;
}

/* BirDanışman Danışmanlık kartındaki buton eskisi gibi (inline-block, width auto) */
.portal-layout>.portal-card:first-child .card-link {
    width: auto;
}

.portal-card:hover .card-link {
    color: #0056b3;
    background: rgba(0, 123, 255, 0.08);
}

/* Danışmanlık kartının (ilk kart) 'flex' stili */
.portal-layout>.portal-card:first-child {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* İlk kart hover'ını varsayılan hover'a geri döndür (özel stilleri kaldırdık) */


.portal-layout>.portal-card:first-child .card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.portal-layout>.portal-card:first-child .card-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
}

.portal-layout>.portal-card:first-child .card-content {
    flex-grow: 1;
}

.portal-layout>.portal-card:first-child .card-content h3 {
    text-align: center;
}

/* Yazılım Çözümleri Bölümü */
.section-title {
    font-size: 2.7rem;
    /* 40px */
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    height: 3px;
    width: 0;
    margin: 12px auto 0 auto;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.6), rgba(0, 123, 255, 1), rgba(0, 123, 255, 0.6));
    border-radius: 2px;
    animation: underlineGrow 1200ms ease-out 400ms forwards;
}

/* Esnek Yazılım Gridi */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 100%;
    align-items: stretch;
}

/* 1-5 kart arası: 1 satırda görünsün (kartlar küçülerek sığsın) */
.software-grid:has(.portal-card:nth-child(5):not(.portal-card:nth-child(6))) {
    grid-template-columns: repeat(5, 1fr);
}

/* 6 kart olduğunda: 3'e 3 konsun (2 satır, her satırda 3 kart) */
.software-grid:has(.portal-card:nth-child(6):not(.portal-card:nth-child(7))) {
    grid-template-columns: repeat(3, 1fr);
}

/* :has() desteklenmiyorsa fallback - JavaScript ile kontrol edilecek */

/* Scroll jank azaltma: kartları GPU'ya hazırla */
.software-grid .portal-card { will-change: transform, opacity; }

/* Yazılım kartlarında ikonu ve içeriği yan yana getir (3 kart veya daha az) */
.software-grid .portal-card {
    display: flex;
    align-items: stretch;
    /* Kartların yüksekliğini eşitle */
    gap: 20px;
    /* İkon ve içerik arasına boşluk */
    flex-direction: row;
}

/* 3'ten fazla kart olduğunda logo üstte */
.software-grid.many-cards .portal-card {
    flex-direction: column;
    align-items: stretch;
}

.software-grid.many-cards .portal-card .card-icon {
    margin-bottom: 20px;
    align-self: center;
}

.software-grid.many-cards .portal-card .card-content {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Yan yana düzende (3 veya daha az kart), ikonun alt boşluğunu sıfırla */
.software-grid .portal-card .card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    /* İkonun küçülmesini (ezilmesini) engelle */
    display: flex;
    align-items: center;
}

/* İçeriğin (başlık, p, link) kalan alanı kaplamasını sağla */
.software-grid .portal-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Başlık (h3) ve paragraf (p) arasını biraz açalım */
.software-grid .portal-card .card-content h3 {
    margin-bottom: 5px;
}

/* Paragraf ve link arasında boşluk, link alta yapışsın */
.software-grid .portal-card .card-content p {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Link butonu alta yapışsın */
.software-grid .portal-card .card-content .card-link {
    margin-top: auto;
}


/* ----- MODAL STİLLERİ ----- */

/* Modal Arka Planı */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0px);
    /* Yarı saydam siyah */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.4s ease,
        backdrop-filter 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 16px;
    -webkit-overflow-scrolling: touch;
}

/* Preopen: içerik başlangıç animasyon pozis dereninde kalsın */
.modal-overlay.preopen .modal-content {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
}

/* Modalın 'göster' sınıfı aldığındaki hali */
.modal-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(2px);
}

/* Modal İçerik Kutusu */
.modal-content {
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: min(95vw, 720px);
    max-width: 95vw;
    overflow: visible;
    position: relative;
    display: block;
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    will-change: transform, opacity;
    margin-bottom: 20px;
    margin-right: 20px;
    margin-left: 20px;
}

/* İç scroll bar kullanmıyoruz; overlay scroll taşıyor */

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Modal kapanırken animasyon */
.modal-overlay:not(.show) .modal-content {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
}

/* Modal Kapatma Düğmesi */
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.1) rotate(90deg);
}

.modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Modal İçindeki Resim */
.modal-image {
    width: auto;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    display: none;
    /* Varsayılan olarak gizli */
    object-fit: contain;
    max-height: 35vh;
    max-width: 75%;
}

/* Modal İçerikleri */
.modal-content h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-content p,
.modal-text p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 18px;
    text-align: justify;
    text-justify: inter-word;
}

.modal-text a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, font-size 0.2s ease;
}

.modal-text a:hover {
    color: #0056b3;
}

.modal-text a:active {
    text-decoration: none;
    color: #1a73e8;
    font-size: 1.05em;
}

/* Modal Linki (Metin Buton) */
.modal-button {
    display: inline-block;
    background-color: transparent;
    /* Arka planı kaldır */
    color: var(--accent-color);
    /* Vurgu rengini al */
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    /* Normalde altı çizili olmasın */
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-button:hover,
.modal-button:focus {
    color: #0056b3;
    text-decoration: none;
    transform: scale(1.05);
}

.modal-button:active {
    color: #1a73e8;
    transform: scale(1.08);
}


/* ----- RESPONSIVE (MOBİL VE TABLET) AYARLAR ----- */

/* Tablet */
@media (max-width: 1024px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .consulting-services-content {
        flex-direction: column;
    }
    
    .service-item {
        padding: 15px 0;
    }
    
    .service-item:first-child {
        padding-top: 0;
        padding-left: 0;
    }
    
    .service-item:last-child {
        padding-bottom: 0;
        padding-right: 0;
    }
    
    .service-divider {
        width: 100%;
        height: 1px;
        margin: 15px 0;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(0, 0, 0, 0.1) 20%, 
            rgba(0, 0, 0, 0.1) 80%, 
            transparent);
    }
}

/* Mobil */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
        /* Mobilde boşlukları azalt */
        background-attachment: scroll; /* Mobilde sabit arka plan jank yapmasın */
        background-position: center top;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-top: 4px;
    }

    /* Danışmanlık kartındaki flex'i mobilde boz (alt alta gelsinler) */
    .portal-layout>.portal-card:first-child {
        display: block;
    }

    .portal-layout>.portal-card:first-child .card-icon {
        margin-bottom: 20px;
    }

    /* YAZILIM KARTLARINI DA MOBİLDE ALT ALTA GETİR */
    .software-grid {
        grid-template-columns: 1fr !important;
    }
    
    .software-grid .portal-card {
        display: block;
    }
    
    /* Danışmanlık hizmetleri kartını mobilde alt alta getir */
    .consulting-services-content {
        flex-direction: column !important;
        display: flex !important;
    }
    
    .service-item {
        padding: 15px 0 !important;
        flex: none !important;
        width: 100% !important;
        display: block !important;
    }
    
    .service-item:first-child {
        padding-top: 0 !important;
        padding-left: 0 !important;
    }
    
    .service-item:last-child {
        padding-bottom: 0 !important;
        padding-right: 0 !important;
    }
    
    .service-divider {
        width: 100% !important;
        height: 1px !important;
        margin: 15px 0 !important;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(0, 0, 0, 0.1) 20%, 
            rgba(0, 0, 0, 0.1) 80%, 
            transparent) !important;
        display: block !important;
    }

    /* YAZILIM KART İKONUNUN ALT BOŞLUĞUNU GERİ VER */
    .software-grid .portal-card .card-icon {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 2.2rem;
        /* Mobilde başlığı biraz küçült */
    }
    
    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form-title,
    .contact-info-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .contact-form-card .form-group {
        margin-bottom: 18px;
    }
    
    .contact-form-card .form-control {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .contact-info-item {
        margin-bottom: 18px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .contact-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-text {
        text-align: center !important;
        width: 100%;
    }
    
    .contact-text strong {
        font-size: 1.1rem;
        margin-bottom: 8px;
        display: block;
        text-align: center;
    }
    
    .contact-text p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .contact-link {
        text-align: center;
        display: inline-block;
        margin: 0 auto;
    }
    
    .contact-map {
        margin-top: 20px;
    }
    
    .contact-iframe {
        height: 250px;
    }
    
    .contact-form-card .btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-member-image {
        width: 70px;
        height: 70px;
    }
    
    .team-member-card {
        padding: 12px;
    }
    
    .team-member-name {
        font-size: 0.95rem;
    }
    
    .team-member-title {
        font-size: 0.8rem;
    }
    
    .team-grid {
        gap: 12px;
    }
    
    .consulting-services-content {
        flex-direction: column;
    }
    
    .service-item {
        padding: 15px 0;
    }
    
    .service-item:first-child {
        padding-top: 0;
        padding-left: 0;
    }
    
    .service-item:last-child {
        padding-bottom: 0;
        padding-right: 0;
    }
    
    .service-item h4 {
        font-size: 1.2rem;
    }
    
    .service-item p {
        font-size: 0.95rem;
    }
    
    .service-divider {
        width: 100%;
        height: 1px;
        margin: 15px 0;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(0, 0, 0, 0.1) 20%, 
            rgba(0, 0, 0, 0.1) 80%, 
            transparent);
    }
    
    .consulting-card-footer {
        margin-top: 20px;
        padding-top: 0;
    }
    
    .consulting-card-footer .card-link {
        padding: 10px 24px;
        font-size: 1rem;
    }

    .modal-content h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .modal-content p,
    .modal-text p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .modal-overlay {
        padding: 20px 32px 60px 32px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .modal-content {
        padding: 40px 20px 20px 20px;
        width: auto;
        max-width: calc(100vw - 64px);
        margin: 0 auto;
    }

    .modal-image {
        max-height: 20vh;
        max-width: 70%;
        margin-bottom: 10px;
    }

    .modal-close {
        top: 10px;
        right: 12px;
        font-size: 2.5rem;
        padding: 5px;
        line-height: 1;
    }

    .modal-button {
        font-size: 1rem;
        padding: 8px 0;
        display: block;
        text-align: center;
    }

    .modal-text {
        margin-bottom: 25px;
    }
}

/* Ekstra küçük ekranlar için */
@media (max-width: 480px) {
    .modal-content {
        padding: 35px 16px 16px 16px;
        max-width: calc(100vw - 56px);
    }

    .modal-content h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .modal-content p,
    .modal-text p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .modal-image {
        max-height: 15vh;
        max-width: 65%;
        margin-bottom: 8px;
    }

    .hero img {
        max-width: 180px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .software-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobilde kartları hafiflet */
    .portal-card {
        backdrop-filter: blur(8px);
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
    
    .section-title::after {
        width: 0;
        animation: underlineGrow 1200ms ease-out 400ms forwards;
    }
}

/* ----- FOOTER ----- */
.site-footer {
    width: 100%;
    margin: 40px 0 0 0;
    padding: 20px;
    text-align: center;
    color: #FFFFFF;
    border-top: none;
    background-color: transparent;
    backdrop-filter: none;
}

.site-footer .footer-title {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #FFFFFF;
}

.site-footer .footer-links a {
    color: var(--bg-color);
    text-decoration: none;
    margin: 0 8px;
    display: inline-block;
    transition: color 0.3s ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
    text-decoration: none;
    color: #0056b3;
}

.site-footer .footer-links a:active {
    color: #1a73e8;
}

/* ----- BACK BUTTON ----- */
.back-button {
    display: inline-block;
    text-decoration: none;
    color: var(--accent-color);
    background: transparent;
    border: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 800;
}

.back-button:hover {
    transform: translateX(-2px);
    background: transparent;
}

/* (Sayfa geçiş overlay'i kaldırıldı) */

/* ----- SAYFA FADE OUT (YUMUŞAK ÇIKIŞ) ----- */
body.transition-out {
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  body.transition-out {
    transition: none;
  }
}

/* ----- ANİMASYONLAR (Anket Var uyumlu) ----- */
@keyframes floatY {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-12px); 
    }
}

@keyframes fadeInUpSoft {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes underlineGrow {
    from { 
        width: 0; 
        opacity: 0; 
    }
    to { 
        width: 180px; 
        opacity: 1; 
  }
}

/* Inline CSS moved from index.html */
.text-button { background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: #16a34a; text-decoration: none; }
.text-button.card-link { text-decoration: none; color: #16a34a; }
.consulting-branches.is-closed { display: none; }
.consulting-branches .card-content p { text-align: justify; }

/* Danışmanlık Hizmetleri - Tek Kart Yapısı */
.consulting-services-card {
    display: flex;
    justify-content: center;
    width: 100%;
}

.consulting-unified-card {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
}

.consulting-services-content {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: stretch;
}

.service-item {
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-item:first-child {
    padding-left: 0;
}

.service-item:last-child {
    padding-right: 0;
}

.service-item h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.service-item p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    flex-grow: 1;
}

.service-divider {
    width: 1px;
    background: linear-gradient(180deg, 
        transparent, 
        rgba(0, 0, 0, 0.1) 20%, 
        rgba(0, 0, 0, 0.1) 80%, 
        transparent);
    margin: 0 20px;
    flex-shrink: 0;
}

.consulting-card-footer {
    margin-top: 25px;
    padding-top: 0;
    text-align: center;
}

.consulting-card-footer .card-link {
    font-size: 1.1rem;
    padding: 12px 32px;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    width: auto;
    cursor: pointer;
}

/* Profile card inside about section */
.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
}
.profile-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.profile-card .profile-meta {
    display: flex;
    flex-direction: column;
}
.profile-card .profile-name { font-weight: 600; color: var(--primary-color); }
.profile-card .profile-title { color: var(--secondary-color); font-size: 0.95rem; }

/* Ekibimiz Bölümü */
.team-section {
    margin-bottom: 40px;
}

.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.founder-card {
    max-width: 300px;
    width: 100%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    width: 100%;
}

.team-member-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(0, 123, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.15), 
                0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-member-image {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 123, 255, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-member-card:hover .team-member-image {
    border-color: rgba(0, 123, 255, 0.5);
    transform: scale(1.05);
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member-info {
    width: 100%;
}

.team-member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
}

.team-member-card:hover .team-member-name {
    color: rgba(0, 123, 255, 0.8);
}

.team-member-title {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

/* İletişim ve Konum Bölümü - Modern Tasarım */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form-card,
.contact-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.contact-form-title,
.contact-info-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: var(--primary-color);
    text-align: center;
}

.contact-form-card .form-group {
    margin-bottom: 20px;
}

.contact-form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.contact-form-card .form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    backdrop-filter: blur(5px);
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-form-card .form-control::placeholder {
    color: var(--secondary-color);
}

.contact-form-card .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea.form-control { 
    resize: none; 
    min-height: 120px;
}

.contact-form-card .btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-color);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form-card .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.contact-form-card .btn-primary:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.contact-info-content {
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    color: var(--primary-color);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.contact-text p {
    margin: 0;
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--accent-color);
    border-bottom-color: rgba(0, 123, 255, 0.3);
}

.contact-map {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-iframe {
    border: 0;
    border-radius: 12px;
    width: 100%;
    height: 300px;
    display: block;
}

/* Form controls and buttons */
.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #EAEAEA;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary-color);
}
textarea.form-control { resize: none; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-primary { background: #16a34a; color: #fff; }
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.9); }


