* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-color: hsl(48, 70%, 42%);
    --accent-light: hsl(48, 70%, 52%);
    --accent-dark: hsl(48, 70%, 32%);
    --background: hsl(0, 0%, 100%);
    --surface: hsl(0, 0%, 96%);
    --surface-light: hsl(0, 0%, 98%);
    --text-primary: hsl(0, 0%, 2%);
    --text-secondary: hsl(0, 0%, 30%);
    --text-muted: hsl(0, 0%, 40%);
    --border: hsl(240, 3.7%, 84.1%);
    --animation-duration: 300ms;
    --font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

.slide-down {
    animation: slideDown var(--animation-duration) ease-out forwards;
}

.accent {
    color: var(--accent-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--background);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--background);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    padding: 1rem 2rem;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    animation: slideDown var(--animation-duration) ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out 0.2s forwards;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

.nav-link:nth-child(1) {
    animation-delay: 0.3s;
}

.nav-link:nth-child(2) {
    animation-delay: 0.4s;
}

.nav-link:nth-child(3) {
    animation-delay: 0.5s;
}

.nav-link:nth-child(4) {
    animation-delay: 0.6s;
}
.nav-link:nth-child(5) {
    animation-delay: 0.7s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.resume-btn {
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out 0.8s forwards;
    cursor: pointer;
    color: var(--accent-color);
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out 0.2s forwards;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 3px 0;
    transition: 0.3s;

}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 30% 20%, hsla(48, 70%, 42%, 0.1) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-content {
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out 0.3s forwards;
}

.profile-image {
    width: 8rem;
    height: 8rem;
    margin: 5rem auto 0;
    border-radius: 50%;
    opacity: .8;
}

.profile-image img {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    font-family: var(--font-family);
    background: var(--accent-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(2rem, 4vw, 2rem);
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out 0.7s forwards;
}

.hero-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out 0.9s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn var(--animation-duration) ease-out 1.1s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.chevron-down {
    width: 2rem;
    height: 2rem;
    border-right: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    transform: rotate(45deg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
}

.section-header.visible {
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

.section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    font-family: var(--font-family);
    margin-bottom: 1rem;
}

h2 img {
    width: clamp(1.5rem, 4vw, 2.5rem);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.projects {
    padding: 6rem 0;
    background-color: var(--surface);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--surface-light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.project-card.visible {
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: rgba(var(--accent-color), 0.2);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent-light);
}

.tech-stack {
    padding: 6rem 0;
    background-color: var(--background);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-category {
    background-color: var(--surface);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(50px);
}

.tech-category.visible {
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tech-item {
    background-color: var(--surface-light);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    background-color: var(--accent-color);
    color: var(--background);
    transform: translateY(-2px);
}

.contact {
    padding: 6rem 0;
    background-color: var(--surface);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container {
    opacity: 0;
    transform: translateY(50px);
}

.contact-form-container.visible {
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

.contact-form {
    background-color: var(--surface-light);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--surface);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--background);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-message {
    background-color: var(--surface-light);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--accent-color);
    color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.success-message h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(50px);
}

.contact-links.visible {
    animation: fadeIn var(--animation-duration) ease-out 0.2s forwards;
}

.contact-link {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
    background-color: var(--surface-light);
    transform: translateY(-2px);
}

.contact-icon {
    margin-right: 1rem;
    font-size: 1.25rem;
}

.footer {
    background-color: var(--background);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
}

.footer.visible p {
    animation: fadeIn var(--animation-duration) ease-out forwards;
}

.posts-list {
    margin-top: 8rem;
    list-style-type: none;
    animation: fadeIn var(--animation-duration) ease-out forwards;
    min-height: 80vh;
    margin-inline: auto;
    max-width: 55ch;
}


.posts-list a {
    all: unset;
    cursor: pointer;
    filter: brightness(0.8);
    color: var(--text-muted);
    transition: filter 200ms ease-in-out;
}

.posts-list a:hover {
    filter: brightness(1);
    color: var(--text-secondary);
}

.posts-list img {
    width: 100%;
    border-radius: .5rem;
}

.posts-list h2 {
    font-family: var(--font-family);
    color: var(--text-primary);
}

.posts-list h2 {
    color: var(--accent-color);
}

.mt-5 {
    margin-block-start: 5rem;
}

.back {
    transform: rotate(180deg);
    display: flex;
    cursor: pointer;
    width: max-content;
    color: var(--accent-color);
}

.back:hover {
    color: var(--accent-light);
    transition: color 100ms ease-in-out;
}

.back input {
    all: unset;
    font-size: 2rem;
}

.post {
    max-width: 55ch;
    margin-inline: auto;
}

.post > * {
    margin-top: 1rem;
}

.post > img {
    width: 100%;
    border-radius: .5rem;
}

code {
    background-color: var(--surface);
    color: var(--accent-dark);
    padding: .125rem;
    margin-inline-end: .25rem;
}

.table-wrapper {
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: min-content;
    overflow-x: scroll;
}

tr { 
    display: flex;
    align-items: left;
}

tr>td:nth-child(1),
tr>th:nth-child(1),
tr>td:nth-child(2),
tr>th:nth-child(2){
    width: 25%
}
tr>td:nth-child(3),
tr>th:nth-child(3){
    width: 50%;
}

tr > * {
    padding: .5rem;
    outline: 1px solid rgba(0,0,0,.1); 
}

tr:nth-child(n+1) {
    background: var(--surface);
}
tr:nth-child(n+2) {
    background: var(--surface-light);
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        flex-direction: column;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-links {
        order: -1;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .contact-form,
    .success-message {
        padding: 1.5rem;
    }
}