/* Geri Dönüşüm Yolculuğu - Tasarım Uyumlu */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.anasayfa {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Arka plan - üstten alta açıktan koyuya yeşil */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        #7ED957 0%,
        #5CB85C 40%,
        #2E8B57 100%
    );
    z-index: 0;
}

/* English Dil Seçici - koyu yeşil, UK + TR bayrakları */
.english-btn {
    position: absolute;
    left: 3%;
    top: 3%;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #178312;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.english-text {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
}

.flag-uk, .flag-tr {
    font-size: 22px;
    line-height: 1;
}

.flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.flag-img.active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* Ana Hero Bölümü */
.hero-section {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 20px 100px;
}

/* Dünya + Halka wrapper */
.globe-wrapper {
    position: relative;
    width: min(55vw, 550px);
    max-width: 100%;
}

.globe-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* Yeşil halka dönüş animasyonu */
@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Geri dönüşüm halkası - dünya etrafında, arkada */
.recycling-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    pointer-events: none;
    z-index: 1;
    animation: ringRotate 20s linear infinite;
}

.ring-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* İkon pulse animasyonu */
@keyframes iconPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.12); }
}

/* Halka üzerindeki 4 geri dönüşüm ikonu - yeşil çizginin tam üzerinde */
.recycle-icon {
    position: absolute;
    width: 95px;
    height: 95px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Merkez noktasına göre konumlandırma - ikon merkezi daire üzerinde */
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2.5s ease-in-out infinite;
}

/* Farklı başlangıç zamanları - kademeli nabız efekti */
.icon-paper { animation-delay: 0s; }
.icon-plastic { animation-delay: 0.4s; }
.icon-glass { animation-delay: 0.8s; }
.icon-metal { animation-delay: 1.2s; }

.recycle-icon:hover {
    animation-play-state: paused;
    transform: translate(-50%, -50%) scale(1.18);
}

/* Renkli dairesel arka plan */
.recycle-icon .icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    z-index: -1;
}

.icon-paper .icon-bg { background: rgba(92, 108, 250, 0.95); }   /* Mavi - Kağıt */
.icon-plastic .icon-bg { background: rgba(251, 191, 11, 0.95); }  /* Sarı - Plastik */
.icon-glass .icon-bg { background: rgba(41, 174, 0, 0.95); }      /* Açık yeşil - Cam */
.icon-metal .icon-bg { background: rgba(90, 90, 90, 0.9); }      /* Koyu gri - Metal */

.recycle-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Daire formülü: merkez 50%, yarıçap ~58% - 45° açılarla */
.icon-paper { left: 7.6%; top: 7.6%; }   /* 135° - sol üst */
.icon-plastic { left: 92.4%; top: 7.6%; }  /* 45° - sağ üst */
.icon-glass { left: 7.6%; top: 92.4%; }    /* 225° - sol alt */
.icon-metal { left: 92.4%; top: 92.4%; }  /* 315° - sağ alt */

/* Başlıklar - dünya üzerinde ortalanmış */
.titles-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 8;
    width: 95%;
    max-width: 600px;
    min-height: 140px;
}

.title-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 20px));
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.title-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.main-title {
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 700;
    color: #004D10;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

.subtitle {
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.title-quote {
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 700;
    color: #004D10;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

/* Keşfet Butonu pulse animasyonu */
@keyframes kesfetPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(60, 255, 0, 0.4); }
    50% { transform: scale(1.04); box-shadow: 0 12px 35px rgba(60, 255, 0, 0.6); }
}

/* Keşfet Butonu - parlak yeşil arka plan, koyu yeşil yazı + koyu yeşil daire içinde beyaz ok */
a.kesfet-btn {
    text-decoration: none;
}

.kesfet-btn {
    position: absolute;
    right: 4%;
    bottom: 8%;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px 18px 32px;
    background: #3CFF00;
    border-radius: 65px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(60, 255, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: kesfetPulse 2s ease-in-out infinite;
}

.kesfet-btn:hover {
    animation-play-state: paused;
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(60, 255, 0, 0.5);
}

.kesfet-text {
    font-size: clamp(16px, 2.2vw, 28px);
    font-weight: 600;
    color: #004D10;
}

.kesfet-arrow-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    background: #0BA12A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arrow-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transform: rotate(0deg);
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .english-btn {
        left: 4%;
        top: 2%;
        padding: 8px 14px;
    }

    .english-text { font-size: 14px; }
    .flag-uk, .flag-tr { font-size: 18px; }

    .globe-wrapper {
        width: min(85vw, 400px);
    }

    .recycle-icon {
        width: 70px;
        height: 70px;
    }

    .icon-paper { left: 7.6%; top: 7.6%; }
    .icon-plastic { left: 92.4%; top: 7.6%; }
    .icon-glass { left: 7.6%; top: 92.4%; }
    .icon-metal { left: 92.4%; top: 92.4%; }

    .titles-overlay {
        bottom: 8%;
    }

    .kesfet-btn {
        right: 5%;
        bottom: 5%;
        left: 5%;
        justify-content: center;
        padding: 14px 20px 14px 24px;
    }

    .kesfet-arrow-circle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .arrow-icon {
        width: 22px;
        height: 22px;
    }
}
