/* ===== Custom Styles for ABC Iron Works ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #020c1b;
}
::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ===== Navbar ===== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(2, 12, 27, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #10b981;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #34d399 !important;
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== Hero Animations ===== */
.hero-subtitle {
    animation: fadeSlideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-image-wrapper {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

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

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

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== Selection ===== */
::selection {
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* ===== Form Focus ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3);
}

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}
