/* ============================================
   Iron Workers Of Atlanta — Custom Styles
   ============================================ */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */
.nav-link {
    position: relative;
}

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

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-deco {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.hero-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    border-radius: 50%;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 44, 111, 0.5) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.hero-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    top: 30%;
    left: 10%;
    border-radius: 50%;
}

.hero-line-1 {
    width: 1px;
    height: 300px;
    background: linear-gradient(to bottom, transparent, rgba(245, 158, 11, 0.3), transparent);
    top: 15%;
    left: 20%;
}

.hero-line-2 {
    width: 200px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(245, 158, 11, 0.3), transparent);
    bottom: 25%;
    right: 15%;
}

.hero-beam {
    bottom: -50px;
    right: 5%;
    opacity: 0.06;
}

/* Hero Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    animation: slideInUp 0.8s ease forwards;
}

.hero-headline {
    animation: slideInUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-sub {
    animation: slideInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: slideInUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: slideInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-circle-1 {
    animation: float 8s ease-in-out infinite;
}

.hero-circle-2 {
    animation: floatSlow 10s ease-in-out infinite;
}

.hero-circle-3 {
    animation: float 6s ease-in-out infinite reverse;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive Enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Approach Cards
   ============================================ */
.approach-card {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Buttons & Interactive Elements
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #F59E0B;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4a2356;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #F59E0B;
    color: #25122d;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-deco {
        display: none;
    }
    
    .hero-beam {
        display: none;
    }
    
    /* Ensure hero text is readable on mobile */
    #hero h1 {
        font-size: 3rem;
    }
    
    @media (min-width: 640px) {
        #hero h1 {
            font-size: 4.5rem;
        }
    }
    
    @media (min-width: 768px) {
        #hero h1 {
            font-size: 5.5rem;
        }
    }
    
    @media (min-width: 1024px) {
        #hero h1 {
            font-size: 6rem;
        }
    }
    
    @media (min-width: 1280px) {
        #hero h1 {
            font-size: 7rem;
        }
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, .hero-scroll, #contactForm, #formSuccess {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
