:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --bg-dark: #f8fafc; /* Much lighter base */
    --surface: #ffffff; /* White surface */
    --text-main: #0f172a; /* Dark text */
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --border: rgba(15, 23, 42, 0.1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title.left {
    text-align: left;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.7); /* White glassmorphism */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height 0.4s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

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

.nav-links a {
    text-decoration: none;
    color: #0f172a; /* Dark text for readability on white glass */
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--border);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    color: white;
}

.wa-icon {
    width: 18px;
    height: 18px;
}

.btn.full {
    width: 100%;
    text-align: center;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)), url('assets/hero_mining.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: kenBurns 20s infinite alternate ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, rgba(14, 165, 233, 0.2), transparent);
    animation: scanning 8s infinite linear;
}

@keyframes scanning {
    0% { top: -100px; }
    100% { top: 100%; }
}

.hero-content {
    color: #ffffff;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Industries Section */
.industries {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.industry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.industry-item {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.industry-item:hover {
    transform: scale(1.02);
}

.industry-img {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.industry-content {
    padding: 2rem;
}

.industry-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--surface); /* Brighter about section */
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.highlight-p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.authority-badge {
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(56, 189, 248, 0.05);
    position: relative;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.1);
}

.badge-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.badge-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-box p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.reveal-delay.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}

.reveal-delay-2.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: #0f172a; /* Dark toggle */
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle.active {
    z-index: 1001;
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 999;
}

.nav-links.active a {
    font-size: 1.5rem;
}

.nav-links.active .btn-whatsapp {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-flex {
        flex-direction: column;
        text-align: center;
    }

    .section-title.left {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

    .industry-grid {
        grid-template-columns: 1fr;
    }
}

/* Chatbot Styling */
.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
    transition: all 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-icon {
    font-size: 24px;
    color: white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
}

.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
    color: white;
}

#close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f1f5f9;
}

.chat-msg {
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    color: #0f172a;
}

.chat-msg.bot {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    border: 1px solid var(--border);
    padding: 0.8rem;
    border-radius: 10px;
    outline: none;
    color: #0f172a;
}

#chat-send {
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .chat-window {
        width: 280px;
        height: 400px;
        right: -10px;
    }
}
