* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9f4;
    transition: background-color 0.3s, color 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* जब JS active करेगा */
body.page-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Motion preference respect */
@media (prefers-reduced-motion: reduce) {
    body {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}

/* ===== HEADER & NAVBAR ===== */
header {
    width: 100%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    font: 0.9em sans-serif;
    transition: background-color 0.3s, color 0.3s;
    background: linear-gradient(135deg, #A5D6A7, #E8F5E9);
}

body.dark-mode nav {
    background: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* ===== DESKTOP VIEW (Navbar fixed top) ===== */
@media (min-width: 769px) {
    nav {
        top: 0;
        left: 0;
        z-index: 1000;
    }
}

.logo {
    height: 47px;
    margin-right: 10px;
}

/* 🔎 Search box */
.search-box {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 10px 0;
    min-width: 180px;
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid black;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    background: white;
    color: black;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body.dark-mode .search-box input {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #ffff;
}

#searchBtn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: black;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

body.dark-mode #searchBtn {
    color: white;
}

#searchBtn:hover {
    background: #1e3a21;
}

/* 🔎 Suggestions dropdown */
#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode #suggestions {
    background: #2d2d2d;
    color: #e0e0e0;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

/* ✅ Navbar Links */
.menu {
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    gap: 10px;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: black;
    transition: color 0.3s;
}

body.dark-mode .menu a {
    color: #e0e0e0;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #4caf50;
    transition: width 0.3s;
}

.menu a:hover {
    color: #4caf50;
}

.menu a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
    margin: 0;
    line-height: 1.2;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    min-width: 100px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    transition: max-height 0.4s ease, background-color 0.3s;
}

body.dark-mode .dropdown-menu {
    background: #2d2d2d;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.dropdown-menu li a {
    padding: 7px 20px;
    white-space: nowrap;
    font-size: 12px;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .dropdown-menu li a {
    color: #e0e0e0;
}

.dropdown-menu li a:hover {
    background: #f0f0f0;
}

body.dark-mode .dropdown-menu li a:hover {
    background: #3d3d3d;
}

/* Arrow */
.arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown.open .arrow {
    transform: rotate(180deg);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li a {
    display: inline-block;
    padding: 10px 7px;
    color: black;
    text-decoration: none;
    position: relative;
    font-size: 0.95rem;
    font-weight: bold;
    transition: color 0.3s;
}

body.dark-mode nav ul li a {
    color: #e0e0e0;
}

/* nav icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

/* Icons */
.nav-icons img {
    height: 22px;
    width: 22px;
    cursor: pointer;
    margin: 5px 10px;
    transition: filter 0.3s;
}

body.dark-mode .nav-icons img {
    filter: invert(1);
}

.nav-icons a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-icons a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #4caf50;
    transition: width 0.3s;
}

.nav-icons a:hover::after {
    width: 100%;
}

/* ✅ Responsive Layout for Small Screens */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .search-box {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
    }

    .nav-icons {
        justify-content: center;
        margin: 0;
    }
}

.hero {
    background-color: #eaf4ea;
    /* Light green banner */
    text-align: center;
    padding: 60px 20px;
}

.header {
    color: white;
    padding: 60px 20px;
    text-align: center;
    ;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

h1 {
    color: black;
}

h2 {
    color: #2e7d32;
}

p {
    line-height: 1.6;
    color: #444;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.service-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.contact {
    margin-top: 30px;
    padding: 20px;
    background-color: #e8f5e9;
    border-radius: 8px;
}

.contact a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
}

/* CSS: footer.css */
.footer {
    background: white;
    color: black;
    padding: 40px 20px 20px;
    border-top: 1.5px solid black;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    background: linear-gradient(135deg, #A5D6A7, #E8F5E9);
}

body.dark-mode .footer {
    background: #1e1e1e;
    color: #e0e0e0;
    border-top: 1.5px solid #444;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

body.dark-mode .footer-section h3 {
    color: #e0e0e0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

body.dark-mode .footer-section a {
    color: #e0e0e0;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section form {
    display: flex;
    flex-direction: column;
}

.footer-section input {
    padding: 10px;
    border: none;
    border-radius: 4px;
    border: 1px solid black;
    margin-bottom: 10px;
    background: white;
    color: black;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body.dark-mode .footer-section input {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.footer-section button {
    padding: 10px;
    border: none;
    background-color: #064E3B;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.footer-section button:hover {
    background-color: #4caf50;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons img {
    width: 34px;
    height: 34px;
    transition: filter 0.3s;
}

body.dark-mode .social-icons img {
    filter: invert(1);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    font-size: 14px;
    transition: color 0.3s;
}

body.dark-mode .footer-bottom {
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}