/* === General Body & Background === */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: radial-gradient(circle at top, #16222A, #3A6073);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://starlinegroupbd.com/wp-content/uploads/2025/05/star-line-special.jpg') repeat;
    opacity: 0.05;
    animation: moveBackground 120s linear infinite;
    z-index: 0;
}

@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* === Header === */
header {
    text-align: center;
    padding: 40px 10px 20px;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {
    header { font-size: 1.7rem; }
}

/* === Main Menu Buttons === */
.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.main-menu button {
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    border: none;
    color: white;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.main-menu button:hover {
    background: linear-gradient(135deg, #0066cc, #1e90ff);
    transform: translateY(-2px);
}

.main-menu button.active {
    background: linear-gradient(135deg, #28a745, #218838);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.nav-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ff9800);
}

@media (max-width: 600px) {
    .main-menu { flex-direction: column; }
    .main-menu button { width: 90%; }
}

/* === Sub Menu Buttons === */
.sub-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0 40px;
    z-index: 1;
    position: relative;
}

.sub-menu button {
    background: linear-gradient(45deg, #24c6dc, #514a9d);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sub-menu button:hover,
.sub-menu button.active {
    background: linear-gradient(45deg, #f7971e, #ffd200);
    transform: scale(1.05);
    color: #222;
}

/* === Counter Cards === */
.counter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 40px 60px;
    justify-items: center;
    position: relative;
    z-index: 1;
}

.counter-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 25px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    animation: fadeInUp 0.7s ease forwards;
    cursor: pointer;
}

.counter-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255,255,255,0.18);
}

.counter-card::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.counter-card:hover::before {
    top: -20%;
    left: -20%;
}

.counter-card h3 {
    margin: 0 0 12px;
    color: #ffd700;
    font-size: 1.4rem;
}

.counter-card p {
    margin: 6px 0;
    font-size: 0.95rem;
    color: #ddd;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Footer === */
footer {
    text-align: center;
    padding: 20px;
    color: #aaa;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.2);
}

/* === Popup === */
.popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 750px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.4s ease;
    color: #222;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(45deg, #ff6a00, #ee0979);
    padding: 12px 20px;
    color: #fff;
    position: relative;
}

.popup-header .popup-info h2 {
    margin: 0;
    font-size: 1.2rem;
}

.popup-header .popup-info p {
    margin: 2px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.call-btn {
    background: #ffd700;
    color: #000;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 25px;
    transition: 0.3s;
}

.call-btn:hover {
    background: #fff;
}

.popup-content iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8em;
    cursor: pointer;
    color: #fff;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

/* === Top Navigation Bar === */
.top-nav {
    text-align: center;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 18px;
    padding: 6px 10px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.top-nav a:hover,
.top-nav a.active {
    background: linear-gradient(45deg, #f7971e, #ffd200);
    color: #222;
    font-weight: 600;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    max-width: 1100px;
    margin: auto;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffd700;
    text-shadow: 1px 1px 10px rgba(255, 215, 0, 0.6);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 6px 8px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: linear-gradient(45deg, #f7971e, #ffd200);
    transition: 0.4s;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffd700;
}

.nav-toggle {
    font-size: 1.8rem;
    color: #ffd700;
    cursor: pointer;
    display: none;
    transition: 0.3s;
}

.nav-toggle:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.9);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }

    .nav-links.show {
        display: flex;
        animation: fadeInDown 0.4s ease;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: block;
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* === Map Button === */
.map-btn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.map-btn:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    transform: scale(1.05);
}

/* === Contact Page Styling === */
.contact-wrapper {
    max-width: 600px;
    margin: 30px auto;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    color: #fff;
}

.contact-form {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.contact-form h3 {
    text-align: center;
    color: #00c6ff;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ddd;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00c6ff;
    box-shadow: 0 0 5px rgba(0,198,255,0.5);
    outline: none;
    background: rgba(255,255,255,0.08);
}

.contact-form button[type="submit"] {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #218838, #28a745);
    transform: translateY(-2px);
}

.map-container {
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .contact-wrapper { width: 90%; padding: 20px; }
    .contact-form input, .contact-form textarea { font-size: 0.9rem; padding: 10px; }
    .contact-form button { padding: 10px; font-size: 0.95rem; }
    .map-container iframe { height: 240px; }
}

/* === About Page Styling === */
.about-wrapper {
    max-width: 600px;
    margin: 30px auto 60px;
    padding: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    color: #fff;
}

.about-wrapper h2 {
    text-align: center;
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-wrapper p {
    text-align: justify;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #ddd;
}

.about-wrapper .highlight {
    color: #00c6ff;
    font-weight: 600;
}

.about-wrapper .btn-link {
    display: inline-block;
    margin-top: 15px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.about-wrapper .btn-link:hover {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-wrapper { width: 90%; padding: 20px; }
}
