/* Custom CSS for Güven Doğalgaz */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9f4d, #f97316);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ea580c, #ff9f4d);
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #ff9f4d;
    outline-offset: 2px;
}

/* Enhanced button hover effects */
.btn-primary {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 159, 77, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 159, 77, 0.1), rgba(107, 114, 128, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-hover:hover::before {
    opacity: 1;
}

/* Mobile menu enhanced animation */
.mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
}

.mobile-menu:not(.hidden) {
    transform: translateY(0);
}

/* Loading animation for images */
img {
    transition: all 0.4s ease;
    filter: blur(0);
}

/* Logo - original size, no constraints */
.logo-img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: block;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Animated word typing effect */
#animated-word {
    display: inline-block;
    min-width: 200px;
    text-align: left;
}

.word-char {
    display: inline-block;
    animation: fadeInChar 0.1s ease-in-out;
}

@keyframes fadeInChar {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.word-erasing {
    animation: eraseChar 0.05s ease-in-out forwards;
}

@keyframes eraseChar {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

img[loading="lazy"] {
    opacity: 0;
    filter: blur(5px);
}

img[loading="lazy"].loaded {
    opacity: 1;
    filter: blur(0);
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(20px);
}

/* Grid background pattern */
.bg-grid-slate-100 {
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Enhanced gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ff9f4d, #6b7280, #000000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for status indicators */
@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Enhanced hover effects for service cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 159, 77, 0.05), rgba(107, 114, 128, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.service-card:hover::after {
    opacity: 1;
}

/* Navbar glass effect */
.navbar-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .animate-float,
    .animate-pulse,
    .animate-bounce {
        animation: none !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .bg-grid-slate-100 {
        background-image: 
            linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    }
}

/* Brands Slider Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}
