/* Custom Styles for Hafriyat Firması Website */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #FCC419;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F9CA24;
}

/* Hero Section Overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.65) 100%);
}

/* Service Card Hover Effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Machine Card Hover Effect */
.machine-card {
    transition: transform 0.3s ease;
}

.machine-card:hover {
    transform: scale(1.05);
}

/* Project Gallery Hover Effect */
.project-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(252, 196, 25, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-item:hover::before {
    opacity: 1;
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(26, 26, 26, 0.9);
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 2;
}

/* Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: 900;
    color: #FCC419;
}

/* CTA Bar Animation */
.cta-bar {
    background: linear-gradient(135deg, #FCC419 0%, #F9CA24 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(252, 196, 25, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(252, 196, 25, 0);
    }
}

/* Feature Icon Animation */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Navbar Background on Scroll */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

