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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #000;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#tsparticles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
}

main {
    position: relative;
    z-index: 1;
}

section,
nav,
a,
.btn,
p,
h1,
h2,
h3,
ul,
li,
div {
    pointer-events: auto;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    height: 18px;
    width: auto;
    min-width: 50px;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    object-fit: contain;
}

.main-logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: #000;
}

.nav-icons a {
    color: #1d1d1f;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 2rem;
}

#hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

#hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 0.75rem;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 3rem;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-top: -1.5rem;
}

.btn {
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000;
    background-color: transparent;
    border: 1.5px solid #000;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.btn:hover {
    background-color: #0f2d5e;
    border-color: #0f2d5e;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 45, 94, 0.2);
}

section {
    padding: 150px 2rem;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.about-body {
    max-width: 700px;
    margin: 0 auto;
}

.about-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.skill-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #000;
    margin-bottom: 1.25rem;
}

.skill-col ul {
    list-style: none;
}

.skill-col li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.6rem;
}

.apple-projects-section {
    padding: 120px 2rem;
    background-color: #ffffff;
}

.apple-container {
    max-width: 1000px;
    margin: 0 auto;
}

.apple-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.apple-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #86868b;
    text-align: left;
    margin: 0;
}

.apple-title strong {
    color: #1d1d1f;
    font-weight: 700;
}

.carousel-nav {
    display: flex;
    gap: 12px;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #e8e8ed;
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    background: #d2d2d7;
}

.apple-cards-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px;
    scrollbar-width: none;
}

.apple-cards-wrapper::-webkit-scrollbar {
    display: none;
}

.apple-card {
    flex: 0 0 310px;
    height: 460px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apple-card:hover {
    transform: scale(1.02);
    box-shadow: 2px 8px 25px rgba(0, 0, 0, 0.08);
}

.card-text-area {
    padding: 30px 24px 0 24px;
}

.card-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    color: #86868b;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.apple-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.apple-card p {
    font-size: 0.95rem;
    color: #515154;
    line-height: 1.4;
}

.card-img-area {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    margin-top: 10px;
}

.card-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0 0 20px 20px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-card:hover .card-img-area img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .apple-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .carousel-nav {
        display: none;
    }

    .apple-card {
        flex: 0 0 280px;
    }
}

.icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.icons a {
    color: #000;
    transition: 0.3s;
}

.icons a:hover {
    color: #002C60;
    transform: translateY(-3px);
}

.copy {
    font-size: 0.8rem;
    color: #ccc;
}

.translation-sidebar {
    position: fixed;
    left: 20px;
    width: 180px;
    font-size: 0.8rem;
    color: #86868b;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
    text-align: left;
}

.translation-sidebar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.translate-hover {
    cursor: default;
    text-decoration: none !important;
}

.translate-hover:hover {
    color: #002C60;
    transition: color 0.3s ease;
    cursor: default;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .apple-card {
        flex: 0 0 310px;
        height: 460px;
        background-color: #ffffff;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        scroll-snap-align: start;
        overflow: hidden;
        text-align: left;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .apple-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    }

    .apple-cards-wrapper {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-top: 15px;
        padding-bottom: 40px;
        scrollbar-width: none;
    }

    .carousel-nav {
        display: none;
    }

    .projects-header {
        flex-direction: column;
        text-align: center;
    }

    .apple-section-title {
        font-size: 1.8rem;
    }

    .apple-section-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 30px;
        padding-left: 15px;
    }

    .translation-sidebar {
        display: none;
    }
}

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem;
}

#contact h2 {
    margin-bottom: 20px;
}

.contact-line {
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 40px;
    max-width: 600px;
}

.site-footer {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 22px;
}

.footer-quick-links h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.footer-pill {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #1d1d1f;
    background: transparent;
    border: 1px solid #1d1d1f;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
    letter-spacing: 0.01em;
}

.footer-pill:hover {
    background-color: #1d1d1f;
    color: #ffffff;
}

.footer-fine-print {
    margin-bottom: 20px;
}

.footer-fine-print p {
    font-size: 12px;
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-fine-print ol {
    font-size: 12px;
    color: #86868b;
    line-height: 1.5;
    padding-left: 18px;
    margin: 0;
}

.footer-fine-print ol li {
    margin-bottom: 6px;
}

.footer-divider {
    border: none;
    border-bottom: 1px solid #d2d2d7;
    margin: 20px 0;
}

.footer-directory {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 28px;
    padding-top: 12px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 12px;
    color: #86868b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 12px;
    color: #86868b;
    padding-top: 12px;
    border-top: 1px solid #d2d2d7;
}

@media (max-width: 768px) {
    .footer-directory {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-pills {
        justify-content: center;
    }

    .footer-quick-links h3 {
        text-align: center;
    }

    .footer-fine-print {
        text-align: center;
    }

    .footer-fine-print ol {
        text-align: left;
    }

    .footer-copyright {
        text-align: center;
    }
}

.contact-email {
    font-size: 1rem;
    font-weight: 100;
    color: #1d1d1f;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 40px;
    position: relative;
    letter-spacing: -0.02em;
}

.contact-email::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #1d1d1f;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 480px) {
    .footer-directory {
        grid-template-columns: 1fr;
    }
}

.apple-card:first-child {
    margin-left: 15px;
}

.apple-card:last-child {
    margin-right: 15px;
}

.disabled-link {
    text-decoration: line-through !important;
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}