/* ============================================
   AUTHENTIK GOLD - Main Stylesheet
   ============================================ */

/* === FONTS === */
@font-face {
    font-family: 'Britannic Bold';
    src: local('Britannic Bold');
    font-weight: bold;
}

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Arial, 'Inter', sans-serif; background: #0D0D0D; color: #fff; overflow-x: hidden; }

/* === GOLD EFFECTS === */
.gold-text {
    background: linear-gradient(135deg, #FFEC8B 0%, #D4AF37 40%, #996515 70%, #FFEC8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-gradient {
    background: linear-gradient(135deg, #FFEC8B 0%, #D4AF37 40%, #996515 100%);
}

/* === SHIMMER ANIMATION === */
.shimmer {
    background: linear-gradient(110deg, transparent 20%, rgba(255,208,64,0.1) 40%, rgba(255,208,64,0.2) 50%, rgba(255,208,64,0.1) 60%, transparent 80%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === HERO BACKGROUND === */
.hero-bg {
    background: linear-gradient(160deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.7) 100%),
                url('image/img6.jfif') center/cover no-repeat fixed;
}

/* === SECTION BACKGROUNDS === */
.mining-bg {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(13,13,13,1) 100%),
                url('image/How-to-mined-gold3.png') center/cover no-repeat;
}

/* === ANIMATED BORDER === */
.gold-border-animated { position: relative; }
.gold-border-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, #FFEC8B, #996515, #FFEC8B) 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gold-border-animated:hover::after { opacity: 1; }

/* === COUNTER === */
.count-up { font-variant-numeric: tabular-nums; }

/* === NAVBAR === */
.nav-scrolled {
    background: rgba(5,5,5,0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* === CARD HOVER === */
.card-hover { transition: transform 0.4s ease, box-shadow 0.4s ease; }
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(212,175,55,0.15);
}

/* === PARTICLES CANVAS === */
#particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #D4AF37, #996515); border-radius: 4px; }

/* === PRELOADER === */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: #0D0D0D;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-ring {
    width: 60px; height: 60px;
    border: 3px solid rgba(212,175,55,0.2);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === HAMBURGER MENU === */
.hamburger span {
    display: block; width: 28px; height: 2px;
    background: #D4AF37; margin: 6px 0;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === EXPERTISE ICON CIRCLE === */
.icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(153,101,21,0.05));
    border: 1px solid rgba(212,175,55,0.3);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease;
}
.card-hover:hover .icon-circle {
    background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(153,101,21,0.15));
    border-color: #D4AF37;
    box-shadow: 0 0 30px rgba(212,175,55,0.2);
}

/* === PROJECT OVERLAY === */
.project-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
}

/* === MOBILE MENU === */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* === LANGUAGE SWITCHER === */
.lang-switch {
    cursor: pointer;
    padding: 4px 10px;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    color: #999;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lang-switch:hover { color: #D4AF37; border-color: rgba(212,175,55,0.5); }
.lang-switch.active {
    background: rgba(212,175,55,0.1);
    color: #D4AF37;
    border-color: rgba(212,175,55,0.5);
}
.lang-flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }

/* === GOLD PRICE TICKER === */
.gold-ticker {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212,175,55,0.5);
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 240px;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.5),
        0 0 15px rgba(212,175,55,0.15),
        0 0 30px rgba(212,175,55,0.08),
        inset 0 1px 0 rgba(212,175,55,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: tickerSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, tickerGlow 3s ease-in-out 1.5s infinite;
    opacity: 0;
    transform: translateY(20px);
}
.gold-ticker:hover {
    border-color: rgba(212,175,55,0.8);
    box-shadow:
        0 10px 40px rgba(0,0,0,0.5),
        0 0 25px rgba(212,175,55,0.3),
        0 0 50px rgba(212,175,55,0.15),
        inset 0 1px 0 rgba(212,175,55,0.2);
    transform: translateY(-2px);
}
@keyframes tickerSlideIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes tickerGlow {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(0,0,0,0.5),
            0 0 10px rgba(212,175,55,0.1),
            0 0 20px rgba(212,175,55,0.05),
            inset 0 1px 0 rgba(212,175,55,0.1);
        border-color: rgba(212,175,55,0.35);
    }
    50% {
        box-shadow:
            0 10px 40px rgba(0,0,0,0.5),
            0 0 20px rgba(212,175,55,0.3),
            0 0 40px rgba(212,175,55,0.15),
            0 0 60px rgba(212,175,55,0.05),
            inset 0 1px 0 rgba(212,175,55,0.2);
        border-color: rgba(212,175,55,0.7);
    }
}

.gold-ticker .ticker-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1E1E1E;
    border: 1px solid rgba(212,175,55,0.3);
    color: #999;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}
.gold-ticker:hover .ticker-close { opacity: 1; }
.gold-ticker .ticker-close:hover { color: #D4AF37; border-color: #D4AF37; }

.ticker-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4AF37;
    box-shadow: 0 0 6px rgba(212,175,55,0.6);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px rgba(212,175,55,0.4); }
    50% { opacity: 0.6; transform: scale(1.5); box-shadow: 0 0 12px rgba(212,175,55,0.8); }
}

.ticker-price-up { color: #22c55e; }
.ticker-price-down { color: #ef4444; }

.ticker-label {
    font-size: 10px;
    color: #D4AF37;
    letter-spacing: 0.15em;
    background: linear-gradient(90deg, #D4AF37 0%, #FFEC8B 50%, #D4AF37 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tickerLabelShimmer 3s ease-in-out infinite;
}
@keyframes tickerLabelShimmer {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 200% 0; }
}
