/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Responsive container */
#cards-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;          /* allow wrapping on smaller screens */
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: none;
}

/* Responsive cards */
#cards-container .card {
  flex: 1 1 200px;          /* flexible: minimum 200px */
  max-width: 220px;         /* don’t let them grow too big */
  min-width: 150px;         /* don’t shrink too much */
  height: 200px;
  
  background-size: 600% 600%;
  animation: gradientBG 3s ease infinite;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;   /* stack title + link */
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  padding: 15px;
  text-align: center;
}
    @keyframes gradientBG { 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }

    /* Card 1 */
.c1 {
   background: linear-gradient(150deg, 
    #8B0000 0%,   /* deep red */
    #A00000 10%, 
    #B22222 20%, 
    #CD3333 30%,

    /* shared final 4 colors */
    #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );

}

/* Card 2 */
.c2 {
 background: linear-gradient(120deg, 
    #FF8C00 0%,   /* dark orange */
    #FFA500 10%, 
    #FFB732 20%, 
    #FFC933 30%,

    /* shared final 4 colors */
    #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );}

/* Card 3 */
.c3 {

  background: linear-gradient(90deg, 
    #006400 0%,   /* dark green */
    #008000 10%, 
    #00A000 20%, 
    #00CC66 30%,

    /* shared final 4 colors */
    #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );}

/* Card 4 */
.c4 {
 background: linear-gradient(60deg, 
    #00008B 0%,   /* dark blue */
    #0000CD 10%, 
    #3333FF 20%, 
    #6666FF 30%,

    /* shared final 4 colors */
    #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );}

/* Card 5 */
.c5 {
 background: linear-gradient(30deg, 
    #4B0082 0%,   /* indigo purple */
    #800080 10%, 
    #9933CC 20%, 
    #CC66FF 30%,

    /* shared final 4 colors */
   #2e3b4e 35%, 
    #1f3a5f 50%, 
    #0091A8 80%, 
    #00e5ff 100%
  );}

.zoom-wrapper h2 { 
    padding-top: 50px;
        font-size:3rem;
        font-family: 'Lobster', cursive; 
        margin-bottom:20px; 
        background: linear-gradient(135deg,
      #ffb700,
      #DAA520 ,
      #FFD700,
      #4b3621, 
      #000000,   
      #1a1a1a ,
      #4b3621 ,
      #FFD700,
      #DAA520 ,
      #ffb700
);

        background-clip: text;         
        -webkit-background-clip:text; 
        -webkit-text-fill-color:transparent;
         animation:gradientText 5s linear infinite; 
         background-size:300%; }

    @keyframes gradientText {0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}

/* Gradient link inside cards */
    .card { 
        width:160px; 
        height:160px; 
        border-radius:20px; 
        display:flex; 
        align-items:center; 
        justify-content:center; 
        font-weight:bold; 
        font-size:1.15rem; 
        color:white; 
        text-shadow:1px 1px 5px rgba(0,0,0,.35);
          background-size:400% 400%; animation:cardGradient 10s ease infinite;
           box-shadow:0 15px 40px rgba(0,0,0,.25);
            transform-style:preserve-3d;
             perspective:1000px; }
.card a {
  font-size: 1rem;
  font-weight: bold;
  background: linear-gradient(45deg,  
  #ffffff   /* neon cyan */
     /* rich purple */
     /* bright yellow */);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s linear infinite;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* ============================
   RESPONSIVE BREAKPOINTS
   ============================ */

/* Small Laptops (1025px - 1366px) */
@media (max-width: 1366px) {
  #cards-container {
    gap: 18px;
    padding: 18px;
  }
  #cards-container .card {
    flex: 1 1 190px;
    max-width: 210px;
    min-width: 150px;
    height: 190px;
    font-size: 0.95rem;
    padding: 12px;
  }
  .zoom-wrapper h2 {
    font-size: 2.5rem;
    padding-top: 40px;
  }
}

/* Tablets (769px - 1024px) */
@media (max-width: 1024px) {
  #cards-container {
    gap: 15px;
    padding: 15px;
  }
  #cards-container .card {
    flex: 1 1 170px;
    max-width: 190px;
    min-width: 140px;
    height: 170px;
    font-size: 0.9rem;
    padding: 12px;
  }
  .card a {
    font-size: 0.9rem;
  }
  .zoom-wrapper h2 {
    font-size: 2.2rem;
    padding-top: 35px;
  }
  
  /* About Me section layout adjustments */
  #about-me .row {
    flex-direction: column;
  }
  .particlehead {
    position: relative !important;
    transform: translateY(0) !important;
    min-width: 100% !important;
    height: 50vh !important;
    margin-bottom: 2rem;
  }
  .ablums-text {
    min-width: 100% !important;
    padding: 0 1rem;
  }
}

/* Mobile (481px - 768px) */
@media (max-width: 768px) {
  #cards-container {
    gap: 12px;
    padding: 12px;
    position: relative;
    inset: auto;
    margin-top: 2rem;
  }
  #cards-container .card {
    flex: 1 1 140px;
    max-width: 160px;
    min-width: 120px;
    height: 140px;
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 16px;
  }
  .card a {
    font-size: 0.85rem;
  }
  .zoom-wrapper h2 {
    font-size: 1.8rem;
    padding-top: 30px;
  }
  
  /* About Me mobile layout */
  #about-me {
    padding: 2rem 1rem;
  }
  .particlehead {
    height: 40vh !important;
    min-width: 100% !important;
  }
  .ablums-text {
    min-width: 100% !important;
    padding: 0;
  }
  .ablums-text p {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

/* Small Phones (≤480px) */
@media (max-width: 480px) {
  #cards-container {
    gap: 10px;
    padding: 10px;
    margin-top: 1.5rem;
  }
  #cards-container .card {
    flex: 1 1 120px;
    max-width: 140px;
    min-width: 100px;
    height: 120px;
    font-size: 0.75rem;
    padding: 8px;
    border-radius: 14px;
  }
  .card a {
    font-size: 0.75rem;
  }
  .zoom-wrapper h2 {
    font-size: 1.5rem;
    padding-top: 25px;
  }
  
  .particlehead {
    height: 35vh !important;
  }
  .ablums-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

