/* Custom CSS for Onsat Teknik Website */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animate on scroll */
.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Hero section overlay */
#home {
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(17, 24, 39, 0.3) 100%);
    pointer-events: none;
}

/* Navbar shadow on scroll */
nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Service cards hover effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gallery image overlay */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 38, 38, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Button pulse animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-pulse:hover {
    animation: pulse 1s infinite;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card shadow variants */
.shadow-custom {
    box-shadow: 0 10px 30px -5px rgba(220, 38, 38, 0.3);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    nav, footer, #scrollToTop {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
a:focus, button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Animation delays for staggered effects */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

/* Image lazy loading placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Contact form styles (if needed in future) */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* WhatsApp button floating effect */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 100;
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
    margin: 0 auto;
}

/* Icon animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.icon-bounce:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Parallax effect helper */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* List style customization */
ul.custom-list {
    list-style: none;
    padding-left: 0;
}

ul.custom-list li {
    padding-left: 1.5em;
    position: relative;
}

ul.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
}

/* Card hover glow effect */
.card-glow:hover {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
    transition: box-shadow 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* Stats counter animation (for future use) */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out;
}

/* Footer link hover */
footer a:hover {
    color: #dc2626;
    transition: color 0.3s ease;
}

/* Image zoom on hover in gallery */
.zoom-on-hover {
    overflow: hidden;
}

.zoom-on-hover img {
    transition: transform 0.5s ease;
}

.zoom-on-hover:hover img {
    transform: scale(1.1);
}

/* Newsletter input (for future use) */
.newsletter-input {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: #dc2626;
}

/* Testimonial card (for future use) */
.testimonial {
    position: relative;
    padding: 2rem;
    background: white;
    border-left: 4px solid #dc2626;
}

/* Brand colors */
:root {
    --primary-red: #dc2626;
    --primary-dark: #1f2937;
    --primary-light: #f3f4f6;
    --accent-red: #ef4444;
}

/* Utility: Center absolutely */
.center-absolute {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Gradient background variants */
.bg-gradient-red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Text shadow for better readability on images */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Border animation */
@keyframes borderPulse {
    0%, 100% {
        border-color: #dc2626;
    }
    50% {
        border-color: #ef4444;
    }
}

.border-pulse {
    animation: borderPulse 2s ease-in-out infinite;
}
