/* === CSS VARIABLES (THEMES) === */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient: linear-gradient(to right bottom, #e2f1ea, #ffffff);
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --primary-green: #27825c;
    --primary-green-hover: #1e6648;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-main: #0a192f; 
    --bg-secondary: #112240; 
    --bg-gradient: linear-gradient(to right bottom, #0a192f, #112240);
    --text-main: #ccd6f6; 
    --text-muted: #8892b0;
    --card-bg: #112240;
    --border-color: #233554;
    --nav-bg: rgba(10, 25, 47, 0.95);
}

/* === RESET & GLOBAL === */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    overflow-x: hidden; 
    transition: background-color 0.4s ease, color 0.4s ease; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

ul { 
    list-style: none; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 5%; 
}

h1, h2, h3, h4 { 
    color: var(--text-main); 
}

.highlight { 
    color: var(--primary-green); 
}

/* === BUTTONS === */
.btn { 
    display: inline-block; 
    padding: 12px 28px; 
    border-radius: 6px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: var(--transition); 
    border: 2px solid transparent; 
}

.btn-primary { 
    background-color: var(--primary-green); 
    color: white !important; 
}

.btn-primary:hover { 
    background-color: var(--primary-green-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 15px -3px rgba(39, 130, 92, 0.3); 
}

.btn-outline { 
    border-color: var(--text-muted); 
    color: var(--text-main); 
    background: transparent; 
}

.btn-outline:hover { 
    border-color: var(--primary-green); 
    color: var(--primary-green); 
}

/* === ANIMATIONS (JS Triggered) === */
.hidden { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s ease; 
}

.show { 
    opacity: 1; 
    transform: translateY(0); 
}

/* === HEADER & NAVBAR === */
header { 
    padding: 20px 0; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    background: var(--nav-bg); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border-color); 
    transition: background-color 0.4s ease; 
}

.wavy-logo { 
    display: inline-flex; 
    gap: 8px; 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--text-main); 
    cursor: pointer; 
}

.wavy-logo span { 
    display: inline-block; 
    animation: wave-text 2s infinite ease-in-out; 
    animation-delay: calc(0.1s * var(--i)); 
    transition: var(--transition); 
}

@keyframes wave-text { 
    0%, 40%, 100% { 
        transform: translateY(0); 
    } 
    20% { 
        transform: translateY(-8px); 
        color: var(--primary-green); 
    } 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-links { 
    display: flex; 
    gap: 2rem; 
}

.nav-links a { 
    font-weight: 500; 
    color: var(--text-muted); 
    transition: var(--transition); 
}

.nav-links a:hover { 
    color: var(--primary-green); 
}

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.icon-btn { 
    background: transparent; 
    border: none; 
    font-size: 1.4rem; 
    color: var(--text-main); 
    cursor: pointer; 
    transition: var(--transition); 
}

.icon-btn:hover { 
    color: var(--primary-green); 
}

.mobile-menu-btn { 
    display: none; 
}

/* === FOOTER === */
footer { 
    margin: 0%; 
    background: var(--bg-main); 
    border-top: 1px solid var(--border-color); 
    color: var(--text-muted); 
    padding: 10px 0; 
    text-align: center; 
}

/* === DOWNLOAD BUTTON PROGRESS ANIMATION === */
.progress-btn {
    position: relative;
    overflow: hidden; /* बाहिर गएको रङ लुकाउन */
}

.progress-btn .btn-text {
    position: relative;
    z-index: 2; /* Text लाई अगाडि देखाउन */
}

.progress-btn .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; /* सुरुमा 0% हुन्छ */
    background-color: rgba(255, 255, 255, 0.3); /* सेतो रङको पारदर्शी लेयर */
    z-index: 1;
    transition: width 0.1s linear; /* सरर्र भरिने Effect */
}

/* डाउनलोड भइरहेको बेला बटन थिच्न नमिल्ने बनाउन */
.progress-btn.loading {
    pointer-events: none; 
    cursor: wait;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px; /* यदि WhatsApp बटन पनि राख्ने हो भने यसलाई right: 100px बनाइदेऊ */
    background-color: var(--primary-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0; /* सुरुमा लुकाउने */
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top-btn.show {
    opacity: 1; /* तल पुगेपछि देखाउने */
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-5px);
}
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
}