/* ==============================
GLOBAL STYLES
============================== */

@import url('https://fonts.googleapis.com/css2?family=Ballet&family=Inter:wght@300;400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #111;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* ==============================
    INTRO PAGE (index.html)
    ============================== */

.intro-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.intro-page.light {
    background-color: #fff;
    color: #000;
}

.intro-text h1 {
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
}

.intro-container {
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .last-name {
        display: none;
    }
}
  
@media (min-width: 769px) {
    .last-name {
        display: inline;
    }
}

.ballet {
    font-family: 'Ballet', cursive;
    font-size: 3.5rem;
    letter-spacing: 0.05em;
    display: inline-block;
}

.intro-desc {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    line-height: 1.6;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.cta {
    margin-top: 4rem;
}

.view-projects {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 400;
    border-bottom: 1px solid #000;
    padding-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.view-projects:hover {
    transform: translateX(5px);
}

/* ==============================
   FOOTER (SOCIAL LINKS)
   ============================== */

.home-footer {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    animation: fadePageIn 1.5s ease forwards;
    animation-delay: 2.5s;
}

.home-footer a {
    color: #555;
    text-decoration: none;
    margin: 0 0.4rem;
    transition: opacity 0.3s ease;
}

.home-footer a:hover {
    opacity: 0.5;
}

@media (max-width: 600px) {
    .home-footer {
        position: static;
        padding: 0; 
    }
}

/* ==============================
    ANIMATIONS
    ============================== */

@keyframes fadeIn {
    from {
    opacity: 0;
    transform: translateY(10px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
    opacity: 0;
    transform: translateY(20px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 1s;
}

.fade-in-late {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 2.2s;
}

.slide-up {
    opacity: 0;
    animation: slideUp 1.5s ease forwards;
    animation-delay: 0.5s;
}

/* ==============================
    PROJECTS PAGE (projects.html)
    ============================== */

.topbar {
    display: flex;
    justify-content: space-between;
    padding: 2.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h1.title {
    font-size: 4rem;
    text-align: center;
    margin: 2rem 0;
    font-weight: 300;
}

.work {
    width: 90%;
    margin: 0 auto;
}

.section-header {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media(min-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.work-item {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    flex-direction: column;
    color: #666;
    margin-bottom: 1rem;
}

.work-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.link {
    text-decoration: none;
    color: #404040;
    position: relative;
    display: inline-block;
    margin-top: 2.5rem;
}

.link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #1a1a1a;
    left: 0;
    bottom: -2px;
    transition: width 0.3s;
}

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

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #666;
}

.projects-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* ==============================
PAGE LOAD FADE-IN
============================== */

.fade-on-load {
    opacity: 0;
    animation: fadePageIn 1.2s ease forwards;
}

@keyframes fadePageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  