/* EX Steel Industrial Theme Styles */
:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --accent-gray: #4a4a4a;
    --light-gray: #e5e5e5;
    --warning-yellow: #ffc107;
    --success-green: #25d366;
    --font-family: 'Montserrat', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    color: var(--primary-dark);
    line-height: 1.6;
}

/* Navigation Styles */
.navbar-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--warning-yellow) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--warning-yellow);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* Main Content Spacing */
.main-content {
    padding-top: 95px; /* Account for fixed navbar */
}

/* Service Card Hover Effect */
.hover-lift {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), 
                url('https://pixabay.com/get/g0fb8b5359cdbbbad1368a05e2cf21737e5344983a1db297b79942b19d43e56a1213a5d07a34463fdaa300a4f17f5e58b7ebe0e2c709a7dd7092ee7882a24c408_1280.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-detail-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.service-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
}

/* Gallery Styles */
.gallery-filters .btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-filters .btn.active,
.gallery-filters .btn:hover {
    background-color: var(--warning-yellow);
    border-color: var(--warning-yellow);
    color: var(--primary-dark);
    transform: scale(1.05);
}

.gallery-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 250px;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-card:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(255, 193, 7, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    z-index: 10;
    font-weight: 500;
}

/* Video Carousel Styles */
.video-carousel {
    position: relative;
    width: 100%;
}

.video-slide {
    display: none;
}

.video-slide.active {
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    padding: 1.5rem;
    width: 100%;
}

/* Contact Form Styles */
.form-control:focus {
    border-color: var(--warning-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-select:focus {
    border-color: var(--warning-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Process Section */
.process-icon-wrapper {
    position: relative;
    display: inline-block;
}

.process-number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--warning-yellow);
    color: var(--primary-dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Button Styles */
.btn-warning {
    background-color: var(--warning-yellow);
    border-color: var(--warning-yellow);
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #1ea856;
    border-color: #1ea856;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--warning-yellow), #f39c12, var(--warning-yellow));
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7);
}

.text-light-75 {
    color: rgba(255, 255, 255, 0.85);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Map Container */
.map-container,
.map-container-large {
    position: relative;
    overflow: hidden;
}

.map-container iframe,
.map-container-large iframe {
    filter: grayscale(0.3) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe,
.map-container-large:hover iframe {
    filter: grayscale(0) contrast(1);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1030;
    display: none;
    padding: 8px 0;
}

.mobile-bottom-nav .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-link:hover,
.mobile-bottom-nav .nav-link.active {
    color: var(--warning-yellow);
}

.mobile-bottom-nav .nav-link.active i {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 991px) {
    /* Hide burger menu on mobile */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Show mobile bottom navigation */
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add bottom padding to body to prevent content from being hidden */
    body {
        padding-bottom: 80px;
    }
    
    /* Hide desktop navigation links on mobile */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Ensure sections have enough bottom padding on mobile */
    section:last-of-type {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 80px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .service-detail-card .service-image img {
        height: 200px;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .process-icon-wrapper {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dark);
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Utility Classes */
.bg-steel {
    background: linear-gradient(135deg, var(--accent-gray) 0%, var(--secondary-dark) 100%);
}

.text-steel {
    color: var(--accent-gray);
}

.border-warning {
    border-color: var(--warning-yellow) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    footer {
        display: none;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
