/* Custom Styles for Lone Star Steel */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a1628;
    color: #ffffff;
}

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #f5a623 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #f5a623 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #f5a623;
    top: 40%;
    right: 5%;
    transform: rotate(15deg);
}

.shape-square {
    width: 150px;
    height: 150px;
    border: 3px solid #f5a623;
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #f5a623 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 20%;
    right: 10%;
    opacity: 0.04;
}

/* Navbar */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.9);
    backdrop-blur: 20px;
    border-bottom: 1px solid rgba(245, 166, 35, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.menu-line {
    display: block;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 6rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobileMenu.menu-open {
    opacity: 1;
    pointer-events: all;
}

/* Floating Cards */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.5s; }
.card-3 { animation-delay: 3s; }
.card-4 { animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #e8951a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Why Cards */
.why-card {
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #e8951a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.why-card:hover::after {
    transform: scaleX(1);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    font-family: 'Playfair Display', serif;
    color: rgba(245, 166, 35, 0.06);
    line-height: 1;
    pointer-events: none;
}

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

.reveal.revealed {
    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; }

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Selection */
::selection {
    background: rgba(245, 166, 35, 0.3);
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #1e3a6b;
    border-radius: 4px;
}

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