/* Base Styles & Variables */
:root {
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA771C;
    --bg-main: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #151515;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --border-color: #2a2a2a;
    --gold-gradient: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    --gold-gradient-hover: linear-gradient(135deg, #AA771C, #FBF5B7, #B38728, #FCF6BA, #BF953F);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
}

body {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-padding {
    padding: 100px 0;
}

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

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

/* Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 12px;
}

.shadow-gold {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
}

.btn-primary:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

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

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-underline {
    height: 3px;
    width: 80px;
    background: var(--gold-gradient);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--gold-primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: url('../images/hero-banner.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

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

/* Live Prices */
.prices-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.price-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.gold-card::before {
    background: var(--gold-gradient);
}

.silver-card::before {
    background: linear-gradient(135deg, #e0e0e0, #ffffff, #b0b0b0);
}

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

.price-header i {
    font-size: 2rem;
}

.gold-card .price-header i { color: var(--gold-primary); }
.silver-card .price-header i { color: #e0e0e0; }

.price-body {
    margin-bottom: 20px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.unit {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-change {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.positive { color: #00e676; }
.negative { color: #ff1744; }

.price-footer {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Charts */
.chart-container {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    height: 400px;
    width: 100%;
}

/* About App */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Download Section */
.download-box {
    background: var(--gold-gradient);
    padding: 60px 40px;
    border-radius: 20px;
    color: #000;
}

.download-box h2 {
    font-size: 2.5rem;
}

.download-box p {
    color: #222;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.store-btn:hover {
    background: #222;
    transform: translateY(-5px);
    color: #fff;
}

.store-btn i {
    font-size: 2rem;
}

.store-btn .btn-text {
    text-align: left;
}

.store-btn .btn-text span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.store-btn .btn-text strong {
    font-size: 1.2rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold-primary);
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.error-msg {
    color: #ff1744;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.success-msg {
    color: #00e676;
    margin-top: 20px;
    text-align: center;
    display: none;
}

/* Footer */
.footer {
    background: var(--bg-main);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    margin-top: 20px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--gold-primary);
    color: #000;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--gold-primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Animations */
.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 */
@media (max-width: 991px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .download-box h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
