/* ============================================
   CUSTOM CSS - TÜM SAYFALAR İÇİN ORTAK STİLLER
   ============================================
   Bu dosya tüm HTML sayfalarındaki inline CSS kodlarını içerir.
   PHP geliştiricisi bu dosyayı tüm sayfalara dahil edebilir.
   ============================================ */

/* ============================================
   INDEX.HTML - SCROLL ANIMATION STYLES
   ============================================ */

/* Hero fade-in animation on page load */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.hero-fade-in {
    animation: heroFadeIn 1.2s ease-out forwards;
}

/* Banner Star Animations - Demo Site Exact Match */
@keyframes demoStarTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Apply demo site animation to banner stars */
.banner-star {
    animation: demoStarTwinkle 5s ease-in-out infinite;
    will-change: opacity, transform;
}

/* Individual star timing variations - demo site style */
.banner-star-1 { animation-delay: 0s; animation-duration: 5s; }
.banner-star-2 { animation-delay: 1s; animation-duration: 4.5s; }
.banner-star-3 { animation-delay: 2s; animation-duration: 5.5s; }
.banner-star-5 { animation-delay: 3s; animation-duration: 5.2s; }
.banner-star-6 { animation-delay: 0.7s; animation-duration: 4.8s; }
.banner-star-7 { animation-delay: 1.7s; animation-duration: 5.3s; }
.banner-star-8 { animation-delay: 2.7s; animation-duration: 5.1s; }

/* Big star flip-flop animation - instant ripple burst */
@keyframes bigStarFlipFlop {
    0%, 95%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    2% {
        opacity: 0.8;
        transform: scale(1.3);
    }
    4% {
        opacity: 0.9;
        transform: scale(1.8);
    }
    6% {
        opacity: 0.7;
        transform: scale(2.2);
    }
    8% {
        opacity: 0.4;
        transform: scale(2.5);
    }
    10% {
        opacity: 0.2;
        transform: scale(2.8);
    }
    15% {
        opacity: 0.1;
        transform: scale(3);
    }
}

.big-star-flipflop {
    animation: bigStarFlipFlop 2.5s ease-out infinite;
    will-change: opacity, transform;
}

/* Sun fade-in animation - only opacity, position controlled by JS */
@keyframes sunFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sun-fade-in {
    animation: sunFadeIn 1.5s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Fade-down animation for scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for child elements */
.fade-in-section .stagger-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible .stagger-item:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.is-visible .stagger-item:nth-child(2) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.is-visible .stagger-item:nth-child(3) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.is-visible .stagger-item:nth-child(4) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.is-visible .stagger-item:nth-child(5) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for text tags (Curiosity, Questions, Purpose, etc.) */
.text-tag-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible .text-tag-item:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.is-visible .text-tag-item:nth-child(2) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-section.is-visible .text-tag-item:nth-child(3) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* Custom glow pulse for corner blur elements - more visible */
@keyframes glowPulseVisible {
    0%, 100% {
        opacity: 0.25;
    }
    
    50% {
        opacity: 0.65;
    }
}

.glow-pulse-visible {
    animation: glowPulseVisible 3s ease-in-out infinite;
}

.glow-pulse-visible-delayed {
    animation: glowPulseVisible 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* ============================================
   ABOUT.HTML - GLOW PULSE ANIMATION
   ============================================ */

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        opacity: 0.15;
    }
    
    50% {
        opacity: 0.8;
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ============================================
   BLOGS.HTML - MOBILE MENU & FILTER STYLES
   ============================================ */

/* Mobile star animations */
.mobile-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.mobile-star-1 { left: 10%; top: 15%; animation-delay: 0s; }
.mobile-star-2 { left: 25%; top: 25%; animation-delay: 0.5s; }
.mobile-star-3 { left: 45%; top: 10%; animation-delay: 1s; }
.mobile-star-4 { left: 65%; top: 20%; animation-delay: 1.5s; }
.mobile-star-5 { left: 80%; top: 35%; animation-delay: 2s; }
.mobile-star-6 { left: 15%; top: 50%; animation-delay: 0.3s; }
.mobile-star-7 { left: 35%; top: 60%; animation-delay: 0.8s; }
.mobile-star-8 { left: 55%; top: 70%; animation-delay: 1.3s; }
.mobile-star-9 { left: 75%; top: 80%; animation-delay: 1.8s; }
.mobile-star-10 { left: 90%; top: 60%; animation-delay: 2.3s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Mobile menu link fix - ensure visibility */
.mobile-menu-link {
    position: relative;
    z-index: 50;
    display: block !important;
    visibility: visible !important;
}

/* Force links to show when menu is open */
#mobile-menu-overlay.opacity-100 .mobile-menu-link,
#mobile-menu-overlay:not(.hidden) .mobile-menu-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Filter button smooth transitions */
.filter-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #030213;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.filter-btn:not(.active):hover span {
    color: white !important;
}

/* Active button hover - subtle brightness increase */
.filter-btn.active:hover {
    filter: brightness(1.15);
}

.filter-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.filter-btn {
    transition: background-color 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

/* Scroll Performance Optimizations */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-overflow-scrolling: touch;
}

/* ============================================
   GLOBAL SCROLLBAR STYLES
   ============================================ */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 11, 58, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #FDBE02;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E5A902;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #FDBE02 rgba(15, 11, 58, 0.5);
}

/* Hardware Acceleration for Better Performance */
.blog-card,
.filter-btn,
header {
    transform: translateZ(0);
    will-change: transform;
}

/* ============================================
   BLOGDETAIL.HTML - MOBILE MENU STYLES
   ============================================ */

/* (Mobile star animations yukarıda tanımlı, tekrar gerek yok) */

/* ============================================
   EVENTS.HTML - EVENT TAB & CONTENT STYLES
   ============================================ */

/* Event content fade animation */
.event-content {
    animation: fadeIn 0.5s ease-in-out;
}

/* Event tab cursor */
.event-tab {
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   EVENTDETAIL.HTML - SCROLLBAR HIDE
   ============================================ */

/* Hide scrollbar for image gallery */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   INDEX.HTML - JUPITER SECTION RESPONSIVE DESIGN
   ============================================ */

/* Mobile responsive adjustments for Jupiter section */
@media (max-width: 767px) {
    /* Container - Mobilde ortalanmış ve küçültülmüş */
    .jupiter-container {
        width: 90vw !important;
        max-width: 400px !important;
        height: 90vw !important;
        max-height: 400px !important;
        left: 0 !important;
        top: 0 !important;
    }
    
    /* Jupiter planet - Mobilde küçültülmüş */
    .jupiter-planet {
        width: 80vw !important;
        max-width: 350px !important;
        height: 80vw !important;
        max-height: 350px !important;
    }
    
    /* Jupiter clouds - Mobilde küçültülmüş */
    .jupiter-cloud {
        width: 60vw !important;
        max-width: 180px !important;
        height: 15px !important;
    }
    
    .jupiter-cloud-top {
        top: calc(50% - 30px) !important;
    }
    
    .jupiter-cloud-bottom {
        top: calc(50% + 30px) !important;
    }
    
    /* Glow effects - Mobilde küçültülmüş */
    .jupiter-glow {
        width: 60px !important;
        height: 60px !important;
    }
    
    .jupiter-glow-bottom-left {
        width: 70px !important;
        height: 70px !important;
    }
    
    /* Large glow effect behind Jupiter - Mobilde küçültülmüş */
    .jupiter-glow-background {
        width: 100vw !important;
        max-width: 500px !important;
        height: 100vw !important;
        max-height: 500px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .jupiter-container {
        left: 50px !important;
        top: 50px !important;
    }
}

/* ============================================
   WHOWEARE.HTML - HEADER SCROLL STYLES
   ============================================ */

/* (Mobile star animations yukarıda tanımlı) */

/* ============================================
   LANGUAGE TOGGLE STYLES
   ============================================ */

/* Desktop Language Toggle */
.language-toggle {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    color: white;
    font-size: 12.3px;
    font-weight: 400;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 17.5px;
    cursor: pointer;
    outline: none;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 36px;
    text-align: center;
}

/* Language toggle with nav-link - ensure consistent styling */
.language-toggle.nav-link {
    font-size: 12.3px;
    font-weight: 400;
    line-height: 17.5px;
    color: rgba(255, 255, 255, 0.80);
}

.language-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.language-toggle.nav-link:hover {
    color: #5B42F3;
}

.language-toggle:active {
    transform: scale(0.95);
}

/* Light mode language toggle (for light background pages) */
.language-toggle-light {
    background: transparent;
    border: none;
    color: #332C8A !important;
    font-size: 12.3px;
    font-weight: 400;
    line-height: 17.5px;
}

.language-toggle-light:hover {
    background-color: rgba(51, 44, 138, 0.05);
    color: #5B42F3 !important;
}

.language-toggle-light.nav-link {
    color: #332C8A !important;
}

.language-toggle-light.nav-link:hover {
    color: #5B42F3 !important;
}

/* Light mode nav-link override (for light background pages) */
nav.bg-white .nav-link {
    color: #332C8A !important;
}

nav.bg-white .nav-link:hover {
    color: #5B42F3 !important;
}

nav.bg-white .nav-link.active {
    color: #5B42F3 !important;
}

/* Alternative selector for light mode navbar */
header nav.bg-white .nav-link {
    color: #332C8A !important;
}

header nav.bg-white .nav-link:hover {
    color: #5B42F3 !important;
}

header nav.bg-white .nav-link.active {
    color: #5B42F3 !important;
}

/* Mobile Language Toggle */
.mobile-language-toggle {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 44px;
    text-align: center;
}

.mobile-language-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-language-toggle:active {
    transform: scale(0.95);
}

