/* Existing CSS */

/* Title Animation */
.c1omponents {
    background: linear-gradient(to right, #ff6a00, #ee0979);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    font-size: 3rem;
    width: fit-content;
    padding: 10px 25px;
    font-weight: 800;
    margin-bottom: 40px;
    margin-top: 3.5rem;
    text-align: center;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container Animations */
.component_container {
    background-color: rgb(41, 41, 43);
    padding: 100px 20px 50px; /* Adjusted padding for mobile */
    min-height: 100vh;
    animation: pulse 10s infinite, slideIn 1.5s ease-in-out;
}

@keyframes pulse {
    0% { background-color: rgb(41, 41, 43); }
    50% { background-color: rgb(41, 41, 43); }
    100% { background-color: rgb(41, 41, 43); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Description Section Animation */
.making {
    font-size: 1.5rem;
    padding: 20px;
    color: white;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease-out;
}

/* Main Component Container */
.main_component_container {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    background-color: rgb(41, 41, 43);
    max-width: 80%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    animation: fadeIn 2s ease;
}

.main_component_container:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
    background-color: rgb(41, 41, 43);
    transition: all 0.3s ease;
}

/* Grid */
.component_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 50px;
    max-width: 100%;
    animation: fadeIn 1.5s ease-in-out;
}

@media (max-width: 1200px) {
    .component_grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px 40px;
    }
}

@media (max-width: 992px) {
    .component_grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 30px;
    }
}

@media (max-width: 576px) {
    .component_grid {
        grid-template-columns: 1fr;
        padding: 20px 10px;
    }
}

/* Accordion Animation */
.a1ccordion {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    background-color: rgb(41, 41, 43);
    cursor: pointer;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-in-out;
}

.a1ccordion:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.7);
    background-color: rgb(41, 41, 43);
    animation: bounce 0.6s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.a1ccordion > img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
    filter: brightness(0.9);
}

.a1ccordion > img:hover {
    transform: scale(1.1);
    filter: brightness(1);
}

.a1ccordion > p {
    color: white;
    text-align: center;
    padding-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.a1ccordion:hover > p {
    background: linear-gradient(to right, #ff6a00, #ee0979);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

/* Button Animation */
.button {
    background: linear-gradient(to right, #ff6a00, #ee0979);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    animation: pulseButton 2s infinite alternate ease;
}

@keyframes pulseButton {
    from {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    }
}

.button:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    background-color: rgb(41, 41, 43);
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(0); }
}

/* Grid Items */
.grid-item {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.5);
    animation: bounce 0.5s;
}

.grid-item img {
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.color {
    background: linear-gradient(to right, #ff6a00, #ee0979);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.from, .uicolor {
    color: white;
}
/* navbar-section start */
  
.navbar-section {
    background-color:rgb(41,41,43);
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 9;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  }
  
  .navbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    width: 40px;
    height: 40px;
  }
  
  .toggle-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
  }
  
  .logo img {
    width: 70px;
  }
  .dropdown ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 5rem;
  }
  
  .dropdown ul li {
    margin-right: 20px;
    padding-top: 15px;
    font-weight: 600;
    font-size: 18px;
  }
  .dropdown ul li a:hover{
    background: linear-gradient(to right, #ff6a00, #ee0979);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;

  }
  
  .navbar_menu {
    position: absolute;
    right: 20px;
    top: 50px;
    width: 300px;
    display: none;
    background-color: rgb(198, 197, 197);
    /* background: rgba(255,255,255 0.1); */
    list-style: none;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    height: 0;
    text-decoration: none;
  }
  
  .navbar_menu li {
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-self: center;
    font-weight: 600;
    /* text-decoration: none !important; */
  }
  
  .navbar_menu.open {
    height: auto;
    padding-bottom: 20px;
  }
  
  .navbar_menu li a {
    color: white;
    text-decoration: none;
  }
  
  .navbar_menu li a:hover {
    color: white;
    /* text-decoration: none; */
  }
  
  .dropdown ul li a {
    color: white;
    text-decoration: none;
  }
  
  .dropdown ul li a:hover {
    text-decoration: none;
  }
  
  @media screen and (max-width: 992px) {
    .dropdown ul {
      display: none;
    }
  
    .toggle-btn {
      display: block;
    }
  
    .navbar_menu {
      display: block;
      width: unset;
      left: 30px;
    }
  }
  
  /* navbar-section end */
/* Responsive Media Queries */

/* Tablet Devices (768px - 991px) */
@media (max-width: 992px) and (min-width: 577px) {
    .component_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .c1omponents {
        font-size: 2.5rem;
        padding: 10px 20px;
    }

    .making {
        font-size: 1.3rem;
    }

    .navbar_menu {
        width: 250px;
    }
}

/* Mobile Devices (up to 576px) */
@media (max-width: 576px) {
    /* Adjust navbar */
    .dropdown ul {
        display: none;
    }

    .toggle-btn {
        display: block;
    }

    .navbar_menu {
        width: 100%;
        left: 0;
        right: 0;
        top: 60px;
        border-radius: 0;
    }

    /* Adjust grid */
    .component_grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px 20px;
    }

    /* Adjust title and description */
    .c1omponents {
        font-size: 2rem;
        padding: 10px 15px;
    }

    .making {
        font-size: 1.1rem;
        padding: 10px;
    }

    /* Adjust main container */
    .main_component_container {
        padding: 20px;
        max-width: 95%;
    }

    /* Adjust buttons and accordions */
    .a1ccordion > p {
        font-size: 1rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Adjust navbar menu items */
    .navbar_menu li {
        padding: 10px 15px;
    }

    /* Hide unnecessary elements or adjust spacing */
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 400px) {
    .c1omponents {
        font-size: 1.8rem;
    }

    .making {
        font-size: 1rem;
    }

    .a1ccordion {
        padding: 15px;
    }

    .a1ccordion > p {
        font-size: 0.9rem;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .navbar_menu {
        padding: 15px 0;
    }
}
