/* =============================================================
   THE CONTROL PANEL
   These are CSS variables. Every colour and font on the site
   points back to this block. Change a value here, save, and
   watch the whole site update at once.

   TODO (Day 2): Swap these grey placeholders for the palette
   and fonts from your team's Design Brief.
   ============================================================= */
:root {
  --color-background: #0xFF4FC3F7; /* page background */
  --color-primary: ; /* hero section */
  --color-accent: #3A86FF; /* call-to-action section */
  --color-text: #ffffff; /* body text */
  --background-image: url('/images/index.png');
  --font-heading: Carter one;
  --font-body: Google sans;
}

/* === WHOLE PAGE === */
body {
  background-color: var(--color-background);
  background-image:var(--background-image);
  color: var(--color-text);
  font-family: var(--font-body);
}

h1,
h2 {
  font-family: var(--font-heading);
}

/* Images never overflow their section. */
img {
   width: 590px;
   height: auto;
   border:10px solid;
   border-radius: 75px;
   border-color:black;
   margin:35px;text-align: center;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* === HERO SECTION === */
.hero {
  padding: 35px;
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* === WHY IT MATTERS SECTION === */
.about {

  text-align: center;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

/* === CALL TO ACTION SECTION === */
.cta {
  color: #ffffff;
  text-align: center;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta a {
  color: #ffffff;
  font-weight: bold;
}

.circle-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  
  /* FIXED: Combined width, style, and color correctly */
  border: 6px solid black; 
  box-sizing: border-box; /* FIXED: Keeps total size exactly 60px */
  
  background-color: rgb(113, 167, 255);
  color: rgb(255, 0, 0);
  cursor: pointer;

  /* ADDED: Centers text or icons perfectly inside the circle */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0; 
  transition:all 0.3s ease;
  box-shadow:0 8px 25px black

}
#navbar {
    display:flex;
    justify-content: center;
    list-style-type: none;
    gap: 100px;
    padding: 10px;
    position: fixed;   
    top: 0;            
    left: 0;           
    width: 100%;       
    z-index: 1000;     
    height: 50px;      
    cursor: pointer;
}

a{
  color:rgb(255, 255, 255);
}
.cta-button:hover{
  background-color: rgb(115, 145, 255);
  transform: scale(1.09) translateY(-3px);
  box-shadow: 0 16px 40px black;
  transition: all 0.3s ease;
}




/* =============================================================
   Notice what is NOT here yet: no spacing, no rounded corners,
   no shadows, no layout, no motion. That is the rest of your
   week. Day 3: spacing & decoration. Day 4: layout & motion.
   ============================================================= */
   .cta-button {
    display: inline-block;
    padding:16px 40px;
    background-color: #ee0101;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius:50px;
    cursor: pointer;
    transition: all 0.3 ease;
    transform: 1;
    box-shadow:0 16px 40px black;
   }

  .cta-button:hover {

  } 

   #star{
    
   }

   li{
    font-size:23px;
   }
   #Home{
    display: inline-block;
    padding:16px 40px;
    background-color: #ee0101;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius:50px;
    cursor: pointer;
    transition: all 0.3 ease;
    transform: 1;
    box-shadow:0 16px 40pxblack;
    padding-bottom: 40px;
    
   }
   #Why-it-matters{
    display: inline-block;
    padding:16px 40px;
    background-color: #ee0101;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius:50px;
    cursor: pointer;
    transition: all 0.3 ease;
    transform: 1;
    box-shadow:0 16px 40px black;
    padding-bottom: 40px;
   }
   #Donate{
    display: inline-block;
    padding:16px 40px;
    background-color: #ee0101;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius:50px;
    cursor: pointer;
    transition: all 0.3 ease;
    transform: 1;
    box-shadow:0 16px 40px black;
    padding-bottom: 40px;
   }
   .image-container {
  width: 300px;
  height: 200px;
  overflow: hidden; 
  border-radius: 8px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease; 
}

.image-container img:hover {
  transform: scale(1.1); 
  opacity: 0.9;
}

.fade-container {
  position: relative;
  width: 600px;
  height: 600px;
}

.fade-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease-in-out; /* Smooth fade duration */
}

/* Hide the second image by default */
.fade-container .img-hover {
  opacity: 0;
}

/* Show the second image and hide the first image on hover */
.fade-container:hover .img-hover {
  opacity: 1;
}

.fade-container:hover .img-default {
  opacity: 0;
}