/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #1b1c31, #5a1e7e);
  color: #333;
  overflow-x: hidden;
  color: #fcf9f9;

}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(100, 149, 237, 0.1);
  animation: float 15s infinite linear;
}

.circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
  animation-delay: 0s;
}

.circle:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circle:nth-child(3) {
  width: 250px;
  height: 250px;
  top: 60%;
  left: 10%;
  animation-delay: 4s;
  animation-duration: 18s;
}

.circle:nth-child(4) {
  width: 150px;
  height: 150px;
  top: 80%;
  left: 70%;
  animation-delay: 1s;
  animation-duration: 10s;
}

.circle:nth-child(5) {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 50%;
  animation-delay: 3s;
  animation-duration: 8s;
}

@keyframes float {
  0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
  }
  100% {
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
  }
}

















:root {
    --primary-color: #3b82f6;  /* Brighter blue for better contrast on dark */
    --secondary-color: #2563eb;
    --text-color: #f9fafb;     /* Light text for dark background */
    --light-color: #1f2937;
    --dark-color: #111827;
    --nav-bg: #000000;         /* Pure black background */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

.navbar {
    background-color: var(--nav-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: 300px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-container:focus-within {
    box-shadow: 0 0 0 2px var(--primary-color);
    background-color: rgba(255, 255, 255, 0.2);
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.5rem;
    outline: none;
    font-size: 0.9rem;
    color: white;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.search-button:hover {
    color: white;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: block;
        order: 3;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .navbar-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: all 0.5s ease;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .search-container {
        order: 2;
        margin: 0 1rem;
        width: auto;
        flex-grow: 1;
    }
    
    .navbar-brand {
        order: 1;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 992px) {
    .navbar-menu {
        gap: 1rem;
    }
    
    .search-container {
        width: 200px;
    }
}
/* ... (keep all previous CSS rules above) ... */

/* Mobile Styles - Specific Width Adjustments */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .hamburger {
        display: block;
        order: 2;
        margin-left: auto; /* Pushes hamburger to right */
    }
    
    .navbar-brand {
        order: 1;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin: 0.5rem 0 0 0;
    }
    
    /* Hamburger animation styles remain the same */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .navbar-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: all 0.5s ease;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-menu.active {
        left: 0;
    }
}

/* Specific adjustments for 560px */
@media (max-width: 560px) {
    .navbar-container {
        padding: 0 0.8rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hamburger {
        padding: 0.4rem;
    }
    
    .bar {
        width: 22px;
        height: 2.5px;
    }
    .search-container {
        width: 90%;
        margin: 0.5rem auto 0 auto;
    }
}

/* Specific adjustments for 360px */
@media (max-width: 360px) {
    .navbar-container {
        padding: 0 0.6rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .hamburger {
        padding: 0.3rem;
    }
    
    .bar {
        width: 20px;
        height: 2px;
    }
     .search-container {
        width: 85%;
        padding: 0.4rem 0.8rem;
    }
    
    .search-input {
        font-size: 0.8rem;
    }
}

/* Specific adjustments for 320px */
@media (max-width: 320px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hamburger {
        padding: 0.25rem;
    }
    
    .bar {
        width: 18px;
    }
     .search-container {
        width: 85%;
        padding: 0.4rem 0.8rem;
    }
    
    .search-input {
        font-size: 0.8rem;
    }.search-container {
        width: 80%;
        padding: 0.3rem 0.7rem;
    }
    
    .search-input {
        font-size: 0.75rem;
    }
    
    .search-button {
        font-size: 0.8rem;
    }
}












  /*assam*/

  .ami {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    margin: 0px auto 50px auto;
    max-width: 1000px;
    padding: 0rem;
    border-radius: 0px;
    text-align: center;
}


.assam {
  color: #f9fafb;
}

.par {
  background-color: #050303;
  padding: 20px;
}



 













.erro{
  text-align: center;
  background-color: #7283d8;
  color: #000;

}


.container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .subject-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: white;
            padding: 12px 15px;
            margin-bottom: 2px;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            width: 100%;
            box-sizing: border-box;
        }
        
        .subject-container:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
        
        .subject-name {
            flex-grow: 1;
            font-size: 16px;
            font-weight: bold;
            color: #333;
            margin-right: 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .click-link {
            background-color: #4CAF50;
            color: white;
            padding: 6px 12px;
            text-decoration: none;
            border-radius: 4px;
            font-size: 13px;
            transition: background-color 0.3s;
            flex-shrink: 0;
        }
        
        .click-link:hover {
            background-color: #45a049;
        }

























/* Footer Styles */
footer {
    color: rgb(244, 243, 248);
    padding: 4rem 4rem 0;
    background-color: #050111;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
  }
  
  .footer-section {
    width: 30%;
    margin-bottom: 2rem;
    
  }
  
  .footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #f5f4f7;
    text-decoration: underline;
  }
  
  .footer-section ul li {
    margin-bottom: 0.8rem;
    list-style: none;
  }
  
  .footer-section ul li a {
    text-decoration: none;
    color: #51ac9e;
    transition: all 0.3s;
  }
  
  .footer-section ul li a:hover {
    color: #f8f9fe;
    padding-left: 5px;
  }
  
  .footer-section p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: #bacff8;
  }
  
  .footer-section p i {
    margin-right: 10px;
    color: rgb(248, 246, 246);
  }
 
  .social-icons a:hover {
    background-color: #5458d2;
    transform: translateY(-3px);
    color: white;
  }
  
  .footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    color: rgba(239, 240, 238, 0.7);
    font-size: 0.9rem;
    background-color: #050303;
    height: 100%;
    margin: 100;
    padding: 100;
  
  }





  /* Responsive Styles */
@media (max-width: 992px) {

   
      
      .nav-links {
          gap: 1rem;
      }
      
      .footer-section {
          width: 45%;
      }
    }






    @media (max-width: 992px) {
        .header {
            padding: 1.5rem;
        }
        
        .logo h1 {
            font-size: 1.5rem;
        }
        
        h2 {
            font-size: 2rem;
        }
        
        h3 {
            font-size: 1.5rem;
        }
        
        .footer-content {
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .footer-section {
            width: 100%;
        text-align: center;
        }
      
        .footer-section p {
          text-align: center;
        }
        .grid-item {
            width: 700px;
            height: 80px;
    
        }
    

    
    }





    @media (max-width: 721px) {
      .grid-item {
        width: 500px;
        height: 80px;

    }

    .text{
      text-align: center;
      text-decoration: underline;
      font-size: 20%;
    }
  }






    
@media (max-width: 600px) {
    .header {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-section {
        width: 100%;
    text-align: center;
    }
  
    .footer-section p {
      text-align: center;
    }
    .grid-item {
        width: 400px;
        height: 80px;

    }
    .text{
      text-align: center;
      text-decoration: underline;
      font-size: x-large;
      
    }

}


@media (max-width: 481px) {



.grid-item {
    width: 300px;
    height: 50px;
}



.grid-link {

  font-size: 19px;

}

.ami {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    margin: 0px auto 50px auto;
    max-width: 1000px;
    padding: 0rem;
    border-radius: 0px;
    text-align: center;
}


.assam {
  color: #f9fafb;
  font-size: 10px;
}

.par {
  background-color: #050303;
  padding: 10px;
  font-size: 10px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;


}
}


/* Responsive adjustments */
        @media (max-width: 375px) {
            .subject-container {
                padding: 10px 12px;
            }
            .subject-name {
                font-size: 15px;
            }
            .click-link {
                padding: 5px 10px;
                font-size: 12px;
            }
        }

        @media (max-width: 360px) {
            .subject-name {
                font-size: 14px;
            }
            .click-link {
                padding: 4px 8px;
            }
        }

        @media (max-width: 320px) {
            body {
                padding: 5px;
            }
            .subject-container {
                padding: 8px 10px;
                flex-direction: column;
                align-items: flex-start;
            }
            .subject-name {
                margin-bottom: 8px;
                white-space: normal;
            }
            .click-link {
                align-self: flex-end;
            }
        }