:root {
    --bg-dark: #0D1B2A;
    --bg-medium: #1B263B;
    --text-light: #E0E1DD;
    --text-medium: #A9A9A9;
    --accent-indigo: #818CF8;
}
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
}
.container {
    width: 95%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}
.container .logo{
    /*background-color: rgba(255,255,255,0.87);*/
}
header {
    background-color: rgba(27, 38, 59, 0.85);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #334155;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
header .logo {
    /*border: 2px solid var(--accent-indigo);*/
    padding: 5px;
    border-radius: 5px;
    transition: opacity 0.3s;
}
header .logo.hidden {
    opacity: 0;
    pointer-events: none;
}
header .logo img {
    vertical-align: middle;
}
header nav a {
    color: var(--text-medium);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
header nav a:hover {
    color: var(--text-light);
}
.hamburger-menu {
    display: none;
    cursor: pointer;
}
.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}
section {
    padding-bottom: 30px;
    scroll-margin-top: 64px;

}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#home
{
    margin: -94px 0 64px 0;
}
#home .center{
    padding: 30px 0;
    width: 100%;
    max-height: 150px;
    animation: fadeIn 2s ease-in-out forwards;
    background-color: rgba(27, 38, 59, 0.65);
}

#home img{
    width: 90%;
    margin: -1.5em;
    max-width: 500px;
    text-align: center;
}
#home div{
    font-weight: bold;
    font-size: 1.2em;
}
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}
.hero h1 {
}
.hero img {
    margin: 0 auto;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-medium);
}
h2 {
    text-align: center;
    font-size: 2em;
    background-color: rgba(27, 38, 59, 0.85);
}
.card {
    background-color: var(--bg-medium);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}
.card-image {
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    width: 100%;
}
a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    list-style: none;
    padding: 0;
}
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2 p{
        min-height: 4.5em;
    }
    #goldfish-apng
    {
        width: 12em;
        height: auto;
        z-index: -1;
    }
    .project-card h3 {
        font-size: 1.4em;
    }
    .blog-card h3 {
        font-size: 1.2em;
    }
    h2 {
        margin-top: 1em;
    }
}
@media (max-width: 767px) {
    .representative-container {
        flex-direction: column;
        text-align: center;
    }
    .representative-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    header nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        background-color: rgba(27, 38, 59, 0.95);
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    header nav.active {
        display: flex;
    }
    header nav a {
        margin: 15px 0;
    }
    .hamburger-menu {
        display: block;
    }
    .container {
        margin: 0 auto;
        width: 90%;
    }
    #home div{
        font-weight: bold;
        font-size: 1em;
    }
    h2 {
        margin-top: 2em;
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.5em;
    }
    .card {
        padding: 25px;
    }
    #goldfish-apng
    {
        width: 9em;
        height: auto;
        z-index: -1;
    }
    .project-card h3 {
        font-size: 1.3rem;
    }
    .blog-card h3 {
        font-size: 1.3rem;
    }
}
#about .card {
    padding: 40px;
}
#about .representative-container {
    display: flex;
    align-items: center;
}
#about .representative-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}
#about h3 {
    font-size: 1.75rem;
    margin-top: 0;
}
#about ul {
    list-style: none;
    padding: 0;
}
#about ul li {
    margin-bottom: 10px;
}
#about ul li strong {
    color: var(--text-light);
}
.project-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.project-card .target {
    display: inline-block;
    background-color: #374151;
    color: var(--text-medium);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 20px;
}
.card-footer{
      display: flex;
      justify-content: space-between;
      margin-top: auto;
}
.card-footer span.target{
}
.card-footer span.details-link{
    margin-top: 20px;
    color: var(--accent-indigo);
    font-weight: bold;
    transition: transform 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}

.card-link:hover .details-link {
    transform: scale(1.05);
    text-shadow: 0 0 8px var(--accent-indigo);
}

.read-more-link {
    margin-top: 20px;
    color: var(--accent-indigo);
    font-weight: bold;
    transition: transform 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
    text-align: end;
}

.card-link:hover .read-more-link {
    transform: scale(1.05);
    text-shadow: 0 0 8px var(--accent-indigo);
}
.blog-card .type {
    display: inline-block;
    background-color: rgba(129, 140, 248, 0.2);
    color: var(--accent-indigo);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    width: fit-content;
}
.blog-card h3 {
    margin: 15px 0 10px;
}
.blog-card a {
    color: var(--accent-indigo);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}
footer {
    background-color: rgba(27, 38, 59, 0.85);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: var(--text-medium);
}
footer .social-links a {
    color: var(--text-medium);
    text-decoration: none;
    margin: 0 10px;
}
footer .social-links a:hover {
    color: var(--text-light);
}
p.fontsize1-3em
{
    font-size: 1.3em;
}

main {
    flex-grow: 1;
    padding-top: 0px; /* Header height */
}

.representative-container a
{
    color: #fff;
}

.card.no-hover:hover {
    transform: none;
}
