/* ── Base ── */
html {
    scroll-behavior: smooth;
}

/* ── Page background with animated blobs ── */
.page-bg {
    position: relative;
    background-color: #F5F0E6;
    min-height: 100vh;
}

.page-bg::before,
.page-bg::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.page-bg::before {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -150px;
    background: radial-gradient(circle, rgba(107, 127, 59, 0.4) 0%, transparent 70%);
    animation: blobFloat1 18s ease-in-out infinite;
}

.page-bg::after {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: -100px;
    background: radial-gradient(circle, rgba(61, 46, 31, 0.25) 0%, transparent 70%);
    animation: blobFloat2 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.05); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
}

.page-bg > main,
.page-bg > footer {
    position: relative;
    z-index: 1;
}

.page-bg > nav {
    z-index: 50;
}

/* ── Glass card ── */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(61, 46, 31, 0.08);
}

.glass-card-dark {
    background: rgba(61, 46, 31, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 168, 83, 0.15);
}

/* ── Shadows ── */
.shadow-soft {
    box-shadow: 0 4px 12px rgba(74, 56, 40, 0.05);
}

.shadow-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-hover:hover {
    box-shadow: 0 16px 48px rgba(61, 46, 31, 0.12);
    transform: translateY(-4px);
}

/* ── Nav ── */
.nav-bar {
    background: rgba(61, 46, 31, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.15);
    transition: all 0.3s ease;
}

.nav-bar.scrolled {
    background: rgba(61, 46, 31, 0.96);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
    transition: color 0.2s ease-in-out;
    color: rgba(255, 255, 255, 0.85);
}

.nav-link:hover {
    color: #D4A853;
}

.nav-link-active {
    color: #D4A853 !important;
    font-weight: 600;
}

.nav-link-active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4A853, #6B7F3B);
    border-radius: 2px;
}

.nav-dropdown-panel .nav-link-active {
    color: #3D2E1F !important;
    font-weight: 600;
    background: rgba(212, 168, 83, 0.12);
}

.nav-dropdown-panel .nav-link-active::after {
    display: none;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown.open,
.nav-dropdown:hover,
.nav-dropdown:focus-within {
    z-index: 100;
}

.nav-dropdown-panel {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    background: rgba(245, 240, 230, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 168, 83, 0.25);
    top: 100%;
    right: 0;
    left: auto;
    min-width: 15rem;
    width: max-content;
    margin-top: 0;
    pointer-events: none;
    z-index: 100;
}

.nav-dropdown-panel a {
    position: relative;
    z-index: 1;
    display: block;
}

.nav-dropdown.open .nav-dropdown-panel,
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu.open {
    max-height: 200px;
}

.mobile-menu-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.5rem);
    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease,
        transform 0.35s ease;
    background: rgba(61, 46, 31, 0.98);
}

.mobile-menu-panel.open {
    max-height: 28rem;
    opacity: 1;
    transform: translateY(0);
}

/* ── Section wave divider ── */
.section-wave {
    line-height: 0;
    overflow: hidden;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 48px;
}

/* ── Page hero (inner pages) ── */
.page-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s ease-out infinite alternate;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 46, 31, 0.88) 0%, rgba(107, 127, 59, 0.7) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1rem;
}

/* ── Cinematic hero (index) ── */
.hero-cinematic {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: calc(100dvh - 5rem);
    min-height: 480px;
}

.hero-cinematic-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    animation: kenBurns 20s ease-out infinite alternate;
}

.hero-cinematic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(61, 46, 31, 0.5) 0%,
        rgba(61, 46, 31, 0.75) 40%,
        rgba(107, 127, 59, 0.85) 100%
    );
}

/* Nav breakpoint: desktop menu from 768px */
.nav-bar .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 5rem;
    width: 100%;
}

.nav-bar .nav-brand {
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.nav-bar .nav-menu-btn {
    flex-shrink: 0;
    margin-left: auto;
}

.nav-bar .nav-desktop {
    display: none;
    margin-left: auto;
    flex-shrink: 1;
    align-items: center;
    gap: 0.75rem;
}

.nav-bar .nav-desktop .nav-link,
.nav-bar .nav-desktop button.nav-link {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .nav-bar .nav-menu-btn {
        display: none;
    }

    .nav-bar .nav-desktop {
        display: flex;
    }

    .mobile-menu-panel {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .nav-bar .nav-desktop {
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .nav-bar .nav-desktop {
        gap: 2rem;
    }
}

.hero-cinematic-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    padding-top: 2.5rem;
    z-index: 2;
}

@media (min-width: 768px) {
    .hero-cinematic-content {
        padding: 2rem;
        padding-top: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-cinematic-content {
        padding-top: 2rem;
    }
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* ── Stat badges ── */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 9999px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.stat-badge:nth-child(2) { animation-delay: 1s; }
.stat-badge:nth-child(3) { animation-delay: 2s; }

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

/* ── Image frame ── */
.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(61, 46, 31, 0.12);
}

.image-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.5), rgba(61, 46, 31, 0.2)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.image-frame img,
.image-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-frame:hover img,
.image-frame:hover video {
    transform: scale(1.05);
}

/* ── Bento card ── */
.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 247, 240, 0.85) 100%);
    border: 1px solid rgba(212, 168, 83, 0.25);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3D2E1F, #6B7F3B, #D4A853);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(107, 127, 59, 0.18);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

/* ── Reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Timeline ── */
.timeline-line {
    position: absolute;
    left: 1.125rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #6B7F3B, #3D2E1F);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.2s ease;
}

.timeline-line.is-visible {
    transform: scaleY(1);
}

@media (min-width: 768px) {
    .timeline-line {
        left: 1.375rem;
    }
}

/* ── Gallery ── */
.gallery-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-masonry-item {
    min-width: 0;
}

.gallery-tile {
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(61, 46, 31, 0.08);
    border: 1px solid rgba(61, 46, 31, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-tile:hover {
    box-shadow: 0 8px 28px rgba(61, 46, 31, 0.14);
    transform: translateY(-2px);
}

.gallery-tile-media {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E8E0D0;
    flex-shrink: 0;
}

.gallery-tile-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.gallery-tile-media:hover img {
    transform: scale(1.04);
}

.gallery-tile-caption {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: #3D2E1F;
    text-align: center;
    background: #fff;
    border-top: 1px solid rgba(61, 46, 31, 0.08);
}

.gallery-tile--video .gallery-tile-media {
    aspect-ratio: 16 / 9;
}

.gallery-tile--video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.gallery-tile--video .gallery-tile-caption {
    pointer-events: none;
}

/* Görünür olmayan reveal öğeleri tıklamayı engellemesin */
.reveal:not(.is-visible),
.reveal-left:not(.is-visible),
.reveal-right:not(.is-visible) {
    pointer-events: none;
}

/* ── Profile card ── */
.profile-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 247, 240, 0.8) 100%);
    border: 1px solid rgba(212, 168, 83, 0.2);
    transition: all 0.35s ease;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(61, 46, 31, 0.15);
}

.profile-avatar-ring {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #3D2E1F, #6B7F3B, #D4A853);
}

.profile-avatar-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #FAF7F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Quote block ── */
.quote-block {
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #D4A853, #6B7F3B) 1;
}

.quote-block::before {
    content: "\201C";
    position: absolute;
    top: -0.5rem;
    left: -0.25rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: rgba(107, 127, 59, 0.2);
    pointer-events: none;
}

/* ── Section backgrounds ── */
.section-alt-a {
    background: linear-gradient(180deg, rgba(237, 232, 220, 0.95) 0%, rgba(245, 240, 230, 0.6) 100%);
}

.section-alt-b {
    background: linear-gradient(180deg, rgba(232, 212, 168, 0.25) 0%, rgba(245, 240, 230, 0.85) 100%);
}

/* ── Footer ── */
.site-footer {
    background: linear-gradient(135deg, #3D2E1F 0%, #556B2F 50%, #6B7F3B 100%);
    position: relative;
    overflow: hidden;
    padding-block: 2rem;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.5), transparent);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #6B7F3B 0%, #556B2F 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(107, 127, 59, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 127, 59, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #D4A853;
    color: #D4A853;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: #3D2E1F;
    font-weight: 600;
    border: 2px solid #3D2E1F;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: #3D2E1F;
    color: #fff;
}

/* ── Accent divider ── */
.accent-divider {
    width: 4rem;
    height: 4px;
    background: linear-gradient(90deg, #6B7F3B, #D4A853);
    border-radius: 2px;
}

/* ── Zigzag showcase ── */
.showcase-section {
    position: relative;
    padding: 3rem 0;
}

.showcase-section:nth-child(even) {
    background: linear-gradient(180deg, rgba(232, 212, 168, 0.2) 0%, rgba(245, 240, 230, 0.7) 100%);
}

/* Faaliyetler: görselleri hafifçe büyüt (orantılı) */
@media (min-width: 1024px) {
    #faaliyetler .showcase-section .glass-card {
        flex: 0 1 44%;
    }

    #faaliyetler .showcase-section > .flex > .w-full {
        flex: 1 1 56%;
    }
}

#faaliyetler .image-frame.aspect-video,
#faaliyetler .showcase-section > .flex > .w-full:not(.grid) .image-frame {
    aspect-ratio: 3 / 2;
}

/* ── Filter chips ── */
.filter-chip {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(61, 46, 31, 0.1);
    color: #43474e;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
    background: #3D2E1F;
    color: #fff;
    border-color: #3D2E1F;
}

/* ── Contact icon circle ── */
.contact-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3D2E1F 0%, #6B7F3B 100%);
    color: #fff;
    flex-shrink: 0;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }

    .timeline-line {
        transform: scaleY(1);
    }

    html {
        scroll-behavior: auto;
    }
}
