@import url('https://unpkg.com/aos@next/dist/aos.css');

:root {
    --primary-color: #FF6F00;
    --secondary-color: #0D243F;
    --accent-color: #FFC107;
    --dark-accent: #0a1c30; /* For darker hover states or elements */
    --text-color: #4A4A4A; /* Main body text */
    --light-text-color: #f8f9fa; /* Text on dark backgrounds */
    --bg-color: #FFFFFF;
    --light-gray: #f9f9f9;
    --medium-gray: #e9ecef; /* Borders, subtle backgrounds */
    --border-radius: 8px;
    --box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
    --font-primary: 'Poppins', 'Mukta', sans-serif;
    --navbar-height: 70px;
}

/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-primary);
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden; /* Prevent body horizontal scroll */
    padding-top: var(--navbar-height); /* Account for fixed navbar */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.3;
}
h1 { font-size: 3rem; /* Adjusted for impact */ }
h2 { font-size: 2.4rem; text-align: center; margin-bottom: 2.5rem; position: relative; }
h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 12px auto 0;
    border-radius: 2px;
}
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    font-size: 1rem; /* Standard paragraph size */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: #e66000; /* Darker primary for hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius); /* Default border radius for images */
}

ul { list-style: none; }

/* Section Styling */
.content-section {
    padding: 80px 0;
}
#about, #services, #faq { background-color: var(--bg-color); }
#team, #testimonials, #contact-form-section { background-color: var(--light-gray); }

.parallax-section {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    color: var(--light-text-color);
}
.parallax-section .section-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(13, 36, 63, 0.7); /* Overlay for readability */
    z-index: 1;
}
.parallax-section .relative-container {
    position: relative;
    z-index: 2;
}
.parallax-section h2, .parallax-section .section-subtitle {
    color: var(--light-text-color);
}
.parallax-section h2::after {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #e66000;
    border-color: #e66000;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 15px rgba(255, 111, 0, 0.3);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-3px) scale(1.03);
}
.btn-dashboard {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    color: var(--dark-accent);
    padding: 8px 12px;
    font-size: 0.75rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    flex-shrink: 0;
}
.btn-dashboard:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 15px rgba(255, 193, 7, 0.3);
}
.btn-submit {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-radius: var(--border-radius);
}
.btn-submit:hover {
    background-color: var(--dark-accent);
    transform: translateY(-2px);
}
.btn-youtube {
    background-color: #FF0000;
    color: white;
    border-color: #FF0000;
}
.btn-youtube:hover {
    background-color: #D40000;
    border-color: #D40000;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 15px rgba(255, 0, 0, 0.3);
}

/* Preloader */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded { opacity: 0; visibility: hidden; }
.preloader .spinner {
    width: 50px; height: 50px;
    border: 5px solid var(--medium-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
.preloader p { color: var(--secondary-color); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Navbar */
.navbar {
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0; left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, height 0.3s ease-in-out;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
}
.navbar.scrolled {
    background-color: rgba(255,255,255,0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: 15px;
}
.navbar .logo:hover { transform: scale(1.03) rotate(-2deg); }
.navbar .logo span { color: var(--primary-color); }

.navbar .nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 100px;
    overflow-x: auto;
    overflow-y: visible; /* CRITICAL FOR DESKTOP DROPDOWNS */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--medium-gray) transparent;
    /* position: relative; */ /* May not be needed if li.dropdown is correctly positioned */
}
.navbar .nav-links::-webkit-scrollbar { height: 6px; }
.navbar .nav-links::-webkit-scrollbar-track { background: transparent; }
.navbar .nav-links::-webkit-scrollbar-thumb { background-color: var(--medium-gray); border-radius: 3px; }

.navbar .nav-links li {
    margin: 0 5px;
    position: relative; /* ESSENTIAL for absolute dropdown positioning */
    flex-shrink: 0;
}

.navbar .nav-links a.nav-item {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 6px;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
    font-size: 0.8rem;
    white-space: nowrap;
    display: block;
}
.navbar .nav-links a.nav-item::after {
    content: ''; position: absolute; bottom: -3px; left: 50%;
    transform: translateX(-50%); width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.navbar .nav-links a.nav-item:hover,
.navbar .nav-links a.nav-item.active-link { color: var(--primary-color); }
.navbar .nav-links a.nav-item:hover::after,
.navbar .nav-links a.nav-item.active-link::after { width: 100%; }

.dropdown .dropbtn .fa-chevron-down {
    margin-left: 6px;
    font-size: 0.75em;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.dropdown-content {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%; /* Position below the li */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Initial offset */
    background-color: #fff;
    min-width: 220px;
    box-shadow: var(--box-shadow-hover);
    z-index: 1001; /* High z-index to be on top */
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 10px 0;
    border-top: 3px solid var(--primary-color);
    transform-origin: top center;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 769px) { /* Desktop hover logic */
    .navbar .nav-links li.dropdown:hover > .dropbtn .fa-chevron-down { /* Target chevron within hovered dropdown li */
        transform: rotate(180deg);
    }
    .navbar .nav-links li.dropdown:hover > .dropdown-content { /* Target direct child dropdown-content */
        display: block; /* Or use visibility/opacity if preferred and JS handles display */
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0); /* Final position */
    }
}

.dropdown-content a {
    color: var(--secondary-color); padding: 12px 20px; display: block;
    font-size: 0.95rem; white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.dropdown-content a:hover { background-color: var(--primary-color); color: white; padding-left: 25px; }
.dropdown-content a::after { display: none; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}
.nav-actions .nepal-time-date {
    font-size: 0.75rem;
    color: var(--text-color); white-space: nowrap;
    background-color: var(--light-gray); padding: 4px 7px;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    flex-shrink: 0;
    display: flex; /* Default visible */
    align-items: center;
}
.nav-actions .nepal-time-date .time { font-weight: 600; color: var(--primary-color); }

.nav-actions .social-links {
    display: flex; /* Default visible */
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.nav-actions .social-links a {
    color: var(--secondary-color); margin: 0 3px;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-actions .social-links a:hover { color: var(--primary-color); transform: translateY(-2px) scale(1.1); }

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.6rem; color: var(--secondary-color); cursor: pointer; padding: 5px;
    flex-shrink: 0;
}

/* Hero Section */
.hero-section {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    position: relative;
    color: var(--light-text-color);
    min-height: calc(100vh - var(--navbar-height));
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(135deg, rgba(13, 36, 63, 0.8) 0%, rgba(255, 111, 0, 0.5) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2;}
.hero-section h1 { font-size: 3.8rem; color: var(--light-text-color); margin-bottom: 1.2rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
.hero-section .tagline { font-size: 1.7rem; margin-bottom: 1.8rem; color: var(--accent-color); font-weight: 500; }
.hero-section p:not(.tagline) { font-size: 1.15rem; max-width: 750px; margin: 0 auto 2.5rem auto; opacity: 0.9; }
.hero-scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;}
.hero-scroll-down a { color: var(--light-text-color); font-size: 1.8rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* About Us Section */
.about-section .about-content { display: flex; align-items: center; gap: 50px; }
.about-section .about-text { flex: 1; }
.about-section .about-text .btn-secondary { margin-top: 1rem; }
.about-section .about-image { flex-basis: 45%; max-width: 500px; perspective: 1000px; }
.about-section .about-image img { box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); }
.about-section .about-image:hover img { transform: rotateY(-10deg) rotateX(5deg) scale(1.05); }

/* Team Section */
.team-section .section-subtitle { max-width: 650px; margin-bottom: 3rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px; }
.team-member {
    background: var(--bg-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow);
    text-align: center; overflow: hidden; transition: transform 0.35s ease, box-shadow 0.35s ease; position: relative;
}
.team-member:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--box-shadow-hover); }
.team-member-img { position: relative; overflow: hidden; border-bottom: 4px solid var(--primary-color); }
.team-member-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform 0.4s ease, filter 0.4s ease; }
.team-member:hover .team-member-img img { transform: scale(1.1); filter: saturate(1.1); }
.team-member-social {
    position: absolute; top: 10px; right: -50px;
    display: flex; flex-direction: column; gap: 8px;
    transition: right 0.3s ease-in-out;
}
.team-member:hover .team-member-social { right: 10px; }
.team-member-social a {
    background-color: var(--primary-color); color: white; width: 35px; height: 35px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 0.9rem; transition: background-color 0.3s ease, transform 0.3s ease;
}
.team-member-social a:hover { background-color: var(--secondary-color); transform: scale(1.1); }
.team-member-info { padding: 25px 20px; }
.team-member-info h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.team-member-info p { font-size: 0.95rem; color: var(--primary-color); font-weight: 500; margin-bottom: 0; }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card {
    background: var(--light-gray); padding: 30px 25px; border-radius: var(--border-radius);
    text-align: center; box-shadow: var(--box-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex; flex-direction: column; align-items: center;
}
.service-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--box-shadow-hover); }
.service-icon-wrapper {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 1.5rem; transition: transform 0.3s ease;
}
.service-card:hover .service-icon-wrapper { transform: scale(1.1) rotate(15deg); }
.service-icon { font-size: 2.5rem; color: white; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }

/* Testimonials Section */
.testimonials-section { padding-bottom: 100px; }
.testimonial-slider { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-item {
    background: var(--bg-color); padding: 30px; border-radius: var(--border-radius);
    box-shadow: var(--box-shadow); text-align: center;
    display: flex; flex-direction: column; align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-item:hover { transform: translateY(-8px); box-shadow: var(--box-shadow-hover); }
.testimonial-avatar {
    width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
    margin-bottom: 1.5rem; border: 4px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255,111,0,0.3);
}
.testimonial-quote {
    font-size: 1.05rem; font-style: italic; color: #555; margin-bottom: 1rem;
    position: relative; padding: 0 20px;
}
.testimonial-quote::before, .testimonial-quote::after { content: '"'; font-size: 2rem; color: var(--primary-color); position: absolute; opacity: 0.8; }
.testimonial-quote::before { top: -5px; left: 0; }
.testimonial-quote::after { bottom: -15px; right: 0; }
.testimonial-author { font-weight: 600; color: var(--secondary-color); font-size: 0.95rem; }

/* YouTube Section */
.youtube-section { color: var(--light-text-color); text-align: center; }
.youtube-section h2, .youtube-section .section-subtitle { color: var(--light-text-color); }
.youtube-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin: 3rem 0; }
.stat-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
    padding: 25px 35px; border-radius: var(--border-radius); min-width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(255,255,255,0.2);
}
.stat-card:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.stat-card .youtube-icon, .stat-card .views-icon, .stat-card .videos-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.stat-card .youtube-icon { color: #FF0000; } .stat-card .views-icon { color: var(--accent-color); } .stat-card .videos-icon { color: #A0C4FF; }
.stat-card h3 { font-size: 2rem; color: var(--light-text-color); margin-bottom: 0.5rem; }
.stat-card p { font-size: 0.9rem; color: var(--light-gray); margin-bottom: 0; }

/* FAQ Section */
.faq-section .faq-accordion { max-width: 800px; margin: 2rem auto 0; }
.faq-item { border-bottom: 1px solid var(--medium-gray); margin-bottom: 15px; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    background: none; border: none; width: 100%; text-align: left;
    padding: 18px 0; font-size: 1.15rem; font-weight: 500;
    color: var(--secondary-color); cursor: pointer; position: relative; outline: none;
    transition: color 0.3s ease;
}
.faq-question::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    transition: transform 0.3s ease; font-size: 0.9rem; color: var(--primary-color);
}
.faq-item.active .faq-question { color: var(--primary-color); }
.faq-item.active .faq-question::after { transform: translateY(-50%) rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.4s ease; }
.faq-answer p { padding: 0 0 18px 0; font-size: 0.95rem; color: #555; margin-bottom:0;}
.faq-item.active .faq-answer { padding-top: 5px;}

/* Contact Form Section */
.contact-form-section form {
    max-width: 700px; margin: 2.5rem auto 0 auto; background: var(--bg-color);
    padding: 35px; border-radius: var(--border-radius); box-shadow: var(--box-shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--secondary-color); font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 15px; border: 1px solid var(--medium-gray);
    border-radius: 5px; font-family: var(--font-primary); font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.2);
    outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px;}
#form-status { margin-top: 1.5rem; text-align: center; font-weight: 500; min-height: 24px; }

/* Footer */
.footer {
    background-color: var(--dark-accent);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: start; /* Align columns to the top */
}
.footer-about h3 {
    color: var(--light-text-color);
    font-size: 1.8rem;
}
.footer-about h3 span {
    color: var(--primary-color);
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
}
.footer-links h4, .footer-contact h4 {
    color: var(--light-text-color); margin-bottom: 1rem; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-color);
    display: block;
    padding-bottom: 5px;
    width: fit-content; /* Underline only as wide as text */
}
.footer-links ul {
    padding-left: 0;
    margin-top: 0;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.footer-contact p i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}
.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.footer-social-links {
    margin-top: 1rem;
}
.footer-social-links a {
    color: rgba(255,255,255,0.7); margin: 0 10px; font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Go to Top Button */
#goToTopBtn {
    position: fixed; bottom: 30px; right: 30px; z-index: 998;
    border: none; outline: none; background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white; cursor: pointer; width: 50px; height: 50px; border-radius: 50%;
    font-size: 1.1rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: none; /* JS will show it */
    justify-content: center; align-items: center;
}
#goToTopBtn:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 20px rgba(255,111,0,0.3); }

/* Responsive Design Adjustments */
@media (max-width: 1024px) { /* Tablet Landscape & smaller desktops */
    .navbar .logo { font-size: 1.5rem; margin-right: 10px; }
    .navbar .nav-links a.nav-item { font-size: 0.75rem; padding: 8px 4px; }
    .navbar .nav-links li { margin: 0 3px; }
    .nav-actions { gap: 8px; margin-left: 10px; }
    /* Nepal Time/Date remains visible by default from main style */
    .nav-actions .btn-dashboard { padding: 7px 10px; font-size: 0.7rem; }
    .nav-actions .social-links a { font-size: 0.85rem; margin: 0 1px; }
}

@media (max-width: 768px) { /* Tablet Portrait and Mobile */
    :root { --navbar-height: 60px; }
    body { padding-top: var(--navbar-height); }

    .navbar .logo {
        font-size: 1.4rem;
        margin-right: auto;
        margin-left: 0;
    }

    .navbar .nav-links { /* Mobile slide-out menu */
        display: none;
        flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: rgba(255,255,255,0.98); backdrop-filter: blur(5px);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding-bottom: 10px; max-height: 0;
        flex-grow: 0; flex-shrink: 1; min-width: auto;
        overflow-x: hidden;
        overflow-y: auto; /* Vertical scroll for long mobile menu */
        transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s ease; opacity: 0;
    }
    .navbar .nav-links.active { display: flex; max-height: calc(100vh - var(--navbar-height)); opacity: 1; }
    .navbar .nav-links li { margin: 0; width: 100%; flex-shrink: 1; }
    .navbar .nav-links a.nav-item {
        display: block; padding: 15px 25px; text-align: left;
        border-bottom: 1px solid var(--medium-gray);
        font-size: 0.95rem;
        white-space: normal; /* Allow wrapping in mobile menu */
    }
    .navbar .nav-links a.nav-item::after { display: none; }
    .navbar .nav-links a.nav-item:hover,
    .navbar .nav-links a.nav-item.active-link { background-color: var(--primary-color); color: white !important; }

    .dropdown-content { /* Mobile nested dropdown */
        position: static;
        box-shadow: none;
        border-radius: 0;
        background-color: #f0f0f0;
        margin-top: 0;
        display: none;
        transform: none;
        opacity: 1; visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        border-top: none;
        min-width: 100%;
    }
    .navbar .nav-links.active li.dropdown.open > .dropdown-content {
        display: block; /* Or ensure JS handles this if max-height alone is used */
        max-height: 300px;
    }
    .dropdown-content a {
        padding-left: 40px;
    }

    .nav-actions {
        gap: 8px;
        margin-left: 0;
    }
    .nav-actions .social-links,
    .nav-actions .nepal-time-date {
        display: none !important; /* Hide on mobile top bar */
    }
    .nav-actions .btn-dashboard {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .menu-toggle {
        display: flex;
        align-items:center;
        justify-content:center;
        width:35px;
        height:35px;
        margin-left: 8px;
    }

    .hero-section { min-height: calc(100vh - var(--navbar-height)); }
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.4rem; }
    .hero-section h1 { font-size: 2.8rem; } .hero-section .tagline { font-size: 1.3rem; }
    .content-section { padding: 60px 0; }
    .about-section .about-content { flex-direction: column; }
    .about-section .about-image { margin-top: 30px; max-width: 85%; }
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .youtube-stats { flex-direction: column; gap: 20px; align-items: center; }
    .stat-card { width: 80%; max-width: 300px; }
    #goToTopBtn { right: 20px; bottom: 20px; width: 45px; height: 45px; font-size: 1rem; }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .footer-about { text-align: center; }
    .footer-links h4, .footer-contact h4 {
        border-bottom: none;
        padding-bottom: 0;
        width: auto;
        margin: 0 auto 0.5rem auto;
        text-align: center;
    }
     .footer-links ul { text-align: center; }
    .footer-contact p { justify-content: center; }
}

@media (max-width: 480px) { /* Small Mobile */
    .navbar .logo { font-size: 1.2rem; }
    .nav-actions .btn-dashboard { font-size: 0.65rem; padding: 5px 8px; }
    .menu-toggle { width: 30px; height: 30px; font-size: 1.4rem; margin-left: 5px; }

    h1 { font-size: 2.2rem; }
    .hero-section h1 { font-size: 2.4rem; }
    .hero-section .tagline { font-size: 1.1rem; }
    .team-grid, .services-grid, .testimonial-slider { grid-template-columns: 1fr; }
    .form-group input, .form-group textarea { padding: 10px 12px; }
}s { gap: 8px; margin-left: 10px; }
    /* .nav-actions .nepal-time-date { display: none; } */ /* Time/Date IS VISIBLE here by default CSS */
    .nav-actions .btn-dashboard { padding: 7px 10px; font-size: 0.7rem; }
    .nav-actions .social-links a { font-size: 0.85rem; margin: 0 1px; }
}

/* Tablet Portrait and Mobile */
@media (max-width: 768px) {
    :root { --navbar-height: 60px; }
    body { padding-top: var(--navbar-height); }

    .navbar .logo {
        font-size: 1.4rem; /* Further compact */
        margin-right: auto; /* Pushes actions and toggle to the far right */
        margin-left: 0;
    }

    /* Mobile slide-out menu (ul.nav-links) */
    .navbar .nav-links {
        display: none; /* Hidden by default, JS toggles */
        flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: rgba(255,255,255,0.98); backdrop-filter: blur(5px);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding-bottom: 10px; max-height: 0;
        /* Reset desktop scroll/flex properties */
        flex-grow: 0; flex-shrink: 1; min-width: auto;
        overflow-x: hidden; /* No horizontal scroll for mobile dropdown menu */
        overflow-y: auto; /* Allow vertical scroll if many items */
        transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s ease; opacity: 0;
    }
    .navbar .nav-links.active { display: flex; max-height: calc(100vh - var(--navbar-height)); opacity: 1; }
    .navbar .nav-links li { margin: 0; width: 100%; flex-shrink: 1; } /* Allow li to shrink if content too long */
    .navbar .nav-links a.nav-item {
        display: block; padding: 15px 25px; text-align: left;
        border-bottom: 1px solid var(--medium-gray);
        font-size: 0.95rem; /* Restore readable font size for mobile menu */
        white-space: normal; /* Allow wrapping for long item names in mobile menu */
    }
    .navbar .nav-links a.nav-item::after { display: none; } /* No underline hover effect for mobile list */
    .navbar .nav-links a.nav-item:hover,
    .navbar .nav-links a.nav-item.active-link { background-color: var(--primary-color); color: white !important; }

    /* Mobile Dropdown Content within the slide-out menu */
    .dropdown-content {
        position: static; box-shadow: none; border-radius: 0; background-color: #f0f0f0;
        margin-top: 0; display: none; transform: none; opacity: 1; visibility: visible;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; border-top: none;
    }
    .navbar .nav-links.active .dropdown.open .dropdown-content {
        display: block; max-height: 300px; /* Or enough for content */
    }
    .dropdown-content a { padding-left: 40px; }


    .nav-actions {
        gap: 8px; /* Adjust gap for mobile items */
        margin-left: 0; /* Reset desktop margin */
    }
    /* IMPORTANT: Hide navbar social links and time/date on mobile top bar */
    .nav-actions .social-links,
    .nav-actions .nepal-time-date {
        display: none !important;
    }
    .nav-actions .btn-dashboard {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .menu-toggle {
        display: flex; /* Show menu toggle on mobile */
        align-items:center;
        justify-content:center;
        width:35px;
        height:35px;
        margin-left: 8px; /* Space from dashboard button */
    }

    /* Other General Mobile Adjustments */
    .hero-section { min-height: calc(100vh - var(--navbar-height)); }
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.4rem; }
    .hero-section h1 { font-size: 2.8rem; } .hero-section .tagline { font-size: 1.3rem; }
    .content-section { padding: 60px 0; }
    .about-section .about-content { flex-direction: column; }
    .about-section .about-image { margin-top: 30px; max-width: 85%; }
    .team-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .youtube-stats { flex-direction: column; gap: 20px; align-items: center; }
    .stat-card { width: 80%; max-width: 300px; }
    #goToTopBtn { right: 20px; bottom: 20px; width: 45px; height: 45px; font-size: 1rem; }
    .footer-content {
        grid-template-columns: 1fr; /* Force single column on mobile */
        text-align: center; /* Center content of footer columns on mobile */
    }
    .footer-contact p {
        justify-content: center; /* Center icon and text within the <p> tag */
    }
    .footer-links h4, .footer-contact h4 {
        /* display: block; */ /* Already block */
        border-bottom: none; /* Remove border for centered titles if preferred */
        padding-bottom: 0;
        margin-bottom: 0.8rem; /* Adjust spacing */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .navbar .logo { font-size: 1.2rem; }
    .nav-actions .btn-dashboard { font-size: 0.65rem; padding: 5px 8px; }
    .menu-toggle { width: 30px; height: 30px; font-size: 1.4rem; margin-left: 5px; }

    h1 { font-size: 2.2rem; }
    .hero-section h1 { font-size: 2.4rem; }
    .hero-section .tagline { font-size: 1.1rem; }
    .team-grid, .services-grid, .testimonial-slider { grid-template-columns: 1fr; }
    .form-group input, .form-group textarea { padding: 10px 12px; }
}