/* 
 * AFGHAN MINING AND MINERALS LTD - Premium Theme
 * Colors: Gold, Silver, Black
 */

:root {
    /* Color Palette */
    --color-gold-primary: #D4AF37;
    --color-gold-light: #F4C430;
    --color-gold-dark: #AA6C39;
    --color-silver: #C0C0C0;
    --color-black-rich: #0a0a0a;
    --color-black-light: #1a1a1a;
    --color-text-main: #f0f0f0;
    --color-text-muted: #a0a0a0;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-primary), var(--color-gold-light), var(--color-gold-primary), var(--color-gold-dark));
    --gradient-dark: linear-gradient(to bottom, var(--color-black-rich), var(--color-black-light));

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-black-rich);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-gold-primary);
    /* Fallback */
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-gold-primary);
    color: var(--color-gold-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--color-gold-primary);
    color: var(--color-black-rich);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Logo for the top navigation bar */
.nav-logo {
    height: 70px;
    /* Standard height for desktop nav */
    width: auto;
    /* Maintains aspect ratio */
    display: block;
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation Links (Desktop) */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-main);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-gold-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    position: relative;
    padding-top: 80px;
    /* Header offset */
    overflow: hidden;
}

/* Slideshow Container */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.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;
}

.slide.active {
    opacity: 1;
}

/* Dark overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-logo-large {
    width: 180px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.2));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-silver);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards */
.service-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--color-gold-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
    color: var(--color-gold-primary);
}

/* Product Slideshow Card */
.product-slideshow-card {
    height: 400px;
    position: relative;
}

.product-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-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 1s ease-in-out;
}

.product-slide.active {
    opacity: 1;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
    z-index: 2;
}

.product-overlay h3 {
    color: var(--color-gold-primary);
    margin: 0;
}

/* Sections General */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title .line {
    width: 80px;
    height: 3px;
    background: var(--color-gold-primary);
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--color-black-light);
    padding: var(--spacing-lg) 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 140px;
    height: auto;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.8;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-gold-primary);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-logo {
        height: 55px;
        /* Slightly smaller for mobile headers */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo-large {
        width: 140px;
        margin-bottom: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        transform: translateY(-150%);
        /* Hidden by default */
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }
}