/* ==========================================================================
   FOUNDER PAGE SPECIFIC STYLES - HACI MEHMET ALI ERUSLU
   ========================================================================== */

/* Hero Section inherits from global styles but custom backdrop adjustments */
.kurumsal-hero {
    position: relative;
    height: 45vh;
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.kurumsal-hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.kurumsal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kurumsal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 37, 44, 0.3) 0%, rgba(17, 37, 44, 0.65) 100%);
    z-index: 1;
}

.kurumsal-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.kurumsal-hero-subtitle-pre {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    display: block;
    margin-bottom: 1rem;
}

.kurumsal-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.kurumsal-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   BIOGRAPHY SECTION (REUSED FROM HOME - CLEAN & INSTITUTIONAL)
   ========================================================================== */
.founder-section {
    padding: 4rem 0;
    /* Strict 4rem spacing */
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
    border-bottom: 1px solid rgba(191, 162, 118, 0.15);
}

.founder-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.founder-bg-pattern svg {
    width: 100%;
    height: 100%;
    display: block;
}

.founder-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.founder-main-row {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 6rem;
    align-items: center;
}

.founder-content {
    position: relative;
}

.founder-section.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

.founder-image-wrapper {
    display: block;
    position: relative;
    padding: 1.25rem;
    background-color: var(--color-bg-main);
    border: 1px solid rgba(191, 162, 118, 0.18);
    opacity: 0;
    transform: scale(0.96) translateY(40px);
    transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, border-color 0.8s, background-color 0.8s;
}

/* Offset double layered border frame */
.founder-image-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    bottom: 12px;
    right: 12px;
    border: 1px solid var(--color-accent);
    z-index: -1;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-image-wrapper:hover::before {
    transform: translate(6px, 6px);
}

.founder-image-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-image-wrapper:hover .founder-img {
    transform: scale(1.035);
}

/* Lifespan badge overlay */
.founder-meta-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background-color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(40, 86, 101, 0.15);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-image-wrapper:hover .founder-meta-badge {
    transform: translateY(-5px);
}

.founder-lifespan {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    font-weight: 600;
}

/* Right Side: Text & Typography Styling */
.founder-subtitle-pre {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-accent);
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-subtitle-pre::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-accent);
    margin-top: 0.75rem;
}

.founder-title-wrap {
    overflow: hidden;
    margin-bottom: 2rem;
}

.founder-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    transform: translateY(100%);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.founder-text-block {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.founder-p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
    color: var(--color-text-muted);
    text-align: justify;
    margin: 0;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-p:nth-of-type(1) {
    transition-delay: 0.2s;
}

.founder-p:nth-of-type(2) {
    transition-delay: 0.4s;
}

/* Editorial Blockquote */
.founder-quote {
    position: relative;
    margin-top: 3.5rem;
    padding-left: 3rem;
    border-left: 2px solid var(--color-accent);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s, transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}

.quote-icon {
    position: absolute;
    left: 0.75rem;
    top: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.6;
    color: var(--color-accent);
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.6;
    margin: 0;
}

/* Scroll Active Transitions */
.founder-section.revealed .founder-subtitle-pre {
    opacity: 1;
    transform: translateY(0);
}

.founder-section.revealed .founder-title {
    transform: translateY(0);
}

.founder-section.revealed .founder-p {
    opacity: 1;
    transform: translateY(0);
}

.founder-section.revealed .founder-image-wrapper {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.founder-section.revealed .founder-quote {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   LEGACY PHOTO GALLERY SECTION (3x2 CURATED ASYMMETRIC GRID)
   ========================================================================== */
.founder-gallery {
    padding: 4rem 0;
    /* Strict 4rem spacing */
    background-color: var(--color-bg-main);
    /* Alternates with white bio */
    position: relative;
    overflow: hidden;
}

.founder-gallery-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 4rem;
}

.gallery-header {
    margin-bottom: 3.5rem;
    max-width: 600px;
}

/* 12-Column Curated Grid Panel */
.founder-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
}

.founder-gallery-grid .gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(191, 162, 118, 0.15);
    background-color: #FFFFFF;
    box-shadow: 0 15px 45px rgba(17, 37, 44, 0.015);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

/* 4-Column Row Spans (All 4 images fit in 1 row) */
.founder-gallery-grid .gallery-item {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
}

.gallery-img-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Overlays */
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(40, 86, 101, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.gallery-zoom-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8) translateY(15px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-zoom-icon svg {
    width: 22px;
    height: 22px;
}

/* Hover States */
.founder-gallery-grid .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(17, 37, 44, 0.08);
    border-color: rgba(191, 162, 118, 0.35);
}

.founder-gallery-grid .gallery-item:hover .gallery-img-inner img {
    transform: scale(1.05);
}

.founder-gallery-grid .gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.founder-gallery-grid .gallery-item:hover .gallery-zoom-icon {
    transform: scale(1) translateY(0);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (COMMON)
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {

    .kurumsal-hero-container,
    .founder-container,
    .founder-gallery-container {
        padding: 0 2.5rem;
    }

    .founder-main-row {
        gap: 4rem;
    }
}

@media (max-width: 992px) {
    .kurumsal-hero {
        height: 35vh;
        min-height: 300px;
    }

    .founder-section,
    .founder-gallery {
        padding: 3rem 0;
    }

    .founder-main-row {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .founder-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        order: -1;
    }

    .founder-gallery-grid {
        gap: 1.5rem;
    }

    .founder-gallery-grid .gallery-item {
        grid-column: span 6;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 768px) {

    .kurumsal-hero-subtitle-pre {
        margin-top: 1.5rem;
    }

    .kurumsal-hero-container,
    .founder-container,
    .founder-gallery-container {
        padding: 0 1.5rem;
    }

    .founder-main-row {
        gap: 3rem;
    }

    .founder-gallery-grid .gallery-item {
        grid-column: span 12;
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================================================
   DYNAMIC GLASSMORPHIC LIGHTBOX GALLERY MODAL
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(17, 37, 44, 0.85);
    /* Deep brand backdrop */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Image Frame */
.lightbox-content {
    max-width: 85vw;
    max-height: 80vh;
    position: relative;
    padding: 1.25rem;
    background-color: #FFFFFF;
    border: 1px solid rgba(191, 162, 118, 0.3);
    box-shadow: 0 35px 95px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphic Navigation Triggers */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
    display: block;
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* Close Trigger (Top Right Corner) */
.lightbox-close {
    top: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.lightbox-close:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    transform: rotate(90deg) scale(1.05);
    border-color: var(--color-accent);
}

/* Prev / Next triggers on the sides */
.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.05) translateX(-4px);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.05) translateX(4px);
}

/* Lightbox Responsive Overrides */
@media (max-width: 992px) {

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90vw;
        max-height: 70vh;
        padding: 0.75rem;
    }

    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        bottom: 30px;
        top: auto;
        transform: none;
    }

    .lightbox-prev {
        left: 30%;
        transform: translateX(-50%);
    }

    .lightbox-next {
        right: 30%;
        transform: translateX(50%);
    }

    .lightbox-prev:hover {
        transform: scale(1.05) translateX(-2px);
    }

    .lightbox-next:hover {
        transform: scale(1.05) translateX(2px);
    }
}