@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap");
:root {
  --primary-color: #040720;
  --hover-color: #4555fa;
  --accent-color: #398cf1;
  --text-color: #dfcaca;
  /* Fluid type scale 16px → 20px */
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  /* Fluid spacing scale */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-s : clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
  --space-m : clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-l : clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
}

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


html {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  text-align: center;
}
body {
  padding: min(50px, 7%);
  background-color: rgb(13, 13, 20);
}

body {
  min-height: 100vh;
  /*  background: url('laptop.jpg'); */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  line-height: 1.5;
}

h1 {
  margin: 30px 0;
}
.card {
  padding: 2em;
  border: 1px solid rgb(75, 82, 92);
  border-radius: 10px;
  background-color: #222429;
  text-align: left;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  justify-content: center;
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: -0.05em;
  background-color: blue;
  color: white;
  padding: 0.5em 1em;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.5),
    0 6px 6px rgba(225, 29, 72, 0.5), 0 0 100px -10px gray;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.25),
    0 10px 10px rgba(225, 29, 72, 0.22), 0 0 120px -10px green;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.section {
  margin-top: 5rem;
}

.loading {
  filter: blur(40px) grayscale(100%);
}

.loaded {
  filter: blur(0) grayscale(0);
  transition: 0.7s ease-in-out;
}







/* ALL GRID CONTAINERS */
/* ... (Main Content Grid and Card styles remain the same) ... */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
  padding: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  grid-template-rows: auto;
  gap: 15px;
  justify-content: space-evenly;
  align-content: center;
  align-items: center;
  box-sizing: border-box;
  width:500px;
  height: 500px;
  margin-left: auto;
  margin-right: auto;
  background: #dceff7;
  border: 2px solid rgba(114, 186, 94, 0.35);
}


.grid-item {
  box-sizing: border-box;
  width: 100px;
  height: 100px;
  background: #FBF2C0;
  border: 2px solid rgba(236, 198, 48, 0.5);
}
 
.card-grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
   border: 2px solid rgba(114, 186, 94, 0.35);
}

.tag-cloud {
  display: flex;
  display: inline-block;
  color: white;
  padding: 8px 20px;
  font-family: Arial;
  border-radius: 25px;
  background-color: #2196F3;
  margin-top: 8px;
}

.site-header {
  flex: 1 1 0;
}

a:link, a:visited {
  background-color: #293030;
  color: #fff;
  padding: 15px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: #008000; 
}

.parent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 5px;
  grid-row-gap: 5px;
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  animation: fadeUp 0.6s ease-out both;
  animation-timeline: view();   /* modern browsers */
}

 /* Button Styling for TopDown Scroller */
.btn {
  padding: var(--space-s) var(--space-m);
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: box-shadow 0.25s;
}
.btn:hover {
  box-shadow: 0 0 0 4px rgba(0,102,255,.25);
}


.rounded-image {
  border-radius: 50px;
  width: 300px;
  height: auto;
}


img {
    border-radius: 10px;
}

#round {
  border-radius: 12px;
  background: #4A5CFE;
  padding: 0px; 
  width: 100px;
  height: 100px; 
} 

.card-container {
    width: 500px;
    height: 500px;
    margin: 50px auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.card-container img {
  height: 100%;
  width: 100%;
}


.card {
    height: 800px;
    width: 500px;
    border: 1px solid black;
    border-radius: 8px; /* Consider using a CSS variable */
    margin: 5px;
    
}


/* Navigation Styles 

nav li {
    display: inline-flex;
    
}

nav li a {
    color: #fff;
    text-decoration: none;
}


/* Footer Styles */
footer {
    background-color: darkblue;
    color: white; 
    text-align: center;
    padding: 20px 10px;
    border: 1px solid lightgrey; /* Consider specifying border style and color */
    margin: 15px;
}

footer li {
    list-style-type: none;
}



/* Media Queries */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding-top: 20px;
        text-align: center;
    }

    /* Responsive columns */
    .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
        gap: 1rem;
    }

    .item {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    @media screen and (max-width: 400px) {
        .column {
            width: 100%;
            display: block;
            margin-bottom: 20px;
        }
    }
}

/* Style the counter cards */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding: 16px;
    text-align: center;
    background-color: #f1f1f1;
}

/* Tablets and Under */
@media (max-width: 768px) {
    .grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
