/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: rgb(0, 0, 0);
    background: linear-gradient(to bottom, transparent, rgb(255, 255, 255)) rgb(214, 219, 220);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Smooth scrolling - moved to top */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0284c7; /* primary-600 */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0369a1; /* primary-700 */
}

/* Hero Logo Hover Animations */
.hero-logo-wrapper {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-logo-wrapper:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-logo-wrapper:hover .hero-logo-content {
    animation: logoFloat 2s ease-in-out infinite;
}

/* Logo'yu beyaz yap */
#hero-logo,
.hero-logo-white {
    filter: brightness(0) invert(1);
    /* brightness(0) siyah yapar, invert(1) beyaz yapar */
    -webkit-filter: brightness(0) invert(1);
}

.hero-logo-wrapper:hover #hero-logo,
.hero-logo-wrapper:hover .hero-logo-white {
    filter: brightness(0) invert(1) drop-shadow(0 10px 20px rgba(255, 255, 255, 0.3));
    -webkit-filter: brightness(0) invert(1) drop-shadow(0 10px 20px rgba(255, 255, 255, 0.3));
}

.hero-logo-wrapper:hover #hero-logo-fallback {
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Smooth transitions for logo */
.hero-logo-wrapper,
.hero-logo-wrapper * {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo container hover effect */
.hero-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Intersection Observer animations */
/* Service cards her zaman görünür olmalı */
#service-cards-container .service-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateY(0) !important;
}

.feature-card,
.testimonial-card,
.stat-card,
.team-card,
.pricing-card,
.process-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-card.visible,
.testimonial-card.visible,
.stat-card.visible,
.team-card.visible,
.pricing-card.visible,
.process-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header sticky effect - Ensure entire header section stays at top */
#header-container {
    position: -webkit-sticky !important; /* Safari için */
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background: transparent;
    margin: 0 !important;
    padding: 0 !important;
}

#main-header {
    position: relative;
    background: white;
    width: 100%;
}

/* Scroll'da shadow ekle */
#header-container.scrolled {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

#header-container.shadow-lg,
#main-header.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Form styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #0284c7;
    border-color: transparent;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Gallery hover effect */
.gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Text balance utility */
.text-balance {
    text-wrap: balance;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E8B94F 0%, #3A509B 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    animation: logoPulse 2s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.loading-spinner {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-wheel {
    width: 100%;
    height: 100%;
    position: relative;
    animation: wheelSpin 1s linear infinite;
}

/* Tekerlek dış halkası */
.loading-wheel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 10px solid rgba(255, 255, 255, 0.2);
    border-top: 10px solid white;
    border-right: 10px solid rgba(255, 255, 255, 0.7);
    border-bottom: 10px solid rgba(255, 255, 255, 0.4);
    border-left: 10px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Tekerlek iç halkası */
.loading-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-right: 6px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: wheelSpin 0.7s linear infinite reverse;
}

/* Tekerlek merkezi */
.loading-wheel-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), inset 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.loading-credit {
    position: absolute;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-align: center;
}

.loading-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.loading-credit a:hover {
    color: white;
    text-decoration: underline;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery Lightbox Styles */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}