@font-face {
    font-family: 'Algerian';
    src: url('Algerian Regular.ttf') format('truetype');
}

/* GLOBAL SETTINGS */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #f3f3f7;
    overflow-x: hidden; /* Prevents side-scrolling on mobile */
}

html {
    scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(20, 17, 44, 0.8);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.logo {
    font-size: 26px;
    color: #ffd36b;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
} 

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffd36b;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    text-align: center;
    padding: 200px 20px 100px;
    position: relative;
    background-image: url('solar.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

/* SOLAR SYSTEM BACKGROUND CONTAINER */
.solar-system-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero h1 {
    font-family: 'Algerian', serif;
    font-size: 80px;
    color: #ffd36b;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.35);
}

.hero h3 {
    font-size: 26px;
    color: white;
    margin-bottom: 12px;
}

.hero p {
    max-width: 550px;
    margin: 20px auto;
    font-size: 19px;
    opacity: 0.95;
}

.consult-btn {
    margin-top: 40px;
    padding: 15px 40px;
    background: #ffd36b;
    color: #3a2400;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
    font-weight: bold;
}

.consult-btn:hover {
    transform: scale(1.05);
    background: #ffdf8e;
}

/* SERVICES SECTION */
.services {
    padding: 80px 20px;
    text-align: center;
    background: #0a0c28;
}

.services h2 {
    font-size: 50px;
    color: #ffd36b;
    margin-bottom: 60px;
}

.service-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-card {
    width: 300px;
    padding: 35px;
    border-radius: 18px;
    background: linear-gradient(to bottom right, #2b2750, #1e1b38);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.service-card .icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #ffd36b;
}

/* APPOINTMENT SECTION */
.appointment {
    padding: 100px 20px;
    text-align: center;
    background: #0a0c28;
}

.appointment h2 {
    font-size: 55px;
    color: #ffd36b;
}

/* REVIEWS */
.reviews {
    padding: 100px 20px;
    text-align: center;
    background: #0a0c28;
}

.reviews h2 {
    font-size: 50px;
    color: #ffd36b;
    margin-bottom: 40px;
}

.review-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.review-card {
    width: 300px;
    padding: 30px;
    border-radius: 15px;
    background: linear-gradient(to bottom right, #2e294f, #1f1c36);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

/* FEEDBACK */
.feedback {
    padding: 100px 20px;
    text-align: center;
    background: #0a0c28;
}

.feedback-form-container {
    display: flex;
    justify-content: center;
}

.feedback-form {
    width: 100%;
    max-width: 550px;
    padding: 35px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.feedback-form label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffd36b;
    display: block;
    text-align: left;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 13px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-sizing: border-box;
}

.submit-review-btn {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: linear-gradient(to right, #ffd36b, #ffb931);
}

/* IMAGE GROUPS */
.four-images {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    gap: 50px;
    flex-wrap: wrap;
}

.four-images img {
    width: 240px;
    border-radius: 20px;
    transition: 0.35s ease-in-out;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.img-box {
    text-align: center;
}

.img-text {
    margin-top: 18px;
    font-size: 24px;
    font-weight: bold;
    color: #ffd36b;
}

/* FOOTER */
.footer {
    padding: 50px 20px;
    background: rgba(15, 13, 30, 0.95);
    text-align: center;
}

.footer-text {
    max-width: 550px;
    margin: 20px auto;
    opacity: 0.8;
}

/* ————————————————————————————————————————————————— */
/* MOBILE RESPONSIVE STYLES (THE FIXES)             */
/* ————————————————————————————————————————————————— */

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: #ffd36b;
        border-radius: 2px;
    }

    .nav-links {
        display: none; /* Controlled by JS toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(20, 17, 44, 0.95);
        padding: 20px 0;
        text-align: center;
        gap: 20px;
        border-bottom: 1px solid gold;
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        padding-top: 120px;
    }

    /* Scaling the solar system so orbits fit on small screens */
    .solar-system-bg {
        transform: translate(-50%, -50%) scale(0.5);
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero h3 {
        font-size: 18px;
    }

    .hero p {
        width: 90%;
        font-size: 16px;
    }

    .four-images {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2x2 grid for a clean look */
        gap: 20px;
        padding: 20px;
    }

    .four-images img {
        width: 100%;
        max-width: 160px;
    }

    .img-text {
        font-size: 18px;
    }

    .services h2, .appointment h2, .reviews h2 {
        font-size: 36px;
    }

    .service-card, .review-card {
        width: 90%;
        max-width: 400px;
    }

    /* Hide desktop-only floating images */
    .saturn-below-img, .kundali-box {
        display: none;
    }
}

@media (max-width: 480px) {
    .solar-system-bg {
        transform: translate(-50%, -50%) scale(0.35);
    }

    .four-images {
        grid-template-columns: 1fr; /* Stack 1 by 1 on very small phones */
    }

    .hero h1 {
        font-size: 34px;
    }
}