/* Custom Styles & Animations */
html, body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Scroll Lock - Masaüstü kilitlenmesi için HTML'e de uygulandı */
html.no-scroll, body.no-scroll {
    overflow: hidden !important;
    touch-action: none !important;
    -ms-touch-action: none !important;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
    padding: 1rem; 
}
#preloader.hide {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.terminal-box {
    width: 100%;
    max-width: 600px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.05);
    box-sizing: border-box;
}
.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background-color: #ff5f56; }
.dot-y { background-color: #ffbd2e; }
.dot-g { background-color: #27c93f; }
.terminal-text {
    font-family: 'Fira Code', monospace;
    color: #00F2FE;
    font-size: clamp(11px, 3.5vw, 14px);
    line-height: 1.6;
    word-wrap: break-word;
}
.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #00F2FE;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Typography Gradients */
.text-gradient {
    background: linear-gradient(135deg, #00F2FE 0%, #4FACFE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slider Styles */
.slider-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s ease-out;
}
.slide.active .slide-bg {
    transform: scale(1);
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.4) 100%);
}
.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}
.slide-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}
.slide-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}
.slide-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s;
}
.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Unique Floating Header & Menu */
.floating-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50px;
    z-index: 100;
    transition: all 0.3s ease;
}
.floating-header.scrolled {
    top: 10px;
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Fullscreen Overlay Menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.menu-link {
    font-size: clamp(2rem, 8vw, 3rem);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    display: block;
    margin: 20px 0;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
}
.menu-overlay.active .menu-link {
    transform: translateY(0);
    opacity: 1;
}
.menu-overlay.active .menu-link:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.active .menu-link:nth-child(2) { transition-delay: 0.2s; }
.menu-overlay.active .menu-link:nth-child(3) { transition-delay: 0.3s; }
.menu-overlay.active .menu-link:nth-child(4) { transition-delay: 0.4s; }

.menu-link:hover {
    color: #fff;
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Service Cards */
.service-card {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #00F2FE, #4FACFE);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon-wrapper {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: #00F2FE;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon-wrapper {
    background: #00F2FE;
    color: #050505;
    transform: rotate(10deg) scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00F2FE; }

/* Button Glitch Hover Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}
.btn-primary:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Custom Select Animation */
.custom-select-options::-webkit-scrollbar { width: 4px; }
.custom-select-options::-webkit-scrollbar-track { background: transparent; }
.custom-select-options::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* Form Error Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.error-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ef4444 !important; 
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Custom Checkbox İşaret Stili */
.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #050505;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* FAB Menüsü */
.contact-menu-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 90;
}
@media (min-width: 768px) {
    .contact-menu-container {
        bottom: 24px;
        left: 24px;
    }
}
.contact-menu-active #contact-menu-items {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.contact-menu-active #contact-icon-open {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
}
.contact-menu-active #contact-icon-close {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}
.tooltip-trigger .tooltip-text {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.tooltip-trigger:hover .tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

/* Sağ Alt Yukarı Kaydır Butonu */
#scrollTopBtn {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    bottom: 20px;
    right: 20px;
}
@media (min-width: 768px) {
    #scrollTopBtn {
        bottom: 24px;
        right: 24px;
    }
}
.scroll-top-hidden {
    opacity: 0;
    transform: translateY(60px) scale(0.3) rotate(180deg);
    pointer-events: none;
}
.scroll-top-visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}
#scrollTopBtn:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
    transform: translateY(-5px) scale(1.05);
    background-color: #00F2FE;
    color: #050505;
    border-color: #00F2FE;
}

/* Toast Bildirimi CSS Animasyonları */
@keyframes toast-enter {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes toast-leave {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
}
.toast-show { animation: toast-enter 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards; }
.toast-hide { animation: toast-leave 0.4s ease-in forwards; }