/* Global Styles */
:root {
    --primary-color: #04a17a;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: rgb(10, 10, 10);
    background: linear-gradient(135deg, #667eea, #764ba2);
    
   
}



.navbar-brand i {
    color: var(--primary-color);
}

/* Card Styles */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(75, 31, 31, 0.623);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgb(255, 255, 255),  /* default subtle shadow */
    0 5px 10px rgba(255, 166, 0, 0.89), /* orange glow */
    0 5px 20px rgba(0, 0, 255, 0.726);   /* blue glow */
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
        text-align: center;
}

.card-text {
    font-size: 0.9rem;
    text-align: center;
    color: var(--secondary-color);
}

/* Button Styles */
.btn-primary {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

/* Search Bar Styles */
.input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
}

.input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Category Section Styles */
.category-section {
    margin-bottom: 3rem;
}

.category-section h2 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.category-section h2 i {
    color: var(--primary-color);
}
/*------------Animation Header---------------*/
.head1{ text-transform: uppercase;
    background-image: linear-gradient(
        -225deg,
        #231557 0%,
        #44107a 29%,
        #ff1361 67%,
        #fff800 100%
    );
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 2s linear infinite;
    display: inline-block;
    font-size: 3.5rem;
    margin: 0 auto 40px;
    line-height: 1.2;}
    @keyframes textclip {
        to { background-position: 200% center; }
      }
      @media (max-width: 380px) {
        .head1 { font-size: 1.3rem; }
      }  

/*--------Music Button-----------*/
.music {
    width: 220px;
    height: 50px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    animation: glowing 20s linear infinite;
    margin-bottom: 10px; /* Add space between buttons */
   
  }
  
  .music:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 1;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
  }
  
  .music:active {
    color: #000;
  }
  
  .music:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
  }
  
  @keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
  }

                /*--------Music Button-----------*/

  .text-center{background-color: rgb(5, 177, 48);
              border-radius: 8px;}
 



/* Footer Styles */
footer {
    background-color: #04a17a;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
    z-index: 2;
    position: relative;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .card {
      max-width: 100%; /* Full width on tablets */
    }
  
    .card img {
      height: 180px; /* Slightly smaller height for tablets */
    }
  }
  
  @media (max-width: 480px) {
    header .logo img {
      height: 40px;
    }
  
    header .header-button .animated-button {
      font-size: 14px;
      padding: 8px 16px;
    }
  
    .card {
      padding: 15px; /* Smaller padding for mobile */
    }
  
  
    .card h2 {
      font-size: 20px;
    }
  
    .card p {
      font-size: 14px;
    }
  
    .card .card-button {
      font-size: 14px;
      padding: 8px 16px;
    }
  
    footer {
      font-size: 12px;
    }
  }

/* Ad Container Styles */
.ad-container {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .category-section h2 {
        font-size: 1.5rem;
    }

    .head1{font-size: 22px;}
    .mb-4{font-size: 15px;}
    .justify-content-center{}
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tool Page Specific Styles */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.tool-header p {
    color: var(--secondary-color);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/*--------Card Headline--------------*/
.section-title {
    text-align: center;
    animation: color-animation 4s linear infinite;
  }
.section-title {
    --color-1: orange;
    --color-2: grey;
    --color-3: green;
  }
  
  .section-title {
    --color-1: orange;
    --color-2: grey;
    --color-3: green;
  }
  
  .section-title {
     --color-1: orange;
    --color-2: grey;
    --color-3: green;
  }
  .section-title {
     --color-1: orange;
    --color-2: grey;
    --color-3: green;
  }
  
  @keyframes color-animation {
    0%    {color: var(--color-1)}
    32%   {color: var(--color-1)}
    33%   {color: var(--color-2)}
    65%   {color: var(--color-2)}
    66%   {color: var(--color-3)}
    99%   {color: var(--color-3)}
    100%  {color: var(--color-1)}
  }
  
 /*-----Card title-------*/
 .card-title {
    margin: 1rem auto;
    animation: neon 2s ease infinite;
}
@keyframes neon {
    0%,
    100% {
        text-shadow: 0 0 10px #ef00e3a8, 0 0 20px #ef00e3a8, 0 0 20px #ef00e3a8, 0 0 20px #ef00e3a8, 0 0 2px #fed128, 2px 2px 2px #806914;
        color: #f5efcb;
    }
    50% {
        text-shadow: 0 0 2px #800e0b, 0 0 5px #800e0b, 0 0 5px #800e0b, 0 0 5px #800e0b, 0 0 2px #800e0b, 4px 4px 2px #40340a;
        color: #eda0d3;
    }
}

/*--------Scroll Box-----------*/

 .scroll-box {
    background: black;
    border-bottom: 2px solid rgb(189, 100, 100);
    padding: 10px;
    overflow-x: auto;
    white-space: nowrap; /* keep all links in one line */
    display: flex; /* ensure horizontal alignment */
  }

  .scroll-box a {
    flex: 0 0 auto;  /* don’t allow shrinking */
    margin-right: 15px; /* space between links */
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    background: #e0e0e0;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    font-size: 16px;
  }

  .scroll-box a:hover {
    background: red;
    color: #fff;
  }

  /* Optional: style scrollbar for better visibility */
  .scroll-box::-webkit-scrollbar {
    height: 6px;
  }
  .scroll-box::-webkit-scrollbar-thumb {
    background: #1a73e8;
    border-radius: 3px;
  }

  /* Responsive tweaks */
  @media (max-width: 600px) {
    .scroll-box a {
      font-size: 14px;
      padding: 6px 10px;
    }
  }
