/* ===============================================
   GeoRelics - Modern Bootstrap 5 Styling
   =============================================== */

:root {
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bs-heading-font-family: 'Space Grotesk', 'Inter', sans-serif;
    --primary-accent: #C88D36;
    --primary-accent-light: #D4A54A;
    --primary-accent-dark: #A87428;
    --dark-bg: #0B1A24;
    --darker-bg: #06111A;
    --dark-brown: #3C2614;
    --card-bg: rgba(20, 35, 50, 0.5);
}

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

body {
    background: linear-gradient(135deg, #0B1A24 0%, #162736 100%);
    color: #f1f5f9;
    font-family: var(--bs-body-font-family);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(200, 141, 54, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(60, 38, 20, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
    color: #ffffff;
}

/* Custom Color Classes */
.text-accent {
    color: var(--primary-accent) !important;
}

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

.bg-accent-subtle {
    background-color: rgba(200, 141, 54, 0.15) !important;
}

.btn-accent {
    background: linear-gradient(135deg, #C88D36 0%, #A87428 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(200, 141, 54, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(200, 141, 54, 0.4);
    background: linear-gradient(135deg, #D4A54A 0%, #C88D36 100%);
    color: #fff;
}

/* Navbar */
.navbar {
    background: rgba(11, 26, 36, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    filter: drop-shadow(0 0 10px rgba(200, 141, 54, 0.3));
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

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

.nav-link:hover {
    color: var(--primary-accent) !important;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, #C88D36 0%, #D4A54A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    color: #cbd5e1 !important;
}

.text-muted {
    color: #94a3b8 !important;
}

.badge {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-3px);
}

.stats-item {
    text-align: center;
    padding: 1rem;
}

.stats-item h3 {
    font-size: 2rem;
    color: #ffffff;
}

.stats-item p {
    color: #cbd5e1;
}

/* Hero Phone */
.hero-phone-container {
    position: relative;
    perspective: 1500px;
}

.phone-mockup {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: 0 auto;
}

.phone-mockup.phone-3d {
    transform: rotateY(-12deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-phone-container:hover .phone-mockup.phone-3d {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.phone-screen {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 46px;
    border: 8px solid #1e293b;
    box-shadow: 
        0 0 0 2px #333,
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(200, 141, 54, 0.15),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s ease;
}

.phone-screen.hover-swap {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.hero-phone-container:hover .phone-screen.hover-swap {
    opacity: 1;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(20, 35, 50, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: floatCard 4s ease-in-out infinite;
    z-index: 3;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card-1 { top: 10%; right: -10%; animation-delay: 0s; }
.floating-card-2 { top: 50%; left: -15%; animation-delay: 1s; }
.floating-card-3 { bottom: 15%; right: 5%; animation-delay: 2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Sections */
.features-section,
.poi-section,
.screenshots-section,
.cta-section {
    padding: 100px 0;
}

.py-6 {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.feature-card,
.poi-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.poi-card h3 { color: #ffffff; }
.poi-card ul { color: #cbd5e1; }
.feature-card h3, .feature-card h4, .feature-card h5 { color: #ffffff; }
.feature-card p { color: #cbd5e1; }

.feature-card::before,
.poi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 141, 54, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover,
.poi-card:hover {
    transform: translateY(-10px);
    border-color: rgba(200, 141, 54, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before,
.poi-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(200, 141, 54, 0.2) 0%, rgba(168, 116, 40, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #e2e8f0;
}

.feature-img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
}

/* POI Section */
.bg-dark-subtle {
    background: rgba(11, 26, 36, 0.5) !important;
    backdrop-filter: blur(10px);
}

.poi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.poi-icon.bg-primary { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.poi-icon.bg-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.poi-icon.bg-accent { background: linear-gradient(135deg, #C88D36 0%, #A87428 100%); }
.poi-icon.bg-info { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.poi-icon.bg-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.poi-icon.bg-secondary { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

/* Screenshots */
.screenshot-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.screenshot-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.screenshot-card img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.screenshot-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.screenshot-overlay .badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(200, 141, 54, 0.08) 0%, rgba(60, 38, 20, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark {
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-dark:hover {
    background: #334155;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: rgba(11, 26, 36, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-accent);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .floating-card { display: none; }
    .display-1 { font-size: 3rem !important; }
}

@media (max-width: 768px) {
    .navbar-brand { font-size: 1.25rem; }
    .stats-item h3 { font-size: 1.5rem; }
    .feature-card, .poi-card { padding: 2rem; }
}

/* Utilities */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.rounded-pill {
    border-radius: 50px !important;
}

.d-none {
    display: none !important;
}
