@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Fira+Code:wght@400;700&family=Roboto+Mono:wght@400;700&display=swap');

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fefefe;
    color: #0f1c2c;
    padding: 0;
    margin: 0;
}

.main {
    margin: 0 20%;
    padding-top: 2em;
    padding-bottom: 5em;
}

/* ASCII header style */
.ascii-header {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5px;
    white-space: pre;
    margin: 0em;
    color: #e3e8ee;
}

header {
    background-color: #3d536d;
    padding: 1%;
}

.ascii-heading {
    font-family: 'Courier New', Courier, monospace;
    font-size: 6px;
    white-space: pre;
    margin: 1em;
    color: #3d536d;
}

/* Profile Section */
.profile {
    display: flex;
    flex-wrap: wrap; /* allow wrapping on small screens */
    align-items: center;
    gap: 2em;
    padding: 2em;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom:5em;
    margin-top:5em;
}
.profile-text{
    max-width:400px;
}

.profile img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text h1 {
    margin: 0;
    font-size: 3em;
    font-family: monospace;
    font-weight: bolder;
    color: #2c3c4f;
}

.profile-text p {
    margin-top: 0.5em;
    line-height: 1.4;
}

/* Projects Section */
.projects {
    padding: 2em;
}

.tags {
    margin-bottom: 1em;
    display: flex;
    flex-wrap: wrap; /* allow wrapping on small screens */
}

.tags button {
    background: #e0e0e0;
    border: none;
    margin: 0 0.3em 0.3em 0;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 15px;
    font-family: monospace;
}

.tags button.active {
    background: #3d536d;
    color: white;
    font-weight: bold;
}

.tags button:hover {
    background: #5a708c;
    color: white;
    font-weight: bold;
}

/* Project grid container */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    margin-bottom:5em;
}

.project-grid a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.project-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
}

.project-card h1 {
    margin: 0.5em;
    font-size: 1em;
}

.project-card p {
    margin: 0.5em;
    font-size: 0.9em;
    color: #555;
}
.project-content{
    padding:0.5em;
}

.project-tags {
    font-family: monospace;
  margin: 0.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: auto;
}

.project-tags span {
  background: #e0e0e0;
  border-radius: 12px;
  padding: 0.3em 0.8em;
  font-size: 0.85em;
  font-family: monospace;
  color: #333;
}

.project-tags span:hover {
  background: #5a708c;
  color: #fff;
  font-weight: bold;
}


/* Footer */
footer {
    background-color: #3d536d;
    color: #ffffff;
    padding: 2em 1em;
    text-align: center;
}

footer .ascii-header {
    font-family: 'Courier New', Courier, monospace;
    font-size: 4px;
    white-space: pre;
    margin-bottom: 4em;
    color: #e2e8ee;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.social-links {
    margin-bottom: 0.5em;
}

.social-links a {
    margin: 0 1em;
    color: #cdd3da;
    font-size: 1.5em;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #f8f9f8;
}

footer p {
    font-size: 0.9em;
    color: #cccccc;
    font-family: 'Inter', sans-serif;
}


/* Responsive adjustments */
@media (max-width: 1000px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
details {
  background: #5a708c;       /* light gray */
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.8em 1em;
  margin: 1.5em 0;
  color:#eaedf2;
}
summary {
    font-family: monospace;
    font-size: 20px;
}
details[open] summary {
  font-weight: bold;
    color:#5a708c;

}
details[open]{
          background: #f9f9f9;
          color:#3d536d;

}
details p {
    margin-left: 5%;
    margin-right: 5%;
}
@media (max-width: 600px) {
    .main {
        margin: 0 5%;
        padding-top: 1em;
        padding-bottom: 3em;
    }

    .profile {
        flex-direction: column;
        gap: 1.5em;
        padding: 1em;
    }

    .profile img {
        width: 180px;
        height: 180px;
    }

    .profile-text h1 {
        font-size: 2em;
        text-align: center;
    }

    .profile-text p {
        text-align: center;
    }

    .tags {
        justify-content: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 150px;
    }

    .ascii-heading, .ascii-header {
        font-size: 2px; /* smaller for mobile */
    }
}
