/* About Page Styles */

/* Page Header */
.page-header {
    height: 50vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
    /* Hero, hisar-konut modelindeki gibi temel katmanda kalsın */
    z-index: 0;
}

.page-header::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 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(212,175,55);stop-opacity:0.15" /><stop offset="100%" style="stop-color:rgb(0,51,102);stop-opacity:0.15" /></linearGradient></defs><circle cx="100" cy="100" r="80" fill="url(%23grad)" /><circle cx="900" cy="400" r="120" fill="url(%23grad)" /></svg>');
    opacity: 0.5;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--secondary-color);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Vision & Mission Sections */
.vision-section,
.mission-section {
    transition: background 1s ease;
    position: relative;
}

/* Hisar-konut yapısına uygun: içerik bölümü bağımsız katmanda ve üstte */
.vision-section {
    padding: 6rem 0;
    background: #ffffff;
    z-index: 2;
    isolation: isolate; /* yeni stacking context */
}

.mission-section {
    padding: 6rem 0;
    background: #f8f8f8;
    z-index: 2;
    isolation: isolate;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(102, 102, 102, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.mission-section.bg-active::before {
    opacity: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Hisar-konut'taki gibi üstten hizalama (üst üste binmeyi engeller) */
    align-items: start;
}

/* Reverse layout for alternating sections */
.content-grid.reverse .content-text {
    order: 2;
}

.content-grid.reverse .image-placeholder {
    order: 1;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gray) 0%, var(--accent-lightgray) 100%);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-text {
    /* Ensure proper text flow */
    width: 100%;
    text-align: left;
}

.content-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent-gray);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

/* If an image is provided, make it cover within the rounded container */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

/* Values Section */
.values-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    position: relative;
    transition: all 1s ease;
    z-index: 1;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 102, 102, 0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

.values-section.bg-active::before {
    opacity: 1;
}

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

.value-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gray) 0%, var(--accent-darkgray) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card.animate-in::before {
    transform: scaleX(1);
}

.value-card:hover::before {
    background: linear-gradient(90deg, var(--accent-darkgray) 0%, var(--accent-gray) 100%);
}

.value-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-gray) 0%, var(--accent-lightgray) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    color: #666;
    line-height: 1.7;
}

/* History Section */
.history-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
    transition: all 1s ease;
    z-index: 1;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 102, 102, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(102, 102, 102, 0.03) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

.history-section.bg-active::before {
    opacity: 1;
}

.timeline {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-gray) 0%, var(--accent-darkgray) 100%);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-section.bg-active .timeline::before {
    transform: translateX(-50%) scaleY(1);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: calc(50% + 40px);
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-gray);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px var(--accent-gray);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.timeline-item.animate-in .timeline-dot {
    transform: scale(1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px var(--accent-gray);
    }
    50% {
        box-shadow: 0 0 0 4px #ffffff, 0 0 0 12px rgba(102, 102, 102, 0.4);
    }
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -50px;
}

.timeline-content {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gray);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.7;
}

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

    .content-grid.reverse .content-text,
    .content-grid.reverse .image-placeholder {
        order: unset; /* Reset order on mobile, stack normally */
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: -50px !important;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 40vh;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .content-text h2 {
        font-size: 2rem;
    }
    
    .content-text p {
        font-size: 1rem;
        text-align: left; /* Better readability on mobile */
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
