/* 
   CoreTech Mining - Modern Industrial Theme
*/

:root {
    /* Color Palette */
    --deep-carbon: #0A0A0A;
    --deep-carbon-light: #121212;
    --deep-carbon-lighter: #1A1A1A;
    --electric-emerald: #00FF41;
    --electric-emerald-dim: rgba(0, 255, 65, 0.2);
    --slate-gray: #8E8E93;
    --text-white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Effects */
    --glass-bg: rgba(18, 18, 18, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    /* Layout */
    --section-padding: 100px 0;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--deep-carbon);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--electric-emerald);
}

img, video {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--electric-emerald);
}

.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    color: var(--slate-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    text-transform: none;
    font-weight: 400;
}

.text-left {
    margin-left: 0;
    text-align: left;
}

/* UI Components */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--electric-emerald);
    color: var(--deep-carbon);
    box-shadow: 0 0 15px var(--electric-emerald-dim);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--electric-emerald);
    color: var(--electric-emerald);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--slate-gray);
    color: var(--text-white);
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--electric-emerald);
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-cta {
    border: 1px solid var(--electric-emerald);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--electric-emerald) !important;
}

.nav-cta:hover {
    background-color: var(--electric-emerald-dim);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* Aerial Hero Flyover */
.hero-bg-image {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('assets/aerial-site.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    animation: flyover 15s linear infinite alternate;
}

@keyframes flyover {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-4%, 3%); }
}

/* Feature Images */
.services-wrapper,
.sustainability-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.services-grid,
.sustainability-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 0;
}

.feature-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glow-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,255,65,0.2), 0 0 20px var(--electric-emerald-dim);
    border-color: rgba(0,255,65,0.4);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,1) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-gray);
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.6s;
}

/* Live Metrics Dashboard */
.metrics-dashboard {
    position: relative;
    margin-top: -60px;
    z-index: 10;
    padding: 0 20px;
}

.ticker-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticker-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 20px var(--electric-emerald-dim);
}

.metric-card {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--slate-gray);
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: monospace;
    color: var(--text-white);
    display: flex;
    align-items: baseline;
}

.metric-value .counter-decimal {
    font-size: 1.2rem;
    color: var(--slate-gray);
}

.metric-value .unit {
    font-size: 0.9rem;
    color: var(--electric-emerald);
    margin-left: 5px;
    font-family: var(--font-main);
}

.metric-divider {
    width: 1px;
    height: 40px;
    background-color: var(--glass-border);
}

.status-online {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--electric-emerald);
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--electric-emerald);
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    background-color: var(--electric-emerald);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.about-section {
    background-color: var(--deep-carbon);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(0,255,65,0.03), transparent 60%);
    pointer-events: none;
}

/* Removing old services grid since we override it in wrapper */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 0;
}

.service-card {
    background-color: var(--deep-carbon-light);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--electric-emerald);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: var(--deep-carbon-lighter);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

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

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0,255,65,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--electric-emerald);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--slate-gray);
    font-size: 0.95rem;
}

/* Infrastructure */
.infrastructure-section {
    background-color: var(--deep-carbon-lighter);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.infrastructure-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 40px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-bullet {
    min-width: 12px;
    height: 12px;
    background-color: var(--electric-emerald);
    margin-top: 6px;
    position: relative;
}

.feature-bullet::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--electric-emerald);
    filter: blur(5px);
    opacity: 0.5;
}

.feature-list h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-list p {
    color: var(--slate-gray);
    font-size: 0.95rem;
}

.infrastructure-map {
    height: 500px;
    background-color: var(--deep-carbon);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="none" class="stroke-slate-gray"/></svg>'); /* We'll use CSS grid lines for this futuristic look instead */
}

.map-overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 1000px;
    transform: rotateX(60deg) scale(2);
    transform-origin: center top;
}

.placeholder-glow {
    box-shadow: inset 0 0 50px rgba(0,255,65,0.05);
}

.map-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--text-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
}

.map-marker.active {
    background-color: var(--electric-emerald);
    box-shadow: 0 0 15px var(--electric-emerald);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background-color: rgba(0,255,65,0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.map-marker.active .marker-pulse {
    animation: markerPulse 2s infinite;
}

.marker-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--electric-emerald);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.marker-tooltip span {
    font-weight: 400;
    color: var(--slate-gray);
    font-size: 0.7rem;
}

.map-marker:hover .marker-tooltip, .map-marker.active .marker-tooltip {
    opacity: 1;
    visibility: visible;
    top: -60px;
}

/* Sustainability */
/* Removing old sustainability grid since we override it in wrapper */
.sustainability-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sustain-card {
    padding: 50px 40px;
    text-align: center;
    transition: transform 0.4s ease;
}

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

.sustain-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    border: 1px solid rgba(0,255,65,0.2);
}

.sustain-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--electric-emerald);
}

.sustain-card p {
    color: var(--slate-gray);
    font-size: 1rem;
}

/* Investor Relations */
.investor-section {
    background-color: var(--deep-carbon-lighter);
}

.terminal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.terminal-panel {
    background-color: var(--deep-carbon);
    border: 1px solid #1f1f1f;
    border-radius: 4px;
    overflow: hidden;
    font-family: monospace;
}

.panel-header {
    background-color: #1a1a1a;
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--slate-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1f1f1f;
}

.panel-dot {
    width: 8px;
    height: 8px;
    background-color: var(--electric-emerald);
    border-radius: 50%;
}

.panel-content {
    padding: 20px;
}

.filing-list, .news-list {
    list-style: none;
}

.filing-list li, .news-list li {
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.filing-list li:last-child, .news-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filing-list .date {
    color: var(--slate-gray);
    display: inline-block;
    width: 90px;
}

.filing-list a, .news-list a {
    color: var(--text-white);
}

.filing-list a:hover, .news-list a:hover {
    color: var(--electric-emerald);
    text-decoration: underline;
}

.production-stat {
    margin-bottom: 25px;
}

.production-stat:last-child {
    margin-bottom: 0;
}

.stat-label {
    display: block;
    color: var(--slate-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    color: var(--electric-emerald);
    font-weight: bold;
}

.stat-change {
    font-size: 0.8rem;
    color: var(--slate-gray);
}

.stat-change.positive {
    color: var(--electric-emerald);
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 80px 0 20px;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--slate-gray);
    margin: 20px 0;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-email {
    color: var(--electric-emerald);
    font-weight: 600;
}

.footer-email:hover {
    text-shadow: 0 0 10px var(--electric-emerald-dim);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-column h4 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1rem;
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 12px;
}

.link-column a {
    color: var(--slate-gray);
    font-size: 0.9rem;
}

.link-column a:hover {
    color: var(--electric-emerald);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--slate-gray);
    font-size: 0.8rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--slate-gray);
}

.legal-links a:hover {
    color: var(--electric-emerald);
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes markerPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-wrapper,
    .sustainability-wrapper {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .sustainability-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .infrastructure-layout {
        grid-template-columns: 1fr;
    }
    
    .terminal-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add JS toggle for mobile */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .ticker-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .metric-divider {
        width: 100%;
        height: 1px;
    }
    
    .status-online {
        padding-top: 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .sustainability-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
