body {
    padding-top: 50px;
    /* space for sticky navbar */
    scroll-behavior: smooth;
    /* smooth scrolling */
    overflow-x: hidden; 
    /* Hides the horizontal scrollbar for the entire page */
}

.navbar .nav-link.active {
    color: #0bd23c !important;
    /* Bootstrap primary color */
    font-weight: bold;
    text-decoration: underline;
}

#about1:hover, #about2:hover, #about3:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.navbar {
    transition: background 0.3s ease-in-out;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
}

#dream:hover, #mission:hover, #title:hover, #slogan:hover {
    transform: scale(1.1);
    color: red;
    transition: transform 0.3s ease-in-out;
}
/* ===== Base Cover Styling ===== */
.cover {
    background: url("../images/cover1.jpeg") no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.cover-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    animation: floatContent 6s ease-in-out infinite;
}

.cover-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    animation: fadeInDown 1s ease-in-out;
    margin-bottom: 20px;
}

.cover-content .urdu-text {
    display: block;
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 2rem;
    margin-top: 8px;
}

.cover-content p {
    font-size: 1.5rem;
    animation: fadeInUp 1.2s ease-in-out;
    min-height: 60px;
    margin-bottom: 30px;
}

.cover-content .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #2575fc;
    cursor: pointer;
    animation: fadeInUp 1.5s ease-in-out;
    transition: 0.3s;
    font-weight: bold;
}

.cover-content .btn:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatContent {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Typing effect */
.typed-text {
    border-right: 2px solid white;
    white-space: nowrap;
    overflow: hidden;
}

.particles {
  position: relative;
  width: 100%;
  height: 100%;
}

.particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 200, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 200, 0.9),
              0 0 20px rgba(255, 255, 150, 0.6),
              0 0 40px rgba(255, 255, 100, 0.3);
  animation: floatUp linear infinite;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .cover-content h1 { font-size: 2.5rem; }
    .cover-content .urdu-text { font-size: 1.7rem; }
    .cover-content p { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .cover-content h1 { font-size: 2.2rem; }
    .cover-content .urdu-text { font-size: 1.5rem; }
    .cover-content p { font-size: 1.2rem; }
    .cover-content .btn { font-size: 1rem; padding: 10px 25px; }
}

@media (max-width: 480px) {
    .cover { padding: 0 10px; }
    .cover-content h1 { font-size: 1.8rem; }
    .cover-content .urdu-text { font-size: 1.3rem; }
    .cover-content p { font-size: 1rem; min-height: 40px; }
    .cover-content .btn { font-size: 0.9rem; padding: 8px 20px; }
}

/* ===== Glowing Title ===== */
.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(37, 117, 252, 0.6),
                 0 0 30px rgba(37, 117, 252, 0.4);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
                     0 0 20px rgba(37, 117, 252, 0.7),
                     0 0 30px rgba(37, 117, 252, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1),
                     0 0 40px rgba(37, 117, 252, 0.9),
                     0 0 60px rgba(37, 117, 252, 0.6);
    }
}

.about:hover {
    transform: scale(4.05);
    transition: transform 0.5s ease-in-out;
}
#about {
    background: #f8f9fa;
    border-radius: 10px;
}

#services .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


#team .card img {
    border-radius: 50%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 20px auto 10px;
    transition: transform 0.3s ease;
}

#team .card img:hover {
    transform: scale(1.1);
}

#contact {
    background: #f1f7ff;
    border-radius: 10px;
}

#contact form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notice-marquee {
    white-space: nowrap;
    position: relative;
    height: 40px;
    line-height: 40px;
}

.notice-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

.notice-marquee:hover .notice-content {
    animation-play-state: paused;
    /* pause on hover */
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.notice-content span {
    display: inline-block;
    margin-right: 50px;
    /* space between notices */
}