:root {
    --gold: #C5A059;
    --gold-bright: #e0bc7a;
    --dark: #000000;
    --dark-alt: #111111;
    --dark-lighter: #1a1a1a;
    --white: #ffffff;
    --grey: #999999;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* NAVBAR */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    color: var(--grey);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#live-clock {
    font-size: 0.9rem;
    color: var(--gold);
    font-family: monospace;
}

.cta-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.cta-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

/* HERO SECTION */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero_gold_bullion_premium_v2.png');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--gold);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--grey);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    padding: 1.2rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    display: inline-block;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
    margin-right: 1.5rem;
}

.btn-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

/* MARKET SECTION */
.market-section {
    padding: 100px 0;
    background: var(--dark-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.price-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 50px;
    background: var(--dark-lighter);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--glass);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--grey);
    padding: 0.6rem 2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tab-logo {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.tab-btn:hover:not(.active) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.price-cards-container {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    padding: 2.5rem 2rem;
    border: 1px solid var(--glass);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.price-card:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.metal-name {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metal-name::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.price-prices {
    margin-bottom: 1.5rem;
}

.price-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.price-group:last-child {
    border-bottom: none;
}

.price-group .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--grey);
}

.price-group span {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.price-group span.flash {
    color: var(--gold);
    animation: priceFlash 1s ease;
}

@keyframes priceFlash {
    0% { transform: scale(1); text-shadow: 0 0 10px var(--gold); }
    50% { transform: scale(1.05); text-shadow: 0 0 20px var(--gold); }
    100% { transform: scale(1); text-shadow: none; }
}

.change {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.change.pos { 
    color: #4ade80; 
    background: rgba(74, 222, 128, 0.1);
}
.change.neg { 
    color: #f87171; 
    background: rgba(248, 113, 113, 0.1);
}

/* LIVE PULSE INDICATOR */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.4);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* SERVICES */
.services-section {
    padding: 100px 0;
    background: var(--dark);
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-item {
    padding: 3rem;
    background: var(--dark-lighter);
    text-align: center;
    border: 1px solid var(--glass);
}

.service-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--grey);
    font-size: 0.95rem;
}

/* ABOUT SECTION */
.about-section {
    padding: 120px 0;
    background: var(--dark-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subheading {
    color: var(--gold);
    letter-spacing: 0.3rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.about-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin-top: 3rem;
}

.stats li {
    font-size: 0.9rem;
    color: var(--grey);
}

.stats li span {
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
}

.about-img {
    height: 500px;
    background: url('saruhan_about_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid var(--gold);
}

/* CONTACT */
.contact-section {
    padding: 100px 0;
}

.grid-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

.cta-box {
    background: var(--glass);
    padding: 3rem;
    border: 1px solid var(--gold);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.cta-box h3 {
    font-size: 2rem;
    color: var(--gold);
}

.cta-box p {
    color: var(--grey);
    max-width: 400px;
}

.email-display {
    font-size: 1.1rem;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
    margin-top: 1rem;
}

/* FOOTER */
.footer {
    padding: 80px 0 40px;
    background: var(--dark-alt);
    border-top: 1px solid var(--glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand .logo-img {
    height: 80px;
    margin-bottom: 1rem;
    display: block;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.link-group h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--grey);
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass);
    color: #444;
    font-size: 0.8rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-credit {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* MODAL SYSTEM */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--dark-alt);
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--gold);
    width: 60%;
    max-width: 800px;
    position: relative;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: var(--gold);
    float: right;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.modal h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.modal p {
    color: var(--grey);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@media (max-width: 968px) {
    .navbar { padding: 0 2rem; }
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .about-grid, .grid-contact, .grid-services { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 3rem; }
    .footer-bottom-flex { flex-direction: column; gap: 1.5rem; text-align: center; }
}
