/* ========================================
   KATI HUKUK - Page Specific Styles
   ======================================== */

/* Contact Page Styles */
.page-header {
    background: linear-gradient(135deg, 
        rgba(47, 47, 47, 0.55) 0%, 
        rgba(26, 26, 26, 0.58) 50%, 
        rgba(47, 47, 47, 0.55) 100%),
        url('../images/banner_hk.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-header-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid rgba(245, 245, 245, 0.3);
    backdrop-filter: blur(10px);
}

.page-header-icon i {
    font-size: 3rem;
        color: #fff !important;
}

.contact-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-gold);
}

.contact-card:hover .contact-icon i {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.contact-form {
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.office-info, .office-map {
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.detail-item {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.detail-item:hover {
    transform: translateX(5px);
}

.accordion-button {
    background-color: #f8f9fa;
    color: var(--anthracite);
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-gold);
    color: var(--anthracite);
    border-color: var(--primary-gold);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    border-color: var(--primary-gold);
}

.accordion-item {
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
}

.accordion-body {
    background-color: #ffffff;
    color: var(--anthracite);
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--primary-gold);
    font-weight: bold;
}

/* Home Page Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

/* Hero Slide Backgrounds */
.hero-slide-1 {
    background: linear-gradient(135deg, rgba(47,47,47,0.8) 0%, rgba(212,175,55,0.3) 100%), url('../images/slider1.jpg') center/cover;
}

.hero-slide-2 {
    background: linear-gradient(135deg, rgba(47,47,47,0.8) 0%, rgba(212,175,55,0.3) 100%), url('../images/slider2.jpg') center/cover;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.floating-element i {
    font-size: 2rem;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .floating-elements {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-element {
        animation: none;
    }
}

/* Team Page Styles */
.team-member-card, .team-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.team-member-card:hover, .team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member-card img, .team-card img {
    transition: transform 0.2s ease;
}

.team-member-card:hover img, .team-card:hover img {
    transform: scale(1.02);
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.specialty-tags {
    max-width: 100%;
    word-wrap: break-word;
}

/* Legal Service Pages */
.service-detail-section {
    padding: 80px 0;
}

.service-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-step {
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-lg);
    padding: 30px 20px;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold);
}

.step-icon, .process-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    transition: all 0.3s ease;
}

/* Process Cards Equal Height */
.process-card, .process-step {
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.process-card h5, .process-step h5 {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-card p, .process-step p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

/* Property Type Cards Equal Height */
.property-type {
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.property-type h6 {
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.property-type small {
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header {
        background-attachment: scroll;
        min-height: 40vh;
        overflow: visible;
    }
    
    .page-header-icon {
        width: 80px;
        height: 80px;
    }
    
    .page-header-icon i {
        font-size: 2rem;
    }
    
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .hero-slider {
        height: 70vh;
        min-height: 500px;
        max-height: 600px;
    }
    
    .hero-slide {
        height: 70vh;
        min-height: 500px;
        max-height: 600px;
    }
    
    .floating-element {
        display: none;
    }
    
    .hero-content [data-aos] {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    [data-aos] {
        animation-duration: 0.3s !important;
        animation-delay: 0s !important;
    }
    
    .feature-card, .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Fix container overflow issues */
    .team-image {
        height: 250px;
    }
    
    .specialty-tags {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .specialty-tags::-webkit-scrollbar {
        height: 3px;
    }
    
    .specialty-tags::-webkit-scrollbar-thumb {
        background: var(--primary-gold);
        border-radius: 2px;
    }
    
    /* Service detail cards */
    .service-detail-card {
        overflow: visible;
    }
    
    .service-list {
        overflow: visible;
        word-wrap: break-word;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 1030 !important;
}

.whatsapp-float .btn {
    width: 60px !important;
    height: 60px !important;
    background-color: #25D366 !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 24px !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
    animation: pulse 2s infinite !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.whatsapp-float .btn:hover,
.whatsapp-float .btn:focus {
    background-color: #128C7E !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
    text-decoration: none !important;
}

.whatsapp-float .btn:active {
    transform: scale(1.05) !important;
    transition: all 0.1s ease !important;
}

.whatsapp-float .btn i {
    font-size: 24px !important;
    line-height: 1 !important;
}

@keyframes pulse {
    0% { 
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }
    
    .hero-slide {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .process-step {
        padding: 20px 15px;
    }
    
    .step-icon, .process-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .process-card, .process-step {
        min-height: 160px;
    }
    
    .process-card h5, .process-step h5 {
        font-size: 1rem;
        min-height: 2rem;
    }
    
    .process-card p, .process-step p {
        font-size: 0.85rem;
    }
    
    .property-type {
        min-height: 120px;
    }
    
    .property-type h6 {
        font-size: 0.9rem;
        min-height: 1.2rem;
    }
    
    .property-type small {
        font-size: 0.8rem;
    }
    
    .team-member-card, .team-card {
        margin-bottom: 2rem;
    }
    
    .team-image {
        height: 200px;
    }
    
    .whatsapp-float {
        bottom: 20px !important;
        left: 20px !important;
    }
    
    .whatsapp-float .btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 22px !important;
    }
    
    .whatsapp-float .btn i {
        font-size: 22px !important;
    }
    
    .section-description {
        font-size: 0.9rem !important;
        padding: 0 1rem;
    }
    
    .cta-buttons {
        gap: 0.75rem !important;
    }
    
    /* Fix nested scroll containers */
    .service-detail-card {
        max-height: none;
        overflow: visible;
    }
    
    .team-bio {
        max-height: none;
        overflow: visible;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    /* Ensure proper touch scrolling on mobile */
    .team-card, .team-member-card, .service-detail-card {
        touch-action: manipulation;
        -webkit-touch-callout: none;
    }
    
    /* Prevent scroll conflicts on mobile */
    .container, .row, .col-lg-4, .col-md-6 {
        touch-action: manipulation;
    }
    
    /* Fix any remaining nested scroll containers */
    .team-content, .service-content, .card-body {
        overflow: visible;
        touch-action: manipulation;
    }
    
    /* Disable all animations on mobile for instant loading */
    *, *::before, *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    /* Ensure AOS elements are immediately visible */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Disable hover effects on mobile */
    .team-card:hover, .team-member-card:hover,
    .service-detail-card:hover, .card-custom:hover {
        transform: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Disable floating animations */
    .floating-element {
        animation: none !important;
        display: none !important;
    }
    
    /* Ensure immediate content visibility */
    .hero-content, .section-header, .team-card, 
    .service-detail-card, .card-custom {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    /* Disable loading animation on mobile */
    body:not(.loaded) {
        overflow: visible !important;
    }
    
    body:not(.loaded)::before {
        display: none !important;
    }
    
    /* Ensure immediate full visibility on mobile load */
    body {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Force all elements to be immediately visible */
    .row, .col-lg-4, .col-md-6, .col-lg-6, .col-lg-3, .col-lg-8,
    .container, .section, .team-members, .services-grid,
    .team-card, .service-detail-card, .hero-section,
    .page-header, .contact-cta, .features-section {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    /* Remove any delayed visibility */
    [data-aos-delay] {
        animation-delay: 0s !important;
        transition-delay: 0s !important;
    }
    
}