/* Hisar Konut Company Page Styles */

:root {
    --company-color: #000000;
    --company-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Company Hero */
.company-hero {
    height: 70vh;
    /* Use requested image as background; keep solid fallback */
    background: url('../../images/hisar-konut/back.webp') center/cover no-repeat, var(--company-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
    /* Keep hero visually behind the next section to avoid overlap */
    z-index: 0;
}

.company-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(0,0,0,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.18; /* daha yumuşak grid efekti */
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Görsel üzerine kontrast artırıcı katman */
    background:
        linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.40) 45%, rgba(0,0,0,0.28) 75%, rgba(0,0,0,0.18) 100%),
        radial-gradient(1200px 600px at 15% 20%, rgba(0,0,0,0.25), transparent 60%);
    backdrop-filter: saturate(85%) brightness(90%);
    /* Ensure overlay stays inside hero stacking */
    z-index: 1;
}

.company-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
}

.company-logo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    background: #ffffff; /* saf beyaz arka plan */
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: none; /* kenarlık kaldırıldı */
    box-shadow: none; /* gri gölge kaldırıldı */
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.company-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 6px 22px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35);
}

.company-tagline {
    font-size: 1.6rem;
    font-weight: 400;
    color: #f0f0f0;
    letter-spacing: -0.01em;
    line-height: 1.4;
    text-shadow: 0 4px 16px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
}

/* Company Info */
.company-info {
    padding: 6rem 0;
    background: #ffffff;
    /* Ensure content is above hero overlay */
    position: relative;
    z-index: 2;
    /* New stacking context to avoid bleed from previous section */
    isolation: isolate;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    /* Align to top to prevent vertical centering overlap under hero */
    align-items: start;
}

.info-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.info-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    background: var(--company-gradient);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.feature-item p {
    font-size: 1rem;
    color: #f0f0f0;
}

/* Company Services */
.company-services {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-item {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-top-color: var(--company-color);
}

.service-item i {
    font-size: 3rem;
    color: var(--company-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.service-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.service-item p {
    color: #666;
    line-height: 1.7;
    letter-spacing: -0.01em;
    font-size: 0.95rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: left;
}

/* Featured Projects */
.featured-projects {
    padding: 6rem 0;
    background: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-item {
    background: #f8f8f8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 250px;
    background: var(--company-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.project-item:hover .project-image {
    transform: scale(1.05);
}

.project-item h3 {
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* All Projects Marquee */
.all-projects-slider {
    padding: 5rem 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    overflow: hidden;
    position: relative;
}

/* Completed Projects - Image Marquee */
.completed-projects {
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.completed-projects .section-title {
    text-align: left;
}

.completed-marquee {
    overflow: hidden;
    position: relative;
    padding: 1rem 0 2rem;
}

.completed-marquee::before,
.completed-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.completed-marquee::before { left: 0; background: linear-gradient(to right, rgba(248,248,248,1), rgba(248,248,248,0)); }
.completed-marquee::after { right: 0; background: linear-gradient(to left, rgba(248,248,248,1), rgba(248,248,248,0)); }

.completed-track {
    display: flex;
    gap: 1.5rem;
    animation: completedMarquee 16s linear infinite;
    will-change: transform;
}

.completed-track:hover { animation-play-state: paused; }

@keyframes completedMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.completed-item {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
}

.completed-item .img-wrap {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #eaeaea;
}

.completed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.completed-item:hover img { transform: scale(1.06); }

.completed-caption {
    display: block;
    text-align: center;
    margin-top: 0.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #222;
}

@media (max-width: 768px) {
    .completed-item { width: 220px; }
    .completed-item .img-wrap { height: 140px; }
    .completed-marquee::before, .completed-marquee::after { width: 40px; }
}

/* Remove underline decoration under section titles in this block if any */
.completed-projects .section-title {
    position: relative;
}
.completed-projects .section-title::after {
    content: none !important;
}

.all-projects-slider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: linear-gradient(to right, #000000, transparent);
    z-index: 2;
    pointer-events: none;
}

.all-projects-slider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: linear-gradient(to left, #1a1a1a, transparent);
    z-index: 2;
    pointer-events: none;
}

.all-projects-slider .section-title {
    color: #ffffff;
    margin-bottom: 3rem;
}

.projects-marquee {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 5s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.marquee-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.marquee-item:hover::before {
    left: 100%;
}

.marquee-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.marquee-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Company CTA */
.company-cta {
    padding: 5rem 0;
    background: var(--company-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.company-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.company-cta .container {
    position: relative;
    z-index: 2;
}

.company-cta h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.company-cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: #000000;
}

/* Responsive Design */
@media (max-width: 968px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .company-hero {
        height: 60vh;
    }

    .company-hero .container {
        flex-direction: row; /* Logo solda, yazı sağda */
        text-align: left;
        gap: 1.5rem;
        align-items: center;
    }

    .company-logo {
        width: 100px;
        height: 100px;
        padding: 1rem;
        flex-shrink: 0; /* Logo küçülmesin */
    }

    .hero-text {
        text-align: left;
        flex: 1;
    }

    .company-hero h1 {
        font-size: 1.8rem;
    }

    .company-tagline {
        font-size: 1rem;
    }

    .info-text h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        min-height: auto;
    }

    .service-item p {
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .all-projects-slider::before,
    .all-projects-slider::after {
        width: 50px;
    }

    .marquee-item {
        padding: 1.5rem 2rem;
    }

    .marquee-item h4 {
        font-size: 1rem;
    }

    .company-cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

