/* 
 * Popular Sand & Metals - Main Stylesheet
 * Industrial, Modern, Premium Look
 */

:root {
    /* Color Palette */
    --primary-color: #0f172a;
    /* Dark Navy / Slate */
    --secondary-color: #334155;
    /* Slate Grey */
    /*#f59e0b8*/
    
    --accent-color:#cc302d ;
    /* Amber / Safety Orange - Construction feel */
    --accent-hover: #cc302d;
    --light-bg: #f8fafc;
    --dark-bg: #020617;
    --text-dark: #1e293b;
    --text-light: #94a3b8;

    /* Fonts */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* General Resets & Typography */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.text-primary-accent {
    color: var(--accent-color) !important;
}

.text-darker {
    color: var(--dark-bg);
}

.bg-darker {
    background-color: var(--dark-bg);
}

.btn-primary-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('crusher_hero.png') no-repeat center center fixed;
    background-size: cover;
    margin-top: 0 !important;
    /* Overriding bootstrap margin if any */
    padding-top: 120px !important;
    padding-bottom: 60px !important;
    border-bottom: 5px solid var(--accent-color);
}

.page-header h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
}

.btn-primary-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

/* Navigation */
#mainNav {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    padding-top: 15px;
    padding-bottom: 15px;
}

#mainNav .navbar-brand {
    font-weight: 700;
}

#mainNav .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--accent-color);
}

/* Hero Section */
.masthead {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: url('crusher_hero.png') no-repeat center center fixed;
    /* Will replace with generated image name */
    background-size: cover;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Fallback/Gradient if image fails or before it loads */
.masthead {
    background-color: #1e293b;
}

.masthead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    /* Dark blue overlay */
    z-index: 1;
}

.masthead .container {
    position: relative;
    z-index: 2;
}

.masthead h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 0.3rem;
}

/* Section Common */
.page-section {
    padding: 6rem 0;
}

.divider-sm {
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

/* Products */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-icon-wrapper {
    background-color: var(--primary-color);
}

/* Why Choose Us */
.feature-box {
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Contact */
.contact-info-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Footer */
.footer {
    border-top: 5px solid var(--accent-color);
}

.hover-white:hover {
    color: #fff !important;
}

.hover-accent:hover {
    color: var(--accent-color) !important;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.object-fit-cover {
    object-fit: cover;
}

.transition-img {
    transition: transform 0.5s ease;
}

.card:hover .transition-img {
    transform: scale(1.1);
}

.dev-credit a {
    text-decoration: none;
    color: inherit;
}

.dev-credit a:hover {
    text-decoration: none;
    color: inherit;
}


/* Responsive */
@media (max-width: 992px) {
    .masthead h1 {
        font-size: 2.5rem;
    }

    #mainNav {
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .masthead {
        height: auto;
        padding: 150px 0 100px;
    }

    .page-section {
        padding: 4rem 0;
    }
}

/* Gallery Styles */
.gallery-item {
    cursor: pointer;
    border: 5px solid #fff;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Primary color with opacity */
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .transition-img {
    transform: scale(1.1);
}