/* ================================================
   CSS RESET AND BASE STYLES
   ================================================ */

/* Universal reset to remove default browser spacing and ensure consistent box model */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   Define color scheme and gradients for consistent theming
   ================================================ */
:root {
    /* Dark background colors for professional mining industry theme */
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;

    /* Accent colors - gold and silver for premium feel */
    --gold: #d4af37;
    --silver: #c0c0c0;
    --light-silver: #e8e8e8;

    /* Text colors for readability on dark backgrounds */
    --text-light: #f5f5f5;
    --text-gray: #b0b0b0;

    /* Gradient effects for visual interest */
    --accent-gradient: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --metal-gradient: linear-gradient(135deg, #434343 0%, #6f6f6f 50%, #434343 100%);
}

/* ================================================
   HTML & BODY BASE STYLES
   ================================================ */

/* Enable smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Body styling with dark theme and professional font stack */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6; /* Optimal readability (1.5-1.8 range) */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* ================================================
   LAYOUT UTILITIES
   ================================================ */

/* Container for content with max-width and responsive padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Mobile-first: minimal padding */
}

/* Remove default link styling and add smooth transitions */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ================================================
   NAVIGATION STYLES
   ================================================ */

/* Fixed navigation bar with glassmorphism effect */
.navbar {
    background: rgba(10, 10, 10, 0.95); /* Semi-transparent for modern look */
    backdrop-filter: blur(10px); /* Glassmorphism blur effect */
    position: fixed; /* Stay at top during scroll */
    width: 100%;
    top: 0;
    z-index: 1000; /* Ensure navbar stays above other content */
    padding: 15px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Subtle gold accent */
    transition: all 0.3s ease;
}

/* Add shadow when page is scrolled */
.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Flexbox layout for logo and navigation items */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

/* Mobile hamburger menu button (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
}

/* Hamburger menu bars */
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.85)),
                url('../images/Heroimage.png') center/cover no-repeat;
    overflow: hidden;
    margin-top: 90px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(192, 192, 192, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(212, 175, 55, 0.03) 2px,
        rgba(212, 175, 55, 0.03) 4px
    );
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-buttons {
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 450px;
        text-align: center;
        display: block;
        margin: 0 auto;
    }
}
.btn {
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.intro-section,
.features-section,
.cta-section,
.content-section,
.stats-section {
    padding: 80px 0;
}

.features-section {
    background: linear-gradient(rgba(26, 26, 26, 0.95), rgba(10, 10, 10, 0.95)),
                url('../images/Heroimage.png') center/cover fixed;
    position: relative;
}

.intro-section {
    background: var(--secondary-dark);
}

.stats-section {
    background: var(--primary-dark);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.accent-line {
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 0 auto;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--secondary-dark);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.cta-section {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(10, 10, 10, 0.95)),
                url('https://images.pexels.com/photos/1072179/pexels-photo-1072179.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover fixed;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(26, 26, 26, 0.9)),
                url('https://images.pexels.com/photos/1108572/pexels-photo-1108572.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover no-repeat;
    position: relative;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-text h2,
.content-text h3 {
    color: var(--text-light);
    margin: 30px 0 20px;
}

.content-text h2 {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-text h3 {
    font-size: 1.5rem;
    color: var(--gold);
}

.content-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin: 30px 0;
}

.feature-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--text-gray);
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--secondary-dark);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.mission-statement,
.vision-statement {
    text-align: center;
    margin-bottom: 60px;
}

.mission-pillars,
.vision-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pillar-card,
.goal-card {
    background: var(--secondary-dark);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.pillar-card:hover,
.goal-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.pillar-card h4,
.goal-card h4 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.pillar-card p,
.goal-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.goal-icon {
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
}

.vision-closing {
    margin-top: 60px;
    padding: 40px;
    background: var(--secondary-dark);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.product-card {
    background: var(--secondary-dark);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-header {
    background: var(--accent-gradient);
    padding: 20px;
    text-align: center;
}

.product-header h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.product-content {
    padding: 30px;
    flex: 1;
}

.product-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-content h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.product-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.product-details.expanded {
    max-height: 2000px;
    transition: max-height 0.6s ease-in;
}

.toggle-details {
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--accent-gradient);
    color: var(--primary-dark);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
}

.toggle-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.toggle-details:active {
    transform: translateY(0);
}

.product-features {
    list-style: none;
}

.product-features li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.product-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--secondary-dark);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.product-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.product-cta p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-section {
    padding: 80px 0;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info h2,
.map-container h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--gold);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--secondary-dark);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--gold);
    transform: translateX(5px);
}

.contact-icon {
    color: var(--gold);
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-gray);
    line-height: 1.8;
}

.contact-details a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--gold);
}

.social-links {
    margin-top: 50px;
}

.social-links h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-dark);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.social-icon.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.social-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.social-icon.linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
}

.social-icon.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-wrapper iframe {
    display: block;
    filter: grayscale(30%) contrast(1.2);
}

.footer {
    background: var(--secondary-dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact li {
    color: var(--text-gray);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: var(--text-gray);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img[loading="lazy"].loaded {
    opacity: 1;
}

/* ================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ================================================ */

/* Tablet and small desktop breakpoint (max-width: 968px) */
@media (max-width: 968px) {
    /* Show hamburger menu on smaller screens */
    .hamburger {
        display: flex;
    }

    /* Mobile navigation menu - slides in from left */
    .nav-menu {
        position: fixed;
        left: -100%; /* Hidden off-screen by default */
        top: 90px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    /* Active state - slide menu into view */
    .nav-menu.active {
        left: 0;
    }

    /* Reduce hero title size for tablets */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Adjust section header sizes */
    .section-header h2 {
        font-size: 2rem;
    }

    /* Stack contact grid vertically */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.2rem;
    }
}

/* Mobile breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* Further reduce hero title for mobile */
    .hero-title {
        font-size: 2rem;
    }

    /* Stack all grid layouts to single column on mobile */
    .features-grid,
    .stats-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Stack buttons vertically on mobile */
    .hero-buttons {
        flex-direction: column;
    }

    /* Full-width buttons on mobile with max-width constraint */
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

.logo img {
    height: 70px;
    width: 70px;
    object-fit: cover;

    border-radius: 50%;
    border: 2px solid #d4af37;

    box-shadow:
        0 0 10px rgba(212,175,55,0.6),
        0 0 20px rgba(212,175,55,0.4),
        0 0 35px rgba(212,175,55,0.2);

    transition: all 0.3s ease;
}

.logo img:hover{
    box-shadow:
        0 0 20px rgba(212,175,55,0.8),
        0 0 40px rgba(212,175,55,0.6),
        0 0 60px rgba(212,175,55,0.4);

    transform: scale(1.05);
}
