body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
ul {
    list-style: none;
}


body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
}
body.fade-in {
    opacity: 1;
}
body.fade-out {
    opacity: 0;
}

header {
    background-color: #1e293b;
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}
.justify-between {
    justify-content: space-between;
}
.items-center {
    align-items: center;
}
.space-x-6 {
    display: flex;
    gap: 1.5rem;
}

nav ul {
    display: flex;
}
nav ul li a {
    color: #f8fafc;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s;
}
nav ul li a:hover,
nav ul li a[aria-current="page"] {
    color: #d1d5db;
}

.underline-animation {
    display: inline-block;
    position: relative;
    text-decoration: none;
}
.underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #84cc16;
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.3s ease-out;
}
.underline-animation:hover::after,
.underline-animation[aria-current="page"]::after {
    transform: scaleX(1);
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.font-semibold {
    font-weight: 600;
}
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.page {
    display: none;
    outline: none;
}
.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.flex-col {
    flex-direction: column;
    padding: 1rem;
}
.gap-8 {
    gap: 2rem;
}
.rounded-full {
    border-radius: 50%;
}
.shadow-lg {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.text-gray-200 {
    color: #e5e7eb;
}
.text-gray-300 {
    color: #d1d5db;
}
.leading-relaxed {
    line-height: 1.75;
}
.mt-4 {
    margin-top: 1rem;
}
.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.text-center{
    text-align: center;
}
.max-w-md{
    max-width: 28rem;
}
.mx-auto{
    margin-left: auto;
    margin-right: auto;
}
.block{
    display: block;
}
.text-sm{
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.font-bold{
    font-weight: bold;
}
.mb-2{
    margin-bottom: 0.5rem;
}
.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.appearance-none{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.border{
    border-width: 1px;
    border-color: #e5e7eb;
}
.py-2{
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.px-3{
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.leading-tight{
    line-height: 1.25rem;
}
.focus\:outline-none:focus{
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.focus\:shadow-outline:focus {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}
.bg-gray-700{
    background-color: #374151;
}
.text-white{
    color: #fff;
}
.h-32{
    height: 8rem;
}
.resize-y{
    resize: vertical;
}
.bg-blue-500{
    background-color: #3b82f6;
}
.hover\:bg-blue-700:hover{
    background-color: #2563eb;
}
.rounded{
    border-radius: 0.375rem;
}


.about-image-wrapper {
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
        align-items: center;
        padding: 0;
    }
    .md\:w-1\/3 {
        width: 33.3333%;
        max-width: 200px;
    }
    .md\:w-2\/3 {
        width: 66.6667%;
    }
    .about-image-wrapper {
        margin-right: 2rem;
        margin-bottom: 0;
    }
}


.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid > .project-card:last-child:nth-child(3) {
        grid-column: 2 / 3;
    }
}

.project-card {
    background: rgba(55, 65, 81, 0.97);
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: transform 0.2s, box-shadow 0.2s;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.project-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.project-card img {
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.project-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}
.project-card p {
    flex: 1;
    color: #d1d5db;
    margin-bottom: 1rem;
}
.project-card a {
    color: #60a5fa;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
    margin-top: auto;
    display: block;
}
.project-card a:hover {
    color: #3b82f6;
}


.profile-img, img {
    max-width: 100%;
    height: auto;
    display: block;
}

footer {
    padding: 1rem;
    text-align: center;
    background-color: #1e293b;
    color: #f8fafc;
    margin-top: 2rem;
}

.projects-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #d1d5db;
    font-weight: 600;
    letter-spacing: 0.02em;
}
