/* Shared styles consolidated from index.html, contact/index.html, and Privacy/index.html */

/* ==== Base and Variables (from index) ==== */
* {
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --dark: #0f172a;
    --light: #f1f5f9;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --card-bg: rgba(30, 41, 59, 0.85);
    --border-color: rgba(148, 163, 184, 0.3);
}

/* Light Theme Variables */
[data-bs-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(148, 163, 184, 0.4);
}

/* Light theme specific overrides */
[data-bs-theme="light"] body {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
}

[data-bs-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .glass-card:hover {
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

[data-bs-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(203, 213, 225, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .navbar-brand {
    color: #0f172a !important;
}

[data-bs-theme="light"] .navbar-nav .nav-link {
    color: #1e293b !important;
}

[data-bs-theme="light"] .navbar-nav .nav-link:hover {
    color: #2563eb !important;
}

[data-bs-theme="light"] .btn-primary-custom {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

[data-bs-theme="light"] .btn-secondary-custom {
    background: rgba(15, 23, 42, 0.95);
    color: white;
}

[data-bs-theme="light"] footer {
    background: rgba(248, 250, 252, 0.98);
    border-top: 1px solid rgba(203, 213, 225, 0.6);
}

[data-bs-theme="light"] footer a {
    color: #475569;
}

[data-bs-theme="light"] footer a:hover {
    color: #2563eb;
}

[data-bs-theme="light"] footer h5 {
    color: #0f172a;
}

[data-bs-theme="light"] .lead {
    color: #475569 !important;
}

[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3 {
    color: #0f172a !important;
}

[data-bs-theme="light"] p {
    color: #334155 !important;
}

[data-bs-theme="light"] .display-1,
[data-bs-theme="light"] .display-2 {
    color: #0f172a !important;
}

[data-bs-theme="light"] .gradient-icon {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="light"] .stat-number {
    color: #0f172a;
}

[data-bs-theme="light"] small {
    color: #64748b !important;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.theme-toggle button:hover {
    transform: scale(1.1);
}

.theme-toggle button.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 20px;
    color: white;
}

/* Animated Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(50%) translateY(50%) rotate(360deg); }
}

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

.hero .parallax-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 400px at 80% -10%, rgba(37,99,235,.25), transparent),
                radial-gradient(500px 300px at -10% 80%, rgba(124,58,237,.18), transparent);
    will-change: transform;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Glass Card Effect */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.4);
    border-color: rgba(37, 99, 235, 0.6);
}

.glass-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-secondary);
}

/* Feature icons with modern look */
.glass-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #60a5fa;
}

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

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6);
}

.btn-secondary-custom {
    background: rgba(148, 163, 184, 0.2);
    border: 2px solid rgba(148, 163, 184, 0.3);
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: white;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* Screenshot Gallery */
.screenshot {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.screenshot:hover { transform: scale(1.03); }

/* Stats Counter */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar Improvements */
.navbar { transition: all 0.3s ease; }
.navbar-brand { font-size: 1.5rem; font-weight: 700; }
.navbar-nav .nav-link { color: #e2e8f0 !important; font-weight: 500; padding: 0.5rem 1rem !important; transition: all 0.2s ease; }
.navbar-nav .nav-link:hover { color: #60a5fa !important; transform: translateY(-2px); }

/* Subtle button micro-interactions */
.btn { transform: translateZ(0); }
.btn:active { transform: translateY(1px); }
.btn i { transition: transform .2s ease; }
.btn:hover i { transform: translateX(2px); }

/* Footer */
footer { background: rgba(15, 23, 42, 0.95); border-top: 1px solid rgba(148, 163, 184, 0.3); }
footer a { color: #94a3b8; text-decoration: none; transition: color 0.2s ease; }
footer a:hover { color: #60a5fa; }
footer h5 { color: #f1f5f9; font-weight: 600; margin-bottom: 1rem; }

/* Scroll Animations */
.fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* Better button accessibility */
.btn-primary-custom:focus,
.btn-secondary-custom:focus { outline: 2px solid #60a5fa; outline-offset: 2px; }

.screenshot-container { position: relative; }
.screenshot-container h5 { color: #ffffff; font-weight: 600; }
.screenshot-container p { color: #cbd5e1; }

.glass-card ul li { color: #e2e8f0; margin-bottom: 0.75rem; }
.glass-card ul li i { color: #10b981; }

a { color: #60a5fa; transition: color 0.2s ease; }
a:hover { color: #93c5fd; }

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

.small, small { color: #94a3b8; }
html { scroll-behavior: smooth; }

@supports (display: grid) {
    .feature-grid { display: grid; gap: 1.5rem; }
}

/* Scroll to top button */
#scrollTopBtn { position: fixed; right: 20px; bottom: 24px; z-index: 1050; display: none; }

/* Testimonials */
.testimonials { background: rgba(15, 23, 42, 0.5); }
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; color: var(--text-primary); }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ==== Contact/Privacy Specific Enhancements consolidated ==== */
.navbar.scrolled { background: rgba(255, 255, 255, 0.2); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }

.contact-section, .privacy-section { padding: 120px 0 80px; }
.section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5); }

.contact-form { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 2rem; }
.form-control { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; color: var(--text-primary); padding: 12px 16px; transition: all 0.3s ease; }
.form-control:focus { background: rgba(255, 255, 255, 0.15); border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25); color: var(--text-primary); }
.form-control::placeholder { color: #94a3b8; }

.btn-submit { background: linear-gradient(135deg, #3b82f6, #8b5cf6); border: none; padding: 12px 30px; border-radius: 50px; color: white; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); color: white; }

.contact-info-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 2rem; text-align: center; transition: all 0.3s ease; height: 100%; }
.contact-info-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
.contact-icon { font-size: 2.5rem; color: #3b82f6; margin-bottom: 1rem; }

.footer { background: rgba(0, 0, 0, 0.2); padding: 3rem 0 2rem; margin-top: 5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: #3b82f6; }

[data-bs-theme="light"] .gradient-text { color: #000000; }
[data-bs-theme="light"] .privacy-content p { color: #1a1a1a !important; font-weight: 500; }
[data-bs-theme="light"] .privacy-content ul li { color: #1a1a1a !important; font-weight: 500; }
[data-bs-theme="light"] .privacy-content strong { color: #000000 !important; font-weight: 700; }
[data-bs-theme="light"] .navbar { background: rgba(255, 255, 255, 0.95) !important; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
[data-bs-theme="light"] .navbar-brand { color: #000000 !important; }
[data-bs-theme="light"] .navbar-nav .nav-link { color: #1a1a1a !important; }
[data-bs-theme="light"] .navbar-nav .nav-link:hover { color: #2563eb !important; }
[data-bs-theme="light"] .navbar-nav .nav-link.active { color: #2563eb !important; font-weight: 600; }

.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2.fw-bold { color: var(--text-primary); margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); -webkit-text-stroke: 0.5px rgba(0,0,0,0.5); }
.privacy-content h3.fw-bold { color: var(--text-primary); margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 1.2rem; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); -webkit-text-stroke: 0.5px rgba(0,0,0,0.5); }
.privacy-content p { margin-bottom: 1rem; color: var(--text-secondary); font-weight: 400; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); -webkit-text-stroke: 0.5px rgba(0,0,0,0.5); }
.privacy-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.privacy-content ul li { margin-bottom: 0.5rem; color: var(--text-secondary); text-shadow: 1px 1px 2px rgba(0,0,0,0.8); -webkit-text-stroke: 0.5px rgba(0,0,0,0.5); }
.privacy-content strong { color: var(--text-primary); font-weight: 700; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); -webkit-text-stroke: 0.5px rgba(0,0,0,0.5); }

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .footer-links { flex-direction: column; align-items: center; gap: 1rem; }
}


