/* Fonts */

@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* --- Sliding Animations */

.slide-up-fast,
.slide-up-slow,
.slide-up-very-slow {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out; /* animation on class change */
}

/* Triggered when visible */
.slide-up-fast.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s; /* optional delay for fast */
}

.slide-up-slow.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s; /* optional delay for slow */
}

.slide-up-very-slow.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.0s; /* optional delay for very slow */
}

/* When screen size < xl, all slide-up animations are instant */
@media (max-width: 1200px) {
  .slide-up-fast.show,
  .slide-up-slow.show,
  .slide-up-very-slow.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s; /* optional delay for fast */
  }
}

/* For hero section, always have slide-up animation */
#hero .slide-up-fast.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s; /* optional delay for fast */
}

#hero .slide-up-slow.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s; /* optional delay for slow */
}

#hero .slide-up-very-slow.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.0s; /* optional delay for very slow */
}


/* .slower-fade-in {
  opacity: 0;
  transition-duration: 0.8s;
} */


/* --- Hero Section --- */

#hero {
    /* Hero image properties */
    width: 100%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)), url('../images/index/city-background.gif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
}

#hero-text {
    /* Adjust hero div position */
    position: absolute;
    top: 55%;
    left: 65%;
    transform: translate(-50%, -50%); /* for true centering*/
}

#hero-text h1 {
    /* Square border */
    text-align: center;
    border: 2px solid white;
    padding: 20px;
    border-radius: 10px;
}

#hero-text p {
    /* Texr Alignment */
    text-indent: 40px; 
    margin-top: 15px;
    text-align: justify;
}

/* Styles when medium screen size (small tablet) */
@media (max-width: 768px) {

    /* --- Hero Section */
    #hero {
        min-height: 600px;
    }

    #hero-text {
        /* Adjust hero div position */
        position: relative;
        transform: translate(-50%,50%);
        left: 50%; 
        top: 50%;
        max-width: 500px;
        /* padding-top: 0px; */

    }
}

/* Styles when small mobile screens */
@media (max-width: 576px) {

    /* --- Hero Section */
    #hero {
        min-height: 600px;
    }

    #hero-text {
        /* Adjust hero div position */
        position: relative;
        transform: translate(-50%,25%);
        left: 50%; 
        top: 50%;
        /* max-width: 00px; */
        /* padding-top: 0px; */
        max-width: 300px;
    }
}

/* --- Presentation Section --- */

#presentation {
    width: 100%;
    min-height: 100vh;
    background-image: url('../images/index/camping.gif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
}

#my-projects {
    font-family: "VT323", sans-serif;
}

.article-card {
  width: 350px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 300ms;
  opacity: 0.65;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.6),   /* main soft white glow */
    0 0 40px rgba(255, 255, 255, 0.3);   /* outer subtle glow */
  opacity: 1;
  /* transition-delay: 300ms; */
}

.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 12px;
}

.article-card .content {
  box-sizing: border-box;
  width: 100%;
  position: absolute;
  padding: 30px 20px 20px 20px;
  height: auto;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.article-card .date,
.article-card .title {
  margin: 0;
}

.article-card .date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.article-card .title {
  font-size: 17px;
  color: #fff;
}

/* This magically fixes stretching problem in small screen */
/* Look into it more in the future */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1px, 350px));
  gap: 1rem;
}

/* Styles when small mobile screens */
@media (max-width: 576px) {
  .article-card {
    width: 100%;       /* override the fixed 350px */
    max-width: 350px;   /* ensure no leftover constraint */
    height: 220px;      /* optional – lets it scale naturally */
    opacity: 1;
  }

  .article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* --- Debug --- */
/* .redbox {
    border: 2px solid red;
}
.bluebox {
    border: 2px solid blue;
}
.greenbox {
    border: 2px solid green;
}
.yellowbox {
    border: 2px solid yellow;
}
.purplebox {
    border: 2px solid purple;
}
.blackbox {
    border: 2px solid black;
} */