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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Mobile Background */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Fallback background */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease-in-out infinite;
}

/* HTML5 Video Styling */
.bg-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
    opacity: 0.8;
    
    /* Mobile Safari specific fixes */
    -webkit-transform: translate(-50%, -50%);
    -webkit-object-fit: cover;
}

/* Mobile Safari Video Enhancement */
.bg-video video {
    opacity: 0.8;
}

/* Mobile blur support enhancements */
@supports (backdrop-filter: blur(20px)) {
    .nav-card, .hero-buttons a.btn, .btn-secondary {
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
}

/* Additional webkit support for Safari mobile */
@supports (-webkit-backdrop-filter: blur(20px)) {
    .nav-card, .hero-buttons a.btn, .btn-secondary {
        -webkit-backdrop-filter: blur(20px) !important;
    }
}

/* Force webkit backdrop-filter for all webkit browsers */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .nav-card {
        backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
        position: relative;
        z-index: 1;
    }
    
    .hero-buttons a.btn {
        backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
        position: relative;
        z-index: 1;
    }
    
    .btn-secondary {
        backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(110%) !important;
        position: relative;
        z-index: 1;
    }
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .nav-card {
        background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05)) !important;
    }
    
    .hero-buttons a.btn {
        background: rgba(0,0,0,0.65) !important;
    }
    
    .btn-secondary {
        background: rgba(255,255,255,0.08) !important;
    }
}

.bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
    z-index: 1;
    display: none; /* Video varsa iframe gizlenir */
}

.bg-video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: videoLoading 1s linear infinite;
    opacity: 0;
    pointer-events: none;
}

.bg-video.loading::after {
    opacity: 1;
}

@keyframes videoLoading {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
}

.shape {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
    border-radius: 50%;
    animation: floatMobile 20s infinite ease-in-out;
    filter: blur(1px);
}

.shape:nth-child(1) {
    width: 250px;
    height: 250px;
    top: 10%;
    left: -15%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 65%;
    right: -10%;
    animation-delay: -7s;
}

.shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 35%;
    right: -20%;
    animation-delay: -12s;
}

@keyframes floatMobile {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.4; }
    25% { transform: translate(30px, -25px) rotate(90deg) scale(1.1); opacity: 0.2; }
    50% { transform: translate(-20px, 40px) rotate(180deg) scale(0.9); opacity: 0.3; }
    75% { transform: translate(25px, -10px) rotate(270deg) scale(1.05); opacity: 0.15; }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0.4; }
}

/* Enhanced Gradient Animation for Mobile Fallback */
@keyframes gradientShift {
    0% { 
        background-position: 0% 50%;
        background-size: 400% 400%;
    }
    25% { 
        background-position: 100% 0%;
        background-size: 450% 450%;
    }
    50% { 
        background-position: 100% 100%;
        background-size: 400% 400%;
    }
    75% { 
        background-position: 0% 100%;
        background-size: 350% 350%;
    }
    100% { 
        background-position: 0% 50%;
        background-size: 400% 400%;
    }
}

/* Pulsing effect for mobile Safari fallback */
@keyframes mobilePulse {
    0% { 
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%, #0a0a0a 100%);
        filter: brightness(1);
    }
    50% { 
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%, #1a1a1a 100%);
        filter: brightness(1.2);
    }
    100% { 
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%, #0a0a0a 100%);
        filter: brightness(1);
    }
}

/* Mobile Safari Video Optimization - Force video display and positioning */
@media (max-width: 768px) {
    .bg-video video {
        opacity: 1 !important;
        display: block !important;
        pointer-events: none;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        width: auto !important;
        height: auto !important;
        -webkit-transform: translate(-50%, -50%) !important;
        transform: translate(-50%, -50%) !important;
        object-fit: cover !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
        z-index: 1 !important;
    }
    
    /* Enhanced mobile blur effects */
    .nav-card {
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .hero-buttons a.btn {
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        background: rgba(0,0,0,0.6);
    }
    
    .btn-secondary {
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        background: rgba(255,255,255,0.06);
    }
}

/* Additional mobile video fixes for positioning issues */
@media (max-width: 768px) {
    .bg-video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }
    
    .bg-video video {
        /* Force full screen coverage on mobile */
        width: 100vw !important;
        height: 100vh !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        object-position: center center !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .bg-video video {
        /* iOS Safari video positioning */
        -webkit-transform: translate(-50%, -50%) scale(1.1) !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
    }
    
    /* iOS Safari blur optimization - More aggressive approach */
    .nav-card, .hero-buttons a.btn, .btn-secondary {
        -webkit-backdrop-filter: blur(25px) saturate(200%) brightness(120%) !important;
        backdrop-filter: blur(25px) saturate(200%) brightness(120%) !important;
        will-change: backdrop-filter, transform;
        -webkit-transform: translateZ(0) scale(1);
        transform: translateZ(0) scale(1);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        isolation: isolate;
    }
}

/* Safari mobile specific media query */
@supports (-webkit-appearance: none) {
    @media screen and (max-width: 768px) {
        .nav-card {
            -webkit-backdrop-filter: blur(30px) saturate(250%) contrast(120%) !important;
            backdrop-filter: blur(30px) saturate(250%) contrast(120%) !important;
            background: rgba(255,255,255,0.08) !important;
            border: 2px solid rgba(255,255,255,0.15) !important;
            box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1) !important;
        }
        
        .hero-buttons a.btn {
            -webkit-backdrop-filter: blur(30px) saturate(250%) contrast(120%) !important;
            backdrop-filter: blur(30px) saturate(250%) contrast(120%) !important;
            background: rgba(0,0,0,0.7) !important;
            border: 1px solid rgba(255,255,255,0.1) !important;
        }
        
        .btn-secondary {
            -webkit-backdrop-filter: blur(30px) saturate(250%) contrast(120%) !important;
            backdrop-filter: blur(30px) saturate(250%) contrast(120%) !important;
            background: rgba(255,255,255,0.1) !important;
            border: 2px solid rgba(255,255,255,0.2) !important;
        }
    }
}

/* Mobile Main Content */
.main-container {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    z-index: 10;
    padding: 0 16px;
    margin: 0 auto;
}

.hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.logo-container {
    margin-bottom: 8px;
    opacity: 0;
    animation: slideUpTitle 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-logo {
    width: clamp(120px, 45vw, 180px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    margin-bottom: 16px; /* Logo ile subtitle arası boşluk azaltıldı */
}

.hero-title {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 0 16px 0; /* Başlık ile alt yazı arası boşluk artırıldı */
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(12px, 3vw, 14px);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 20px; /* Butonları biraz yukarı taşımak için azaltıldı */
    opacity: 0;
    animation: slideUpSubtitle 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
    color: #ccc;
    line-height: 1.4;
    text-align: center;
}

/* Mobile Navigation Cards */
.nav-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0;
    animation: slideUpCards 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
}

.nav-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;
    padding: 12px 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    transform: translateY(0);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    /* Safari mobile blur force */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: backdrop-filter;
}

.nav-card:active {
    transform: scale(0.96) translateY(2px);
    background: rgba(255, 255, 255, 0.23);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: #fff;
}

.card-description {
    font-size: 11px;
    color: #bbb;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

/* Enhanced Mobile Animations */
@keyframes slideUpTitle {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

/* Footer Styles */
.footer {
    background: transparent;
    backdrop-filter: none;
    border-top: none;
    padding: 8px 20px;
    margin-top: 0;
    opacity: 0;
    animation: slideUpFooter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
}

.footer-content {
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 10px;
    color: #888;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

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

/* Bottom safe area for iPhone */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .hero-logo {
        width: clamp(100px, 40vw, 160px);
    }
    
    .nav-card {
        padding: 12px 10px;
    }
    
    .main-container {
        padding: 40px 15px 20px;
    }

    .footer {
        padding: 6px 15px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .main-container {
        min-height: auto;
        padding: 40px 20px 20px;
    }
    
    .logo-container {
        margin-bottom: 8px;
    }
    
    .hero-logo {
        width: clamp(120px, 40vw, 160px);
    }
    
    .hero-subtitle {
        margin-bottom: 30px;
    }
    
    .nav-cards {
        gap: 15px;
    }
    
    .nav-card {
        padding: 20px 15px;
    }

    .footer {
        margin-top: 20px;
        padding: 8px 20px 10px;
    }
}

/* Dark mode adjustments for OLED screens */
@media (prefers-color-scheme: dark) {
    body {
        background: #000;
    }
    
    .bg-container {
        background: linear-gradient(135deg, #000 0%, #111 50%, #000 100%);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation-duration: 30s !important;
    }
    
    .nav-card {
        transition-duration: 0.2s !important;
    }
    
    .hero-logo, .hero-subtitle, .nav-cards {
        animation-duration: 0.8s !important;
    }
}

/* Fix: restore button/link aesthetic and remove browser default link styles */
/* Prevent browser default blue/purple underlines and preserve site palette */
a, a:visited, a:hover, a:active {
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* Global tap highlight and pointer improvements */
a, .nav-card, .btn {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Hero buttons */
.hero-buttons a.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 28px;
  text-decoration: none;
  color: #fff;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  transition: transform .18s ease, box-shadow .18s ease, opacity .12s;
}

.hero-buttons a.btn:active,
.hero-buttons a.btn.pressed {
  transform: translateY(2px) scale(0.995);
  opacity: 0.96;
}

.btn-primary {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Navigation grid and cards */
.nav-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 18px;
}

.nav-card {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform .18s ease, box-shadow .18s ease, opacity .12s;
  text-decoration: none;
}

.nav-card h3 {
  margin: 0 0 6px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.4px;
}

.nav-card p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}

.nav-card:active,
.nav-card.pressed {
  transform: translateY(3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.52);
}

/* Center two buttons between hero and footer for event */
.main-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px); /* leave some room for footer */
}

.nav-grid.centered-two {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center; /* center vertically within available space */
  flex: 1;
  padding: 0 20px 30px;
}

/* Ensure nav-card size is comfortable for event */
.nav-grid.centered-two .nav-card {
  width: 100%;
  max-width: 520px;
  padding: 20px;
  margin: 4px 0;
}

/* Prevent visited/purple links from appearing */
a:visited { color: inherit; }

/* Make sure footer links don't break layout */
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; }

/* Small-screen adjustments */
@media (max-width: 420px) {
  .hero-buttons a.btn { padding: 10px 12px; gap:8px; border-radius: 22px; }
  .nav-card { padding: 14px 16px; border-radius: 12px; }
}

/* Stronger visual reset for links used as buttons */
.nav-grid .nav-card,
.hero-buttons a.btn {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none !important;
  color: #ffffff !important;
}

/* Card content layout to match original design */
.nav-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-card h3 {
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.nav-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* Make nav-cards look like large rounded buttons (first screenshot) */
.nav-card {
  max-width: 92%;
  margin: 6px auto;
  padding: 22px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.032);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.048);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* Slightly larger text and center alignment like the original */
.nav-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.nav-card p { text-align: center; }

/* Ensure visited/active states don't turn purple/blue */
.nav-card:visited,
.hero-buttons a.btn:visited,
.nav-card:active,
.hero-buttons a.btn:active {
  color: #fff !important;
}

/* Make hero buttons visually consistent and elevated */
.hero-buttons a.btn {
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.36);
}

/* If any browser-level underline remains, hide it for these elements */
.nav-card, .nav-card * { text-decoration: none !important; }

@media (max-width: 420px) {
  .nav-card { padding: 18px 14px; border-radius: 12px; }
  .nav-card h3 { font-size: 1rem; }
}

/* PDF modal viewer styles */
.pdf-modal { display: none; position: fixed; inset: 0; z-index: 99999; }
.pdf-modal[aria-hidden="false"] { display: block; }
.pdf-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.pdf-modal-content { position: absolute; left:50%; top:50%; transform: translate(-50%,-50%); width: min(920px, 96vw); height: min(820px, 92vh); background: #0b0b0b; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); overflow: hidden; display:flex; flex-direction:column; }
.pdf-frame-wrap { flex: 1; background: #fff; }
.pdf-frame-wrap iframe { width: 100%; height: 100%; border: none; }
.pdf-close { position: absolute; right: 14px; top: 12px; z-index: 10; background: rgba(255,255,255,0.06); color:#fff; border: none; padding:8px 10px; border-radius:8px; cursor:pointer; }
.pdf-actions { padding: 10px; text-align: right; background: rgba(255,255,255,0.02); }
.pdf-actions a { color: #fff; text-decoration: underline; }

@media (max-width: 520px) {
  .pdf-modal-content { width: 96vw; height: 86vh; border-radius: 8px; }
  .pdf-close { right: 8px; top: 8px; padding:6px 8px; }
}

/* Ultra-specific Safari mobile blur fixes */
@media only screen 
  and (device-width: 375px) 
  and (device-height: 667px) 
  and (-webkit-device-pixel-ratio: 2),
only screen 
  and (device-width: 375px) 
  and (device-height: 812px) 
  and (-webkit-device-pixel-ratio: 3),
only screen 
  and (device-width: 414px) 
  and (device-height: 896px) 
  and (-webkit-device-pixel-ratio: 2),
only screen 
  and (device-width: 414px) 
  and (device-height: 896px) 
  and (-webkit-device-pixel-ratio: 3) {
    
    .nav-card {
        -webkit-backdrop-filter: blur(25px) saturate(200%) brightness(130%) contrast(110%) !important;
        backdrop-filter: blur(25px) saturate(200%) brightness(130%) contrast(110%) !important;
        background: rgba(255,255,255,0.12) !important;
        border: 2px solid rgba(255,255,255,0.25) !important;
        box-shadow: 0 8px 40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.2) !important;
        transform: translateZ(0) !important;
        will-change: backdrop-filter !important;
    }
    
    .hero-buttons a.btn {
        -webkit-backdrop-filter: blur(25px) saturate(200%) brightness(130%) contrast(110%) !important;
        backdrop-filter: blur(25px) saturate(200%) brightness(130%) contrast(110%) !important;
        background: rgba(0,0,0,0.8) !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        transform: translateZ(0) !important;
        will-change: backdrop-filter !important;
    }
    
    .btn-secondary {
        -webkit-backdrop-filter: blur(25px) saturate(200%) brightness(130%) contrast(110%) !important;
        backdrop-filter: blur(25px) saturate(200%) brightness(130%) contrast(110%) !important;
        background: rgba(255,255,255,0.15) !important;
        border: 2px solid rgba(255,255,255,0.3) !important;
        transform: translateZ(0) !important;
        will-change: backdrop-filter !important;
    }
}

/* Generic mobile Safari detection and fix */
@supports (-webkit-overflow-scrolling: touch) {
    @media (max-width: 768px) {
        .nav-card, .hero-buttons a.btn, .btn-secondary {
            -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(120%) !important;
            backdrop-filter: blur(20px) saturate(180%) brightness(120%) !important;
            transform: translate3d(0,0,0) !important;
            -webkit-transform: translate3d(0,0,0) !important;
            will-change: backdrop-filter, transform !important;
        }
    }
}

/* Desktop video alignment fix */
@media (min-width: 769px) {
    .bg-video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .bg-video video {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        /* Desktop'ta merkezde ve kaymayan görüntü */
        object-fit: cover !important;
        object-position: 50% 50% !important;
        /* Mobilde kullanılan translate/scale'i desktop'ta kapat */
        transform: none !important;
        -webkit-transform: none !important;

        /* Mobil için verilen min/max vw/vh zorlamalarını sıfırla */
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
    }
}

/* iOS/Safari özel ölçek sadece mobilde aktif olsun */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .bg-video video {
            -webkit-transform: translate(-50%, -50%) scale(1.1) !important;
        }
    }
    @media (min-width: 769px) {
        .bg-video video {
            -webkit-transform: none !important;
        }
    }
}