/* ClearGeo Unified Theme - Based on index-FINAL.html
 * Apply this to all software.cleargeo.tech pages for consistent branding
 */

:root {
    --primary-blue: #1a365d;
    --secondary-cyan: #0891b2;
    --success-green: #10b981;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

/* Fade-in animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a365d;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

#back-to-top:hover {
    background: #10b981;
    transform: translateY(-3px);
}

#back-to-top.show {
    display: flex;
}

/* Modern WHITE navigation */
nav, .navbar {
    background: white !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #1a365d;
}

nav .container,
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav .logo,
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Colored logo - NO filter */
nav .logo img,
.logo img,
.cvg-logo {
    height: 40px;
    filter: none !important;
}

nav .nav-links,
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

nav .nav-links > li {
    position: relative;
}

nav a,
.nav-links a {
    color: #1a365d !important;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

nav a:hover,
.nav-links a:hover {
    color: #10b981 !important;
}

.cta-nav,
nav .cta-btn {
    background: #1a365d !important;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.cta-nav:hover,
nav .cta-btn:hover {
    background: #10b981 !important;
}

/* Dropdown Menu (for index-FINAL compatibility) */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: var(--primary-blue) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero - Dark navy gradient */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #0f172a 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

/* Buttons - High contrast */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    font-size: 1.05rem;
    text-align: center;
}

.btn-primary {
    background: white;
    color: #1a365d !important;
}

.btn-primary:hover {
    background: #10b981;
    color: white !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1a365d !important;
}

/* Cards in content */
.card, .software-card, .api-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover, .software-card:hover, .api-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(26, 54, 93, 0.1);
    border-color: #10b981;
}

/* Card buttons - solid dark blue with white text */
.card .btn,
.software-card .software-button,
.api-card .software-button {
    background: #1a365d !important;
    color: white !important;
    font-weight: 700;
    width: 100%;
    text-align: center;
}

.card .btn:hover,
.software-card .software-button:hover,
.api-card .software-button:hover {
    background: #10b981 !important;
}

/* Footer - Dark with green accents */
footer {
    background: #0f172a;
    color: white;
    padding: 60px 2rem 30px;
    margin-top: 80px;
}

footer h4 {
    color: #10b981;
    margin-bottom: 20px;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #10b981;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav .nav-links,
    .nav-links {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 1rem;
    }
}
