/* =========================================================
   Kadraj Ambalaj
   Minimal: ortada logo, altta copyright
   ========================================================= */

/* ---------- Değişkenler ---------- */
:root {
    --color-accent: #e8f135;
    --color-bg: #ffffff;
    --color-text: #0a0a0a;
    --color-text-soft: #9a9a9a;

    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Arka plan efektleri (çok hafif) ---------- */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232, 241, 53, 0.10), transparent 65%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(232, 241, 53, 0.06), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    pointer-events: none;
}

.bg-shapes {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0);
    animation: shape-float var(--duration, 50s) var(--ease-in-out) infinite;
    animation-delay: var(--delay, 0s);
}

.shape.filled {
    background: radial-gradient(circle, rgba(232, 241, 53, 0.22) 0%, transparent 70%);
    border: none;
}

.shape.ring::after {
    content: '';
    position: absolute;
    inset: 22%;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.7;
}

@keyframes shape-float {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    15% {
        opacity: var(--opacity, 0.18);
    }
    50% {
        transform: translate3d(var(--x-mid, 40px), var(--y-mid, -30px), 0) rotate(180deg) scale(1.04);
        opacity: var(--opacity, 0.18);
    }
    85% {
        opacity: var(--opacity, 0.18);
    }
    100% {
        transform: translate3d(var(--x-end, 80px), var(--y-end, 60px), 0) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* ---------- Layout: logo ortada, ikonlar logo-copyright arasının tam ortasında, copyright altta ---------- */
.container {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem);
    display: grid;
    /*
     * 4 satır:
     *   1fr   → logonun üstündeki boşluk
     *   auto  → logo
     *   1fr   → logo ile copyright arasındaki boşluk (ikonlar burada ortalanır)
     *   auto  → copyright
     * Eşit 1fr'ler sayesinde ikonlar logo-altı ve copyright-üstü noktalarının tam ortasına düşer.
     */
    grid-template-rows: 1fr auto 1fr auto;
    justify-items: center;
    text-align: center;
}

/* Logo: dikey olarak ortada (2. satır) */
.logo-wrap {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/*
 * Logo boyutu: hem yatay (vw) hem dikey (vh) sınır içinde kalır.
 * - clamp ile min 260px, max 720px
 * - min() ile vw ve vh içinden küçük olanı seçerek landscape mobilde taşmayı önler
 */
.logo {
    width: min(clamp(260px, 72vw, 720px), 72vh);
    max-width: 100%;
    height: auto;
    transition: transform 0.6s var(--ease-out);
}

@media (hover: hover) {
    .logo:hover {
        transform: scale(1.03);
    }
}

/* İkon grubu (mail + harita): logo ile copyright'ın tam ortasında (3. satır, dikey merkez) */
.icons {
    grid-row: 3;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 1.5px solid rgba(10, 10, 10, 0.12);
    color: var(--color-text);
    transition:
        background-color 0.3s var(--ease-out),
        border-color 0.3s var(--ease-out),
        transform 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
}

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

@media (hover: hover) {
    .icon-link:hover {
        background-color: var(--color-accent);
        border-color: var(--color-accent);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(232, 241, 53, 0.35);
    }
}

.icon-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.icon-link:active {
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .icon-link {
        width: 46px;
        height: 46px;
    }

    .icon-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Copyright: altta sabit (4. satır) */
.copyright {
    grid-row: 4;
    font-size: 0.8rem;
    color: var(--color-text-soft);
    letter-spacing: 0.02em;
    padding-top: 1rem;
}

/* ---------- Reveal / fade-up animasyonu ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal 0.9s var(--ease-out) forwards;
}

[data-reveal="1"] { animation-delay: 0.15s; }
[data-reveal="2"] { animation-delay: 0.45s; }
[data-reveal="3"] { animation-delay: 0.75s; }

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1.25rem;
    }

    .copyright {
        font-size: 0.72rem;
    }
}

/* ---------- Hareket azaltma erişilebilirliği ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .shape {
        display: none;
    }
}

/* ---------- Seçim rengi ---------- */
::selection {
    background-color: var(--color-accent);
    color: var(--color-text);
}

/* ---------- Erişilebilirlik / SEO: Görsel olarak gizli, okuyucular için erişilebilir ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
