/* Global Styles */
body {
    background-color: #1e1e1e; /* Very dark gray background */
    color:  #ffffff ; /* Green text */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for terminal look */
    font-size: 16px; /* Base font size */
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100vh;
}


nav {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    border: 2px solid #EBECF1;
    border-radius: 30px;
    animation: slide-in 1s ease-out;
  }
  
  ul {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    margin: 0;
    padding: 0 30px;
    list-style-type: none;
    li:not(:last-child) {
      margin-right: 40px;
    }
    li {
      border: 2px solid transparent;
      border-radius: 5px;
      padding: 10px;
      transition: background 0.2s;
      a {
        color:  #ffffff ;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 0.2s;
      }
      ul {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        display: block;
        margin: 12px -12px;
        padding: 0;
        background:  #ffffff ;
        border: 2px solid  #ffffff ;
        border-right: 2px solid  #ffffff ;
        border-bottom: 2px solid  #ffffff ;
        border-radius: 5px;
        transition: opacity 0.2s, visibility 0.2s;
        li {
          margin: -2px 0 0 -2px;
          width: calc(100% - 20px);
          line-height: 1.7;
          a {
            color: #2375D8;
          }
        }
      }
      &:hover {
        background: #15ff00;
        border: 2px solid #000000;
        border-right: 2px solid #000000;
        border-bottom: 2px solid #000000;
        a {
          color: #000000;
        }
        ul {
          visibility: visible;
          opacity: 1;
          box-shadow: 0px 3px 5px 2px #EBECF1;
          li {
            a {
              color: #000000;
            }
          }
        }
      }
    }
  }
  
  @keyframes slide-in {
    0% {
      top: -50px;
    }
    40% {
      top: 20px;
    }
    70% {
      top: 10px;
    }
    100% {
      top: 15px;
    }
  }
/* Header */
header {
    padding: 25px;
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    /*border-bottom: 2px solid  #ffffff ;*/
}

/* text animation */
@keyframes animated-text{
    from{width: 0;}
    to{width: 472px;}
  }
  /* cursor animations */
 @keyframes animated-cursor{
    from{border-right-color: rgba(0,255,0,.75);}
    to{border-right-color: transparent;}
  }
h1 {
    padding: 10px;
    margin-top: 75px;
    overflow: hidden;  
    animation: animated-cursor 600ms steps(29,end) infinite;
}
/* Main Content */
main {
    padding: 20px;
    font-size: 1.2em;
}

/* Section Headers */
h2 {
    font-size: 30px;
    border-top: 1px solid  #ffffff ;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Paragraphs */
p {
    margin-bottom: 20px;
}

/* Links */

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    border-top: 2px solid  #ffffff ;
    margin-top: 20px;
}

.text-image-container {
    display: flex;
    align-items: right; /* Aligns text and image vertically */
  }
  
  .text-image-container p {
    margin-right: 10px; /* Adds some spacing between the text and the image */
  }
  
  .text-image-container img {
    width: 240px; /* Adjust size as needed */
    height: 240px;
  }
  
  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-preview {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-brief {
    color: #666;
    line-height: 1.5;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8f8f8;
}

.project-details-content {
    padding: 1.5rem;
}

.project-details.active {
    max-height: 1000px;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.inbox {
  color: #000000;

}

.tech-tag {
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    color: #495057;
}

.read-more {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}