@font-face {
    font-family: 'Eloquia';
    src: url('typekiln-eloquiadisplay-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

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

body {
    background-color: #0E0E0E;
    color: #F5F5F5;
    font-family: 'Eloquia', Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    padding: 50px 0 20px 80px;
    flex-shrink: 0;
    position: relative;
}

header h1 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #F5F5F5;
    opacity: 0.8;
    margin: 0;
}

.subtitle-link {
    color: #5DADE2;
    text-decoration: none;
    transition: opacity 0.3s;
}

.subtitle-link:hover {
    opacity: 0.7;
}

.back-arrow {
    position: absolute;
    left: 20px;
    top: 50px;
    color: #F5F5F5;
    text-decoration: none;
    font-size: 48px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    line-height: 72px;
}

.back-arrow:hover {
    opacity: 0.7;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.landing-layout {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: 50%;
    padding-left: 80px;
}

.nav-buttons a {
    color: #F5F5F5;
    text-decoration: none;
    font-size: 56px;
    font-weight: 800;
    transition: opacity 0.3s;
    width: fit-content;
}

.nav-buttons a:hover {
    opacity: 0.7;
}

.profile-image-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-right: 80px;
}

.profile-image {
    max-width: 700px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile styles */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    header {
        padding: 30px 20px 20px 20px;
    }

    header h1 {
        font-size: 48px;
    }

    .header-subtitle {
        font-size: 16px;
    }

    main {
        padding: 20px 20px;
        overflow-y: visible;
    }

    .landing-layout {
        flex-direction: column;
        justify-content: flex-start;
        gap: 50px;
        height: auto;
    }

    .nav-buttons {
        gap: 40px;
        width: 100%;
        padding-left: 0;
    }

    .nav-buttons a {
        font-size: 42px;
        width: fit-content;
    }

    .profile-image-container {
        width: 100%;
        padding: 0 20px;
    }

    .profile-image {
        max-width: 100%;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 36px;
    }

    .header-subtitle {
        font-size: 13px;
    }

    .nav-buttons a {
        font-size: 32px;
    }
}

.content-page {
    padding: 40px;
}

/* Projects Page Styles */
.projects-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px 80px 40px 80px;
    display: flex;
    flex-direction: column;
}

.projects-main::-webkit-scrollbar {
    width: 8px;
}

.projects-main::-webkit-scrollbar-track {
    background: transparent;
}

.projects-main::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

.projects-main::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

.projects-main {
    scrollbar-width: thin;
    scrollbar-color: #333333 transparent;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.projects-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-item {
    color: #F5F5F5;
    font-family: 'Eloquia', Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    opacity: 0.8;
}

.stat-separator {
    color: #F5F5F5;
    opacity: 0.5;
    font-size: 18px;
}

.projects-filter {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-btn {
    background: none;
    border: none;
    color: #F5F5F5;
    font-family: 'Eloquia', Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    padding: 5px 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.filter-btn:hover {
    opacity: 0.7;
}

.filter-btn.active {
    opacity: 1;
    text-decoration: underline;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.project-card {
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
    padding-bottom: 40px;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image-wrapper {
    position: relative;
    overflow: visible;
    aspect-ratio: 1;
    border-radius: 0;
}

.project-research-badge {
    position: absolute;
    top: calc(9.5% + 10px);
    right: 10px;
    background-color: rgba(50, 50, 50, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #0E0E0E;
}

/* Carousel for architecture projects */
.project-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #0E0E0E;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.project-info {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(14, 14, 14, 1) 0%, rgba(14, 14, 14, 0.98) 30%, rgba(14, 14, 14, 0.90) 60%, transparent 100%);
    padding: 80px 20px 20px;
    transform: translateY(0);
    transition: transform 0.3s;
}

.project-title {
    color: #F5F5F5;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 35px;
}

.project-description {
    color: #F5F5F5;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
    word-break: break-word;
}

.project-link-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #F5F5F5;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10;
}

.project-card:hover .project-link-icon {
    opacity: 1;
}

.project-link-icon svg {
    display: block;
}

.project-date {
    color: #F5F5F5;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Experience Page Styles */
.experience-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding-left: 80px;
}

.experience-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 80px 40px 0;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.experience-container::-webkit-scrollbar {
    width: 8px;
}

.experience-container::-webkit-scrollbar-track {
    background: transparent;
}

.experience-container::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

.experience-container::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

.experience-container {
    scrollbar-width: thin;
    scrollbar-color: #333333 transparent;
}

.experience-entry {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    justify-content: space-between;
}

.experience-content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 600px;
}

.experience-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.experience-date {
    font-size: 24px;
    margin-bottom: 25px;
    opacity: 0.8;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.company-link {
    color: #3B82F6;
    text-decoration: underline;
}

.company-link:hover {
    opacity: 0.7;
}

.experience-bullets {
    list-style-position: outside;
    padding-left: 25px;
    margin: 0;
}

.experience-bullets li {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.experience-image-container {
    flex: 0 0 auto;
    padding-right: 120px;
}

.experience-image {
    width: 400px;
    max-width: 100%;
    height: 325px;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

footer {
    padding: 20px 0 30px 80px;
    text-align: left;
    flex-shrink: 0;
}

.footer-copyright {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-links a {
    color: #F5F5F5;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links svg {
    width: 24px;
    height: 24px;
    fill: #F5F5F5;
}

@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        background-color: #0E0E0E;
        z-index: 101;
        margin-top: -1px;
        padding-top: calc(30px + 1px);
    }

    .back-arrow {
        font-size: 40px;
        left: 20px;
        top: 45px;
    }

    .projects-main {
        padding: 30px 20px;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }

    .projects-stats {
        gap: 10px;
    }

    .stat-item {
        font-size: 16px;
    }

    .stat-separator {
        font-size: 16px;
    }

    .projects-filter {
        gap: 15px;
    }

    .filter-btn {
        font-size: 20px;
        padding: 8px 15px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    @media (max-width: 500px) {
        .projects-grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }

    .project-card {
        padding-bottom: 35px;
    }

    .project-info {
        bottom: -35px;
    }

    .project-title {
        font-size: 20px;
        padding-right: 30px;
    }

    .project-description {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }

    .project-date {
        font-size: 11px;
    }

    .project-link-icon {
        bottom: 10px;
        right: 10px;
    }

    .project-link-icon svg {
        width: 18px;
        height: 18px;
    }

    .experience-main {
        padding-left: 20px;
    }

    .experience-container {
        padding: 30px 20px 30px 0;
        gap: 50px;
    }

    .experience-entry {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .experience-content {
        max-width: 100%;
    }

    .experience-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .experience-date {
        font-size: 18px;
        margin-bottom: 20px;
        white-space: normal;
    }

    .experience-bullets {
        padding-left: 20px;
    }

    .experience-bullets li {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .experience-image-container {
        width: 100%;
        padding-right: 0;
    }

    .experience-image {
        width: 100%;
        height: auto;
        aspect-ratio: 970 / 790;
    }

    .scroll-indicator {
        font-size: 24px;
        bottom: 15px;
    }

    footer {
        padding: 15px 20px;
        position: sticky;
        bottom: 0;
        background-color: #0E0E0E;
        z-index: 100;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-links svg {
        width: 20px;
        height: 20px;
    }
}

/* Hobbies Page Styles */
.hobbies-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding: 40px 80px;
}

.hobbies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    height: fit-content;
    overflow-y: auto;
    padding-bottom: 40px;
    align-items: flex-start;
    align-content: flex-start;
}

.hobbies-grid::-webkit-scrollbar {
    width: 8px;
}

.hobbies-grid::-webkit-scrollbar-track {
    background: transparent;
}

.hobbies-grid::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

.hobbies-grid::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

.hobbies-grid {
    scrollbar-width: thin;
    scrollbar-color: #333333 transparent;
}

.hobby-item {
    background: transparent;
    overflow: visible;
    position: relative;
    flex-shrink: 0;
}

/* Image items */
.hobby-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 600px;
    max-height: 600px;
    object-fit: contain;
}

/* Text items */
.hobby-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 50px;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    min-width: 200px;
}

.hobby-text {
    color: #F5F5F5;
    font-family: 'Eloquia', Arial, sans-serif;
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hobby-size-small .hobby-text-container {
    padding: 20px 35px;
}

.hobby-size-small .hobby-text {
    font-size: 32px;
}

.hobby-size-medium .hobby-text-container {
    padding: 30px 50px;
}

.hobby-size-medium .hobby-text {
    font-size: 48px;
}

.hobby-size-large .hobby-text-container {
    padding: 40px 60px;
}

.hobby-size-large .hobby-text {
    font-size: 64px;
}

/* Mobile responsiveness for hobbies */
@media (max-width: 1024px) {
    .hobbies-main {
        padding: 30px 40px;
    }

    .hobbies-grid {
        gap: 15px;
    }

    .hobby-image {
        max-width: 500px;
        max-height: 500px;
    }

    .hobby-text {
        font-size: 36px;
    }

    .hobby-size-small .hobby-text {
        font-size: 24px;
    }

    .hobby-size-medium .hobby-text {
        font-size: 36px;
    }

    .hobby-size-large .hobby-text {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hobbies-main {
        padding: 20px;
    }

    .hobbies-grid {
        gap: 10px;
    }

    .hobby-image {
        max-width: 400px;
        max-height: 400px;
    }

    .hobby-text {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .hobby-size-small .hobby-text {
        font-size: 18px;
    }

    .hobby-size-medium .hobby-text {
        font-size: 24px;
    }

    .hobby-size-large .hobby-text {
        font-size: 32px;
    }

    .hobby-text-container {
        padding: 15px 25px;
    }

    .hobby-size-small .hobby-text-container {
        padding: 12px 20px;
    }

    .hobby-size-large .hobby-text-container {
        padding: 20px 35px;
    }
}

@media (max-width: 480px) {
    .hobbies-grid {
        gap: 8px;
    }

    .hobby-image {
        max-width: 100%;
        max-height: 300px;
    }

    .hobby-text {
        font-size: 20px;
    }

    .hobby-size-small .hobby-text,
    .hobby-size-medium .hobby-text,
    .hobby-size-large .hobby-text {
        font-size: 20px;
    }

    .hobby-text-container,
    .hobby-size-small .hobby-text-container,
    .hobby-size-medium .hobby-text-container,
    .hobby-size-large .hobby-text-container {
        padding: 12px 20px;
    }
}

/* Contact Page Styles */
.contact-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.contact-email {
    color: #F5F5F5;
    font-family: 'Eloquia', Arial, sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    text-align: center;
}

.contact-links {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.3s;
}

.contact-link:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.contact-link svg {
    width: 80px;
    height: 80px;
    fill: #F5F5F5;
}

/* Mobile responsiveness for contact */
@media (max-width: 768px) {
    .contact-main {
        padding: 20px;
    }

    .contact-container {
        gap: 30px;
    }

    .contact-email {
        font-size: 24px;
    }

    .contact-links {
        gap: 40px;
    }

    .contact-link svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .contact-email {
        font-size: 20px;
    }

    .contact-links {
        gap: 30px;
    }

    .contact-link svg {
        width: 50px;
        height: 50px;
    }
}
