/* Custom Styles for Ad-Way Signs */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f7f8;
}
::-webkit-scrollbar-thumb {
    background: #9a9fa5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6e757d;
}

/* Hero animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #FF6B6B;
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Navigation active state */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FF6B6B;
    transition: width 0.3s ease;
    margin-top: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animation */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#bar1.active {
    transform: translateY(8px) rotate(45deg);
}

#bar2.active {
    opacity: 0;
}

#bar3.active {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: #36454F;
}

#navbar.scrolled .mobile-link {
    color: #36454F;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Mobile menu full-screen overlay */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

/* Portfolio grid hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .flex.items-center.gap-3.mb-6 {
        justify-content: center;
    }
    
    .hero-content .flex.flex-wrap {
        justify-content: center;
    }
    
    .hero-content .mt-16.flex {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
}
