/* Gold Trading Global - Custom Styles */

:root {
    --gold-primary: #FFD700;
    --gold-secondary: #B8860B;
    --gold-light: #FFF8DC;
    --dark-primary: #1a1a1a;
    --dark-secondary: #2c2c2c;
    --text-light: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

/* Company Logo Styles */
.company-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
}

.company-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 2px;
    margin-top: -2px;
    text-transform: uppercase;
}

/* Logo Animation */
@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    50% {
        filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
    }
}

.navbar-brand:hover .logo-icon svg {
    animation: logoGlow 2s ease-in-out infinite;
}

/* Responsive Logo */
@media (max-width: 768px) {
    .company-logo {
        gap: 8px;
    }
    
    .logo-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .company-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .company-logo {
        gap: 0;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--gold-primary) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gold-primary);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon points="0,1000 1000,800 1000,1000" fill="%23FFD700" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: bottom;
}

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

.hero-content {
    padding: 100px 0 50px;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hero-stats h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero-buttons .btn {
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.trading-card {
    max-width: 350px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.3s ease;
}

.trading-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.price-display h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.chart-placeholder {
    height: 160px;
    padding: 15px;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.chart-title {
    margin-bottom: 10px;
}

.chart-container {
    height: 100px;
    position: relative;
}

.chart-labels {
    font-size: 0.7rem;
    margin-top: 5px;
}

/* Canvas Chart Styling */
#goldCanvas {
    border-radius: 5px;
    cursor: default;
    transition: all 0.3s ease;
}

#goldCanvas:hover {
    filter: brightness(1.05);
}

/* Chart Responsive */
@media (max-width: 768px) {
    .chart-placeholder {
        height: 140px;
        padding: 10px;
    }
    
    .chart-container {
        height: 80px;
    }
}

/* Enhanced Trading Card */
.trading-card {
    position: relative;
    min-height: 250px;
}

/* Live Price Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.data-source-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.65rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Enhanced Trading Card */
.trading-card .d-flex {
    position: relative;
}

.price-display {
    flex: 1;
}

/* Loading state for price updates */
.price-loading {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.price-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Error state styles */
.price-error {
    color: #dc3545 !important;
}

.demo-mode .live-indicator {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.demo-mode .live-dot {
    background: #ffc107;
}

/* After Hours Indicator */
.live-indicator.after-hours {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.3);
}

.live-indicator.after-hours .live-dot {
    background: #6c757d;
    animation: afterHoursPulse 3s ease-in-out infinite;
}

@keyframes afterHoursPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* Market Status Enhancement */
.trading-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
}

/* Price Update Animation */
@keyframes priceUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.price-updated {
    animation: priceUpdate 0.5s ease-in-out;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    max-width: 800px;
    margin: 0 auto;
}

.section-header .badge {
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
}

/* About Section */
.about-content h3 {
    color: var(--dark-primary);
    margin-bottom: 1.5rem;
}

.mission-vision .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.mission-vision .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.stat-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.stat-card h4 {
    font-size: 2rem;
    font-weight: bold;
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
}

.service-card .list-unstyled {
    margin-top: auto;
}

.service-card .list-unstyled li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
}

.service-icon {
    background: linear-gradient(135deg, var(--gold-light) 0%, #fff 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Training Section */
.training-program {
    transition: all 0.3s ease;
}

.training-program:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.training-program .card-header {
    font-weight: 500;
    border-bottom: none;
}

.training-feature {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.training-feature:hover {
    background: var(--gold-light);
    transform: translateY(-5px);
}

/* Timeline Styles */
.timeline {
    position: relative;
}

.timeline-item {
    margin-bottom: 2rem;
}

.timeline-item .card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
}

.timeline-item .card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.achievement-metrics {
    background: rgba(40, 167, 69, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Contact Section */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.contact-item {
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-item h5 {
    color: #ffffff !important;
    font-weight: 600;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-item small {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%) !important;
    border-top: 3px solid var(--gold-primary);
}

footer * {
    color: #ffffff !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .fw-bold {
    color: #ffffff !important;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.footer-logo:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

.footer-links a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

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

/* Utility Classes */
.text-warning {
    color: var(--gold-primary) !important;
}

.bg-warning {
    background-color: var(--gold-primary) !important;
}

.btn-warning {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #000;
    font-weight: 500;
}

.btn-warning:hover {
    background-color: var(--gold-secondary);
    border-color: var(--gold-secondary);
    color: #000;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 50px 0 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        margin: 1.5rem 0;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .trading-card {
        margin-top: 2rem;
        transform: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .timeline-item .card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .service-card,
    .training-program {
        margin-bottom: 2rem;
    }
    
    .stat-card h4 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold-primary);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--gold-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-secondary);
}

/* Material Design Enhancements */
.card {
    border-radius: 15px !important;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn {
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Enhanced Visual Effects */
.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: #000;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.modal-header .btn-close {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    padding: 0.5rem;
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h6 {
    color: var(--gold-secondary);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    margin-bottom: 1.5rem;
}

.modal-body ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-body strong {
    color: var(--dark-primary);
    font-weight: 600;
}

.modal-body .alert {
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-left: 4px solid var(--gold-primary);
}

.modal-body .alert h6 {
    color: var(--gold-secondary);
    margin-top: 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 15px 15px;
    padding: 1.5rem;
}

.modal-footer .btn {
    padding: 10px 25px;
    font-weight: 500;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* Modal Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gold-secondary);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 60vh;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .contact-form,
    footer,
    .modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-header h2 {
        color: #000 !important;
        font-size: 18pt;
    }
}