/* ============================================
   AMM GROUPS - Premium Corporate Design System
   Luxury Mining Investment Company Website
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES & ROOT STYLES
   ============================================ */
:root {
    /* Dark Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #111111;
    --bg-card: #151515;
    
    /* Gold Colors */
    --gold-primary: #D4AF37;
    --gold-light: #F0C040;
    --gold-lighter: #FFD700;
    --gold-dark: #C9A84C;
    --gold-darker: #A07828;
    --gold-accent: #8B6914;
    
    /* Deep Green Colors */
    --green-primary: #2D6A4F;
    --green-dark: #1B4332;
    --green-darker: #0a2e1a;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-tertiary: #CCCCCC;
    --text-muted: #999999;
    
    /* Accent & Utility */
    --border-color: rgba(212, 175, 55, 0.2);
    --overlay-dark: rgba(10, 10, 10, 0.85);
    --overlay-darker: rgba(10, 10, 10, 0.95);
    
    /* Shadows */
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-gold-lg: 0 0 60px rgba(212, 175, 55, 0.5);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   LOADING ANIMATION OVERLAY
   ============================================ */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#loading-overlay.fade-out {
    opacity: 0;
    transform: translateY(-100%);
}

.loading-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate360 3s linear infinite, goldGlow 2s ease-in-out infinite;
}

.logo-text-main {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease 3s forwards;
}

@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes goldGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
                    0 0 40px rgba(212, 175, 55, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.8),
                    0 0 80px rgba(212, 175, 55, 0.4),
                    0 0 120px rgba(212, 175, 55, 0.2);
    }
}

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

/* ============================================
   NAVIGATION BAR
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: transparent;
    z-index: 9999;
    transition: all var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-decoration: none;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    transition: all var(--transition-fast);
}

.nav-logo:hover {
    color: var(--gold-lighter);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

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

.nav-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width var(--transition-fast);
}

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

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

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

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gold-primary);
    transition: all var(--transition-fast);
}

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
}

p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Gold Shimmer Effect */
.gold-shimmer {
    background: linear-gradient(90deg, 
        var(--gold-dark) 0%, 
        var(--gold-lighter) 25%, 
        var(--gold-primary) 50%, 
        var(--gold-lighter) 75%, 
        var(--gold-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Gold Underline */
.gold-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-lighter));
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid var(--gold-primary);
    background: transparent;
    color: var(--gold-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-primary);
    transition: left var(--transition-fast);
    z-index: -1;
}

.btn:hover {
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
}

.btn:hover::before {
    left: 0;
}

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

.btn-solid:hover {
    background: var(--gold-lighter);
    border-color: var(--gold-lighter);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 6rem 5%;
    position: relative;
}

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

.section-darker {
    background: var(--bg-primary);
}

.section-green {
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title h2 {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    font-weight: 300;
}

/* ============================================
   HERO SECTION (SLIDER)
   ============================================ */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.9) 0%, 
        rgba(27, 67, 50, 0.7) 50%, 
        rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.5s;
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
}

.card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-10px);
}

.card:hover::before {
    transform: translateX(100%);
}

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

.card h3 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* Luxury Cards (Green Gradient) */
.card-luxury {
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.card-luxury:hover {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--green-darker) 0%, var(--bg-primary) 100%);
    padding: 4rem 5%;
}

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

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--gold-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.4), rgba(27, 67, 50, 0.6));
}

.project-content {
    padding: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gold-darker);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--gold-primary);
}

.project-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-fast);
}

.project-link:hover {
    gap: 1rem;
}

.project-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-primary);
    border-top: 2px solid var(--gold-primary);
    padding: 4rem 5% 2rem;
}

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

.footer-section h3 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-style: italic;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

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

/* ============================================
   ANIMATIONS & SCROLL EFFECTS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    nav {
        padding: 1rem 3%;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-smooth);
        border-left: 2px solid var(--gold-primary);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    section {
        padding: 4rem 3%;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 100vh;
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-slider .slide {
        background-attachment: scroll !important;
        background-position: center 15% !important; /* Move the logo up a bit */
        background-size: contain !important;
        background-color: #0a0a0a !important; /* Ensure the remaining space is black */
        align-items: flex-end; /* Move HTML text to the bottom */
        padding-bottom: 12vh; /* Give space at the bottom */
    }

    /* Make the overlay fade from mostly transparent at top to very dark at bottom */
    .slide-overlay {
        background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.95) 60%, rgba(10,10,10,1) 100%) !important;
    }

    .hero-content {
        padding: 0 15px; /* Ensure padding on small screens */
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Make it punchier */
        text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
