/* 
RSGoldZone - Landing Page Styles
Mobile-first, responsive design with premium gold theme
*/

:root {
    --primary: #dfa535;
    --dark-bg: #1E1E1E;
    --text: #efe5cd;
    --hover: #FFB300;
    --shadow: #B8860B;
    --accent: #efe5cd;
    --divider: #3A3A3A;

    --dark-accent: #121212;
    --light-gold: #FFF8E1;
    --glow: rgba(223, 165, 53, 0.6); /* changed to match primary */

    --x-pos: 50%;
    --y-pos: 50%;
}

/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover);
    text-shadow: 0 0 10px var(--glow);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

section {
    padding: 4rem 0;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 15px var(--glow);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.95), rgba(30, 30, 30, 0.8));
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 0.6rem 0;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.98), rgba(25, 25, 25, 0.95));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(223, 165, 53, 0.15) 0%, rgba(223, 165, 53, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.logo {
    height: 75px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: none; /* Hidden on mobile */
}

.nav-links li {
    display: inline-block;
    margin-left: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    background-color: var(--primary);
}

.mobile-nav-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Account for fixed header */
    padding-bottom: 50px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100" stroke="rgba(223,165,53,0.05)" stroke-width="0.5"/><path d="M100,0L0,100" stroke="rgba(223,165,53,0.05)" stroke-width="0.5"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-logo {
    height: 280px;
    filter: drop-shadow(0 0 30px var(--glow));
}

.floating-logo {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 25px var(--glow));
}

.floating-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(223, 165, 53, 0.15) 0%, rgba(223, 165, 53, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.floating-logo img {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-55%);
    }
    100% {
        transform: translateY(-50%);
    }
}

.hero-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-section h1 span {
    display: block;
    color: var(--primary);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: -20%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    opacity: 0.1;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    animation: pulse 8s infinite alternate;
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    opacity: 0.4;
    filter: blur(40px);
    animation: rotate 15s linear infinite;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: #1E1E1E !important;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(120deg, var(--hover), var(--primary), var(--hover));
    background-size: 200% auto;
    animation: goldShine 1s linear forwards;
    box-shadow: 0 0 20px var(--glow), 0 7px 20px rgba(184, 134, 11, 0.6);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 100px at var(--x-pos) var(--y-pos), rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button:hover::before {
    opacity: 1;
}

@keyframes goldShine {
    0% {
        background-position: -200%;
    }
    100% {
        background-position: 200%;
    }
}

/* Features Section */
.features-section {
    background-color: var(--dark-bg);
    position: relative;
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.7));
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--divider);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--hover));
    opacity: 0.7;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text);
}

.features-section h2 span {
    color: var(--primary);
}

/* Why Us Section */
.why-us-section {
    background-color: var(--dark-accent);
    position: relative;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--light-gold), var(--primary), var(--hover));
}

.why-us-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.7));
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--divider);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--light-gold), var(--primary), var(--hover));
    opacity: 0.7;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--glow), 0 7px 20px rgba(184, 134, 11, 0.6);
}

.feature-icon {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--dark-bg);
    position: relative;
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--hover));
    color: var(--dark-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--glow);
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Testimonials Section */
.vouches-section {
    background-color: var(--dark-accent);
    position: relative;
}

.vouches-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.testimonials-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-content {
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.7));
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    border: 1px solid var(--divider);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name {
    font-weight: 600;
    color: var(--primary);
}

.rating {
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(223,165,53,0.2)"/></svg>');
    padding: 6rem 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--dark-accent);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--divider);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column {
    position: relative;
}

.footer-column:first-child::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 35px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 0;
}

.footer-logo {
    height: 70px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    display: flex;
    align-items: center;
}

.footer-column ul li a i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-column p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.05;
        transform: translateY(-50%) scale(1);
    }
    100% {
        opacity: 0.15;
        transform: translateY(-50%) scale(1.1);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Animation utility classes - will be applied via JS */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.slide-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Responsive Media Queries */
@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        display: flex;
    }
    
    .mobile-nav-toggle {
        display: none;
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .hero-section {
        background-attachment: fixed;
    }
    
    .hero-image {
        right: 0;
    }
}

/* Mobile Menu Overlay (appears when mobile menu button is clicked) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-overlay .nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mobile-menu-overlay .nav-links li {
    margin: 1.5rem 0;
}

.mobile-menu-overlay .nav-links a {
    font-size: 1.5rem;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}

/* Reuse gold styles */
.gold-text {
    color: var(--primary);
}

.gold-shadow {
    text-shadow: 0 0 10px var(--glow);
}

.gold-border {
    border: 1px solid var(--primary);
}

@media (max-width: 992px) {
    .hero-title-container {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center text under logo */
        margin-bottom: 1.5rem;
    }

    .floating-logo {
        position: relative;
        top: auto;
        right: auto;
        margin: 2rem auto 1.5rem;
        display: flex;
        justify-content: center;
        transform: none;
        animation: floatMobile 6s ease-in-out infinite;
        filter: drop-shadow(0 0 30px var(--glow));
        order: -1; /* Put the logo before the title content */
    }

    @keyframes floatMobile {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-15px);
        }
        100% {
            transform: translateY(0);
        }
    }

    .hero-logo {
        height: 180px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    .hero-section h1 {
        font-size: 2.8rem;
        text-align: center;
    }

    .hero-section p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-logo {
        height: 140px;
    }
}
