/**
 * MINEX GROUP COMPANY LIMITED - Main Stylesheet
 * Black & Gold Professional Theme (Default)
 * Themes can be switched via theme-switcher.js
 */

/* Default theme variables (Gold) - will be overridden by themes.css */
:root {
    /* Colors - Black & Gold Theme */
    --color-primary: #D4AF37;        /* Gold */
    --color-primary-dark: #B8941F;  /* Dark Gold */
    --color-primary-light: #E5C158;  /* Light Gold */
    --color-secondary: #1a1a1a;     /* Black */
    --color-secondary-light: #2d2d2d;
    --color-accent: #96622B;        /* Bronze */
    --color-text: #ffffff;
    --color-text-light: #e0e0e0;
    --color-text-dark: #333333;
    --color-bg: #0a0a0a;            /* Very Dark */
    --color-bg-light: #1a1a1a;
    --color-bg-section: #0f0f0f;
    --color-border: rgba(212, 175, 55, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: 2rem; font-weight: 600; letter-spacing: -0.3px; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

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

a:hover {
    color: var(--color-primary-light);
}

/* Header - Modern Clean Design */
.main-header {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Add light background for black logo visibility */
    background: rgba(212, 175, 55, 0.15); /* Gold tint background */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.logo-animated {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add circular background for better contrast */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-animated img,
.logo-animated svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

/* Logo Animation - Convergence from corners */
.logo-animated .converge-element {
    opacity: 0;
    animation: convergeFromCorners 2s ease-out forwards;
}

.logo-animated .converge-element.corner-tl {
    animation-name: convergeFromTopLeft;
}

.logo-animated .converge-element.corner-tr {
    animation-name: convergeFromTopRight;
}

.logo-animated .converge-element.corner-bl {
    animation-name: convergeFromBottomLeft;
}

.logo-animated .converge-element.corner-br {
    animation-name: convergeFromBottomRight;
}

@keyframes convergeFromTopLeft {
    0% {
        opacity: 0;
        transform: translate(-100px, -100px) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes convergeFromTopRight {
    0% {
        opacity: 0;
        transform: translate(100px, -100px) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes convergeFromBottomLeft {
    0% {
        opacity: 0;
        transform: translate(-100px, 100px) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes convergeFromBottomRight {
    0% {
        opacity: 0;
        transform: translate(100px, 100px) scale(0.3);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.company-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

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

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.menu-toggle.active {
    color: var(--color-primary);
}

.menu-toggle.active i::before {
    content: '\f00d'; /* Font Awesome X icon */
}

/* Hero Section - Modern Large Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 160px; /* Increased to prevent header overlap on all devices */
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    text-align: center;
    position: relative;
    z-index: 3;
    margin-top: 20px; /* Extra margin to ensure content is below header */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1px;
    position: relative;
    z-index: 10; /* Ensure text is above header */
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10; /* Ensure text is above header */
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons - Modern Clean Design */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    border-width: 2px;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* Sections - Modern Spacing */
.section {
    padding: 6rem 0;
    position: relative;
}

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

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

.section-title h2 {
    font-size: 3rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.7;
}

/* Cards - Modern Clean Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    background: rgba(26, 26, 26, 0.95);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.card p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Footer - Modern Clean Footer */
.footer {
    background: var(--color-bg-section);
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 2rem;
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* Footer logo styling */
.footer .logo-container {
    margin-bottom: 1.5rem;
}

.footer .logo-animated {
    width: 80px;
    height: 80px;
    animation: logoPulse 2s ease-in-out infinite;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-text-light);
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

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

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Coming Soon Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.coming-soon-container {
    position: relative;
}

.coming-soon-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        background: transparent;
        border: 1px solid var(--color-border);
        color: var(--color-primary);
        padding: 0.5rem 0.75rem;
        border-radius: 4px;
        cursor: pointer;
        font-size: 1.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }
    
    .menu-toggle:hover {
        background: rgba(212, 175, 55, 0.1);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        padding: 5rem 0 2rem 0;
        transition: left var(--transition-normal);
        border-right: 1px solid var(--color-border);
        z-index: 1000;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1rem;
        width: 100%;
        transition: all var(--transition-fast);
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(212, 175, 55, 0.15);
        padding-left: 2.5rem;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
        backdrop-filter: blur(4px);
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Logo adjustments */
    .logo-container {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-animated {
        width: 45px;
        height: 45px;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .main-header {
        padding: 0.75rem 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 70vh;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Touch-friendly buttons */
    button, .btn, a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form improvements */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem;
        border-radius: 4px;
    }
    
    /* Better spacing for forms */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Footer improvements */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Card improvements */
    .card {
        padding: 1.5rem;
    }
    
    /* Better text readability */
    p, li {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .main-nav {
        width: 100%;
        max-width: 100%;
    }
    
    .logo-animated {
        width: 40px;
        height: 40px;
    }
    
    .company-name {
        font-size: 1rem;
    }
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
