/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Poppins:wght@400;500;600&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #80deea);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

/* Headings use Montserrat */
h1,
h2,
h3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

/* About & Contact Sections */
.about,
.contact {
    max-width: 700px;
    margin: 60px auto;
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.about h2,
.contact h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #00796b;
}

.about p,
.contact p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-links a {
    display: inline-block;
    margin: 10px 15px;
    padding: 12px 25px;
    border-radius: 25px;
    background: #00796b; /* Same as search button */
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.contact-links a:hover {
    background: #004d40;
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 22px;
    font-weight: 600;
    color: #00796b;
    font-family: "Montserrat", sans-serif;
}

.nav-links li {
    display: inline;
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00796b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .search-box input {
        width: 240px;
        margin-bottom: 10px;
    }

    .search-box button {
        width: 120px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    .search-box input {
        width: 180px;
        padding: 10px 15px;
    }

    .search-box button {
        padding: 10px 15px;
        font-size: 14px;
    }

    .results {
        max-width: 90%;
        padding: 15px;
    }
}

/* Dark mode toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "🌞";
    font-size: 14px;
    left: 6px;
    bottom: 4px;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: #4facfe;
}

input:checked+.slider:before {
    transform: translateX(28px);
    content: "🌙";
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(to right, #4dd0e1, #26c6da);
    color: white;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    text-align: center;
    margin: 40px 0;
}

.search-box input {
    width: 360px;
    padding: 14px 22px;
    border-radius: 25px;
    border: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 16px;
}

.search-box button {
    padding: 14px 30px;
    margin-left: 10px;
    border: none;
    border-radius: 25px;
    background: #00796b;
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, background 0.3s;
}

.search-box button:hover {
    background: #004d40;
    transform: scale(1.05);
}

#geoBtn {
    padding: 12px 28px;
    margin-left: 10px;
    border: none;
    border-radius: 25px;
    background: #00796b;
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, background 0.3s;
}

#geoBtn:hover {
    background: #004d40;
    transform: scale(1.05);
}

/* Results Card */
.results {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.results img {
    width: 120px;
    border-radius: 12px;
    margin: 15px 0;
}

.results h2 {
    margin: 12px 0;
    font-size: 24px;
    color: #00796b;
}

.results p {
    font-size: 15px;
    margin: 6px 0;
}

/* Footer */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 15px;
    background: #00796b;
    color: #fff;
    font-size: 14px;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #121212, #1f1f1f);
    color: #f1f1f1;
}

body.dark-mode .navbar {
    background: rgba(34, 34, 34, 0.9);
}

body.dark-mode .results {
    background: rgba(40, 40, 40, 0.9);
}

body.dark-mode .search-box input {
    background: #333;
    color: #f1f1f1;
}

body.dark-mode .footer {
    background: #222;
}

body.dark-mode .nav-links a {
    color: #f1f1f1;
}

body.dark-mode .nav-links a:hover {
    color: #4facfe;
}

body.dark-mode .about,
body.dark-mode .contact {
    background: rgba(40, 40, 40, 0.9);
}

body.dark-mode .about h2,
body.dark-mode .contact h2 {
    color: #4facfe;
}