/* ════════════════════════════════════════════════════════════
   PEACE FINDER BRAND PALETTE
════════════════════════════════════════════════════════════ */
:root {
    --bg-dark: #050A14; 
    --bg-surface: #0A1224; 
    --deep-blue: #1E3A8A;
    --forest-green: #2E8B57;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.65);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: Strict Scroll Lock */
html {
    scroll-behavior: smooth; 
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    
    /* THE SOLUTION: We removed the physical HTML orbs and replaced them 
       with a 2D painted background gradient. This cannot break the screen width! 
    */
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(46, 139, 87, 0.15), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(30, 58, 138, 0.2), transparent 50%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    /* Lock width and disable Chrome text-zooming */
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

img, svg {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Force text to wrap instead of stretching the screen */
h1, h2, h3, p {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-teal { color: var(--forest-green) !important; }
.text-gold { 
    color: var(--text-main) !important; 
    text-shadow: 0 0 15px var(--deep-blue), 0 0 30px var(--deep-blue); 
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 18, 36, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--forest-green); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover { color: var(--forest-green); }

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary-small {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--deep-blue), var(--forest-green));
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-blue), var(--forest-green));
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 139, 87, 0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* Force hide the old HTML orbs without you needing to edit the HTML file */
.glow-orb { display: none !important; }

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.hero-text { flex: 1; z-index: 2;}

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem); /* Fluid text scaling */
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.gold-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gold-divider .line { width: 40px; height: 1.5px; background: rgba(30, 58, 138, 0.9); }
.gold-divider .dot { width: 6px; height: 6px; background: var(--forest-green); border-radius: 50%; }

/* Floating App Animation */
.floating-phone {
    max-width: 350px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
    position: relative;
    z-index: 2;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Features */
.features {
    padding: 100px 0;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    margin-top: 50px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
    text-align: left;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(46, 139, 87, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--forest-green);
    margin-bottom: 20px;
}

.glass-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.glass-card p { color: var(--text-muted); font-size: 0.95rem; }

/* App Showcase */
.showcase {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(30, 58, 138, 0.1), transparent);
    text-align: center;
}

.screenshot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.screenshot-container .screenshot { margin: 0; }

.screenshot {
    max-width: 250px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 6px solid var(--bg-surface);
    transition: transform 0.5s ease;
    z-index: 1;
}

.screenshot:hover {
    z-index: 10;
    transform: translateY(-15px) scale(1.05);
}

.main-screenshot {
    max-width: 280px;
    z-index: 5;
    transform: translateY(20px);
    border-color: rgba(46, 139, 87, 0.3);
}

/* About Us Section */
.about { padding: 80px 0; }
.about .glass-card { text-align: center; padding: 60px 40px; }
.center-divider { justify-content: center; margin-bottom: 30px; }
.about-text { font-size: 1.1rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 20px; line-height: 1.8; }

/* Contact Us Section */
.contact { padding: 80px 0 120px; }
.text-center { text-align: center; }
.contact-methods { display: flex; justify-content: center; margin-top: 30px; }
.contact-item i { font-size: 2.5rem; color: var(--forest-green); margin-bottom: 15px; }
.contact-item h4 { font-size: 1.2rem; margin-bottom: 5px; }
.contact-item a { text-decoration: none; font-weight: 600; }

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-links a { color: var(--text-muted); text-decoration: none; margin-left: 20px; transition: color 0.3s; }
.footer-links a:hover { color: var(--forest-green); }
.copyright { text-align: center; color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* --- Scroll Animations --- */
.hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.1, 0, 0.1, 1); }
.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BASE RULES & HAMBURGER MENU
════════════════════════════════════════════════════════════ */
.menu-toggle {
    display: none; 
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s;
}

.menu-toggle:hover { color: var(--forest-green); }

@media (max-width: 900px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero p { margin: 0 auto 40px; }
    .gold-divider { justify-content: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .screenshot-container { flex-direction: column; gap: 40px; margin-top: 40px;}
    .main-screenshot { transform: none; }
    .footer-content { flex-direction: column; gap: 20px; }
    .footer-links { display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 0;}
    
    .menu-toggle { display: block; }
    
    .nav-links { 
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(10, 18, 36, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 30px 0; gap: 25px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: none; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active { display: flex; }
}

/* ════════════════════════════════════════════════════════════
   APPLICATION JOURNEY STYLES
════════════════════════════════════════════════════════════ */
.app-header { padding: 150px 20px 50px; }
.app-header h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); margin-bottom: 10px; }
.app-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }

.legend { display: flex; justify-content: center; gap: 30px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.admin-dot { background: var(--deep-blue); box-shadow: 0 0 12px var(--deep-blue); }
.user-dot { background: var(--forest-green); box-shadow: 0 0 12px var(--forest-green); }

.journey-wrapper { padding-bottom: 100px; }
.journey-row {
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 50px 30px;
}
.row-title { text-align: center; font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 50px; }
.row-title i { margin-right: 10px; opacity: 0.9; }

.row-content { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.node { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }

.screenshot-wrapper {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 9 / 19.5; 
    border-radius: 28px;
    border: 6px solid var(--bg-surface);
    background-color: #0b1426; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.node:hover .screenshot-wrapper { transform: translateY(-10px) scale(1.02); }

.shimmer::before {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    transform: skewX(-20deg);
    animation: shimmerEffect 1.5s infinite;
    z-index: 1;
}

@keyframes shimmerEffect { 100% { left: 200%; } }

.app-screenshot {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 22px; opacity: 0; transition: opacity 0.6s ease-in-out;
    position: relative; z-index: 2; display: block;
}

.app-screenshot.loaded { opacity: 1; }

.node-badge {
    padding: 8px 18px; border-radius: 20px; font-size: 0.95rem; font-weight: 700;
    margin-bottom: 25px; white-space: nowrap; color: var(--text-main);
}
.admin-badge { background-color: var(--deep-blue); box-shadow: 0 6px 20px rgba(30, 58, 138, 0.6); border: 1px solid rgba(255,255,255,0.1); }
.user-badge { background-color: var(--forest-green); box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4); border: 1px solid rgba(255,255,255,0.1); }

.trail-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.mobile-svg { display: none; }
.track { fill: none; stroke-width: 4px; stroke-dasharray: 8 16; }

.admin-track { stroke: var(--deep-blue); opacity: 0.8; }
.user-track { stroke: var(--forest-green); opacity: 0.2; }

.snake {
    fill: none; stroke-width: 6px; stroke-linecap: round;
    stroke-dasharray: 20 80; animation: slither 4s linear infinite;
}
.admin-snake { stroke: var(--deep-blue); filter: drop-shadow(0 0 12px var(--deep-blue)); }
.user-snake { stroke: var(--forest-green); filter: drop-shadow(0 0 12px var(--forest-green)); }

@keyframes slither { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes glowAdmin { 50% { box-shadow: 0 0 35px rgba(30, 58, 138, 0.9); } }
@keyframes glowUser { 50% { box-shadow: 0 0 35px rgba(46, 139, 87, 0.6); } }

.admin-pulse .screenshot-wrapper { animation: glowAdmin 4s infinite; }
.user-pulse .screenshot-wrapper { animation: glowUser 4s infinite; }
.delay-2 .screenshot-wrapper { animation-delay: 1.3s; }
.delay-3 .screenshot-wrapper { animation-delay: 2.6s; }

@media (max-width: 900px) {
    .row-content { flex-direction: column; gap: 60px; padding: 40px 0; }
    .desktop-svg { display: none; }
    .mobile-svg { display: block; }
    @keyframes slither { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
}