:root {
    --primary-color: #0a192f;
    --secondary-color: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    --white: #e6f1ff;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
    font-family: 'Orbitron', sans-serif;
    /* Industrial/Tech feel */
    margin-bottom: 20px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Header */
#main-header {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.logo-text {
    display: block;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background-color: #030816;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(100, 255, 218, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(45, 100, 255, 0.05) 0%, transparent 40%);
}

#mineralCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.16), rgba(10, 25, 47, 0.12));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.primary-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-header h2 {
    margin-bottom: 0;
    font-size: 2rem;
    color: var(--white);
}

.section-header .line {
    height: 1px;
    background-color: rgba(136, 146, 176, 0.3);
    flex-grow: 1;
    max-width: 300px;
}

/* About Section */
#about {
    background-color: var(--primary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-image {
    width: 100%;
    height: 300px;
    background-color: #050505;
    border: 1px solid var(--accent-color);
    position: relative;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

#gibson-terminal {
    width: 100%;
    height: 100%;
    padding: 20px;
    color: #64ffda;
    /* Cyan terminal to match theme */
    text-shadow: 0 0 5px #64ffda;
    position: relative;
    z-index: 1;
}

.terminal-header {
    border-bottom: 1px solid #64ffda;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.terminal-content {
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-y: hidden;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

/* Operations - Cards */
#operations {
    background-color: var(--secondary-color);
}

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

.card {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

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

/* Footer */
footer {
    background-color: #020c1b;
    padding: 40px 0 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-secondary);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--primary-color);
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 15px 20px;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 1px solid var(--accent-color);
    letter-spacing: 1px;
}

.modal-body {
    padding: 30px 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--accent-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--white);
    text-shadow: 0 0 8px var(--accent-color);
}

.crypto-text {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 20px;
    opacity: 0.7;
    border-top: 1px solid rgba(136, 146, 176, 0.2);
    padding-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 10px 0;
    }

    #main-header {
        height: auto;
        padding: 10px 0;
    }

    nav ul {
        gap: 15px;
        margin-top: 10px;
    }

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

    #hero::before {
        background-position: center 20%;
    }

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

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}