*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family:Georgia, 'Times New Roman', Times, serif;
  background-color: #d1e8ff , #0077B5;
}

.main{
   
  min-height: 100vh;     
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0;
}


 .welcomeScreen {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #35b4ae, #6592ba, #59c8db);
  color: #333;
  text-align: center;
}

.welcomeScreen h1 {
  font-size: 42px;
  margin-bottom: 30px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: bold;
  color: #ffffff;
  animation: popLoop 2s ease-in-out infinite;
}
.welcomeScreen p {
  color:bisque;
  margin-bottom: 80px;
   margin-top: 2px; 
    animation: popLoop 2s ease-in-out infinite;
}




@keyframes popLoop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
     
       

.weather-card {
  width: 100%;
  max-width: 360px;
  min-height: 300px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}




/* Background for summer */
.summer-bg {
   height: 100vh;
  width: 100%;
  background-image: url('image/summer-gif.gif');
   background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* From Uiverse.io by juan-sued */ 
.hero {
  display: inline-block;
  position: relative;
  width: 400px;
  min-width: 400px;
  height: 400px;
  border-radius: 30px;
  overflow:hidden;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.3);
  margin: 30px;
}

.hero-profile-img {
  height: 70%;
}

.hero-description-bk {
  background-image: linear-gradient(0deg , #3f5efb, #fc466b);
  border-radius: 30px;
  position: absolute;
  top: 55%;
  left: -5px;
  height: 65%;
  width: 108%;
  transform: skew(19deg, -9deg);
}

.second .hero-description-bk {
  background-image: linear-gradient(-20deg ,antiquewhite , lightsteelblue);
  margin: 20px;
}

.hero-logo {
  
  height: 80px;
  width: 80px;
  border-radius: 20px;
  background-color: #fff;
  position: absolute;
  bottom: 40%;
  left: 30px;
  overflow:hidden;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.7);
}

.hero-logo img {
  height: 100%;
}

.hero-description {
  position: absolute;
  color: #fff;
  font-weight: 900;
  left: 160px;
  bottom: 21%;

}



.hero-date {
  position: absolute;
  color: #fff;
  left: 30px;
  bottom: 10px;
}
/* END CARD DESIGN */

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background-color: #eee;
  min-height: 100vh;
}
.btn i:before {
  width: 14px;
  height: 14px;
  position: fixed;
  color: #fff;
  background: #0077B5;
  padding: 10px;
  border-radius: 50%;
  top:5px;
  right:5px;
}
      /* Summer Card Ends */

      /* \\\\\\\\ Winter card start */

.winter-bg {
  height: 100vh;
  width: 100%;
  background-image: url('image/winter-gif.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


             /*////// Autumn card  */
.autumn-bg {
  height: 100vh;
  width: 100%;
  background-image: url('image/autumn-gif.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

    .card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 1250px;
    margin: 150px auto;
    padding: 20px;
    gap: 20px;
}
.card-list .card-item {
    background: #fff;
    padding: 26px;
    border-radius: 8px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.04);
    list-style: none;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: border 0.5s ease;
}
.card-list .card-item:hover {
    border: 2px solid #000;
}
.card-list .card-item img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    object-fit: cover;
}
.card-list span {
    display: inline-block;
    background: #F7DFF5;
    margin-top: 32px;
    padding: 8px 15px;
    font-size: 0.75rem;
    border-radius: 50px;
    font-weight: 600;
}
.card-list .developer {
    background-color: #F7DFF5; 
    color: #B22485;
}   
.card-list .designer {
    background-color: #d1e8ff;
    color: #2968a8;
}
.card-list .editor {
    background-color: #d6f8d6; 
    color: #205c20;
}
.card-item h3 {
    color: #000;
    font-size: 1.438rem;
    margin-top: 28px;
    font-weight: 600;
}
.card-item .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-35deg);
    height: 40px;
    width: 40px;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    margin-top: 40px;
    transition: 0.2s ease;
}
.card-list .card-item:hover .arrow  {
    background: #000;
    color: #fff; 
}
@media (max-width: 1200px) {
    .card-list .card-item {
        padding: 15px;
    }
}
@media screen and (max-width: 980px) {
    .card-list {
        margin: 0 auto;
    }
}

                       /* ////////////Spring card */

    .spring-bg {
  height: 100vh;
  width: 100%;
  background-image: url('image/spring-gif.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}
.card-color{
   background: linear-gradient(to right, lightpink, lightgoldenrodyellow);
   backdrop-filter: blur(10px);
    padding: 26px;
    border-radius: 8px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.04);
    list-style: none;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: border 0.5s ease;
}
.card-color h3 {
    color: white;
    font-size: 1.438rem;
    margin-top: 28px;
    font-weight: 600;
    font-family:Georgia, 'Times New Roman', Times, serif;
}

.card-list .card-color img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    object-fit: cover;
}

.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
 background: linear-gradient(90deg, lightgoldenrodyellow, peachpuff, papayawhip);

 
}

 .error-container img {
  
 height: 100vh;
  width: 100vw;
  object-fit: cover;
  
 
} 
   

/* ✅ Phones (up to 576px) */
@media screen and (max-width: 576px) {
  .first.hero,
  .second.hero {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
  }

  .first.hero .hero-description,
  .second.hero .hero-description {
    font-size: 14px;
    padding: 8px;
  }

  .first.hero .hero-date p,
  .second.hero .hero-date p {
    font-size: 12px;
  }

  .first.hero .hero-logo img {
    width: 80px;
    height: auto;
  }

  .second.hero .hero-profile-img {
    width: 100%;
    height: auto;
  }
}

/* ✅ Tablets (577px to 768px) */
@media screen and (min-width: 577px) and (max-width: 768px) {
  .first.hero,
  .second.hero {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .first.hero .hero-description,
  .second.hero .hero-description {
    font-size: 16px;
  }

  .first.hero .hero-logo img {
    width: 100px;
  }
}

/* ✅ Medium screens (769px to 991px) */
@media screen and (min-width: 769px) and (max-width: 991px) {
  .first.hero,
  .second.hero {
    gap: 15px;
    padding: 20px;
  }

  .first.hero .hero-description p,
  .second.hero .hero-description p {
    font-size: 18px;
  }

  .first.hero .hero-logo img {
    width: 120px;
  }
}
@media screen and (max-width: 576px) {
  .first.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 10px;
    text-align: center;
  }

  .first.hero .hero-profile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .first.hero .hero-logo img {
    width: 100px;
    height: auto;
    object-fit: contain;
  }

  .first.hero .hero-description,
  .first.hero .hero-date {
    font-size: 14px;
    padding: 5px 10px;
  }

  .first.hero .hero-date p {
    font-size: 12px;
  }
}


   
@media screen and (max-width: 576px) {
  .weather-card {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
}
.summer-bg,
.winter-bg,
.autumn-bg,
.spring-bg {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
/* ✅ Mobile View (up to 576px) */
@media screen and (max-width: 576px) {
  .card-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px;
  }

  .card-item,
  .card-color {
    width: 90%;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .card-item img,
  .card-color img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .card-item h3,
  .card-color h3 {
    font-size: 14px;
    margin-top: 10px;
  }

  .card-item .developer,
  .card-color .developer {
    font-size: 12px;
    display: block;
    margin-top: 5px;
  }

  .arrow {
    margin-top: 8px;
  }

  .arrow i {
    font-size: 18px;
  }
}
