/* Global styles */
body {
  background-color: rgba(24, 24, 24);
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Section backgrounds */
.my-div{
  width: 100%;
  padding: 2em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.my-div1, .my-div2, .my-div3, .my-div4 {
  width: 100%;
  padding: 2em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.my-div { background-image: url('./assets/widecoding.jpg'); }

/* Project grid styles */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 2vw, 20px);
    padding: 0;
}

@media (max-width: 900px) {
    .projects-container{
        gap: 10px;
    }

    .hack-card{
        margin: 5px 0;
    }
}

@media (max-width: 600px){
    .projects-container{
        gap: 6px;
    }

    .hack-card{
        margin: 4px 0;
        width: 95%;
        max-width: none;
    }
}


/* Default: stack vertically on small screens */
.project-card {
  flex: 1 1 100%; /* take full width */
  max-width: 400px; /* optional max width */
}

/* For larger screens - horizontal layout */
@media (min-width: 900px) {
  .project-card {
    flex: 1 1 30%; /* roughly 3 cards per row */
    max-width: none;
  }
}


.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 15px;
  border-radius: 8px;
  max-width: 550px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-card img.project-image {
  display: block;
  margin: 10px auto;
  max-height: 190px;
  object-fit: contain;
  border-radius: 5px;
}

.project-card h4 {
  margin: 10px 0 6px;
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
}

.project-card h4 a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-card h4 a:hover {
  color: #1e90ff;
}

.project-card p {
  margin: 8px 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: justify;
}

.project-card h5 {
  margin: 15px 10px 5px;
  font-weight: 600;
  font-size: 1.1rem;
}

.project-card .tools {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0 0;
}

.project-card .tools img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(1); /* keep icons bright */
  transition: transform 0.2s ease;
}

.project-card .tools img:hover {
  transform: scale(1.1);
}




.hack-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 15px;
  border-radius: 8px;
  max-width: 450px;
  margin: 20px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hack-card img.hack-image {
  display: block;
  margin: 10px auto;
  max-height: 190px;
  object-fit: contain;
  border-radius: 5px;
}

.hack-card .tools img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(1); /* keep icons bright */
  transition: transform 0.2s ease;
}

.hack-card .tools img:hover {
  transform: scale(1.1);
}

/* Contact section */
.contact-section {
  margin: auto;
  width: 90%;
  padding: 4em 2em;
  text-align: center;
  box-sizing: border-box;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .my-div, .my-div1, .my-div2, .my-div3 {
    padding: 1.5em 1em;
  }

  .project-card {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 1em 0;
  }

  .project-grid {
    flex-direction: column;
    align-items: center;
  }

  p {
    font-size: 0.95rem;
  }

  h1, h2, h3, h4, h5 {
    word-wrap: break-word;
  }
}

button {
    display: inline-block;
    background-color: #2d2d2d;
    border-radius: 10px;
    border: 4px double #2d2d2d;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    font-size: 10px;
    padding: 10px;
    width: 160px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
}
button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}
button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}
button:hover {
    background-color: #000000;
}
button:hover span {
    padding-right: 25px;
}
button:hover span:after {
    opacity: 1;
    right: 0;
}



.skills-container{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
    margin:20px auto 40px;
    max-width:900px;
}

.skill-badge{
    display:flex;
    align-items:center;
    gap:10px;

    padding:10px 18px;

    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;

    backdrop-filter:blur(10px);

    transition:all .25s ease;

    cursor:default;
}

.skill-badge img{
    width:24px;
    height:24px;
}

.skill-badge span{
    color:white;
    font-size:.95rem;
    font-weight:500;
}

.skill-badge:hover{
    transform:translateY(-3px);
    border-color:#4ea8ff;
    box-shadow:0 8px 20px rgba(0,0,0,.3);
}

@media (max-width:768px){

    .skills-container{
        gap:10px;
    }

    .skill-badge{
        padding:8px 14px;
    }

    .skill-badge span{
        font-size:.85rem;
    }

}