/* Global Section Styles */
section {
    padding: 2rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.text-center {
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    background: linear-gradient(rgba(10, 18, 32, 0.85), rgba(10, 18, 32, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 60px;
    min-height: calc(50vh + 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: #fff;
    border-bottom: none;
    box-shadow: none;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%), linear-gradient(45deg, rgba(26, 95, 122, 0.13) 0%, rgba(240, 179, 35, 0.13) 100%);
    animation: particleFloat 20s infinite linear;
    pointer-events: none;
    filter: blur(2px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 400px;
    margin: 0 2rem 0 0;
    padding: 18px 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(20, 24, 32, 0.22);
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(26, 95, 122, 0.10);
    animation: contentFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.32);
    background: linear-gradient(45deg, #fff, #f0f0f0, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 8s linear infinite;
    transform: translateZ(30px);
}

.hero-content p {
    font-size: 18px;
    opacity: 0.98;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.22);
    animation: fadeInUp 1.2s 0.2s forwards;
    transform: translateZ(20px);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.hero-buttons .btn {
    padding: 10px 25px;
    margin-right: 10px;
}

.hero-image {
    position: relative;
    z-index: 2;
    margin-left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    max-width: 180px;
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 95, 122, 0.13);
    background: rgba(0,0,0,0.12);
}

.hero-image .image-container {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    filter: brightness(0.98) contrast(1.08) saturate(1.1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(26,95,122,0.12) 0%, rgba(240,179,35,0.10) 100%);
    pointer-events: none;
    opacity: 0.7;
    border-radius: inherit;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

/* Ensure navbar doesn't cover hero */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ensure language selector doesn't cover hero */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats {
    background: #f8f9fa;
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 0.7rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 1.1rem;
    color: #007bff;
    margin-bottom: 0.3rem;
}

.stat-card h3 {
    font-size: 30px;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 40px;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--gold);
}

.stat-card span {
    font-size: 16px;
    color: #666;
}

/* About Preview Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-content {
    padding-right: 0.5rem;
}

.about-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 15px;
}

.about-features i {
    font-size: 0.9rem;
    color: #28a745;
}

.about-image {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Operations Preview Section */
.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 1rem;
}

.operation-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.operation-card:hover {
    transform: translateY(-5px);
}

.operation-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.operation-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.operation-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.operation-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Sustainability Preview Section */
.sustainability-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.feature-img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Extraction Process Section */
.extraction-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.timeline-step {
    position: relative;
}

.step-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.step-image {
    position: relative;
    width: 40%;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: auto;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
}

.step-content {
    padding: 25px;
    width: 60%;
    position: relative;
}

.step-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #007bff;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
}

/* Mineral Portfolio Section */
.mineral-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mineral-portfolio-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.mineral-portfolio-card:hover {
    transform: translateY(-5px);
}

.mineral-portfolio-video,
.innovation-video {
    position: relative;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    background: #000;
}

.mineral-fact {
    display: block;
    margin-top: 1rem;
    color: #007bff;
    font-weight: bold;
}

/* Innovation Section */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.innovation-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.innovation-card:hover {
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}

.mineral-portfolio-video,
.innovation-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-container:hover .mineral-portfolio-video,
.video-container:hover .innovation-video {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.video-play-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid #fff;
}

.video-play-icon i {
    color: #fff;
    font-size: 28px;
    margin-left: 4px;
}

.video-container:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.video-container:hover .video-play-icon {
    transform: scale(1.1);
    background: rgba(0, 123, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Video duration indicator */
.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

/* Video loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video error state */
.video-error {
    background: #f8f9fa;
}

.video-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dc3545;
    text-align: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 2rem;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    background: #000;
    animation: zoomIn 0.3s ease;
}

.video-modal-content video {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 12px;
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Featured Gallery Section */
.featured-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.featured-gallery-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.featured-gallery-grid img:hover {
    transform: scale(1.03);
}

/* Impact Section */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 1rem;
}

.impact-card {
    background: #fff;
    border-radius: 6px;
    padding: 0.7rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-card i {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 10px;
}

.impact-card h4 {
    font-size: 20px;
}

.impact-card p {
    font-size: 14px;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

/* Map Section */
.map-embed-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        min-height: 50vh;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto 2rem auto;
        padding: 10px 2px;
        max-width: 98vw;
    }
    .hero-image {
        margin: 0 auto;
        min-width: 60px;
        max-width: 100px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 40vh;
        padding-top: 50px;
    }
    .hero-content {
        padding: 6px 1px;
        border-radius: 6px;
    }
    .hero-content h1 {
        font-size: 1rem;
    }
    .hero-content p {
        font-size: 0.7rem;
    }
    .hero-image {
        min-width: 40px;
        max-width: 60vw;
        height: 30px;
        border-radius: 4px;
    }
    .hero-image .image-container,
    .hero-image img {
        border-radius: 4px;
    }
} 