/* ====================================
   Homepage Specific Styles
   ==================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero-content {
    max-width: 750px;
}

.hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero h1 em {
    font-style: italic;
    color: var(--text-muted);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* Projects Section */
#projects {
    background: var(--card-bg);
    transition: background-color 0.3s ease;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-card:nth-child(even) {
    direction: rtl;
}

.project-card:nth-child(even)>* {
    direction: ltr;
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--tag-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-placeholder {
    font-family: 'Instrument Serif', serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-number {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.project-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.project-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.project-link {
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 0.6rem;
}

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

/* Experience Section */
#experience {
    background: var(--bg);
}

.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.experience-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.experience-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-top: 0.25rem;
}

.experience-content h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.experience-description {
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 600px;
}

.experience-description p {
    margin-bottom: 1rem;
}

.experience-description p:last-child {
    margin-bottom: 0;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.experience-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.25s ease;
}

[data-theme="dark"] .resume-download-btn {
    color: #000;
}

.resume-download-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .resume-download-btn:hover {
    background: #fff;
    color: #000;
}

.resume-download-btn svg {
    width: 16px;
    height: 16px;
}

/* About Section */
#about {
    background: var(--card-bg);
    transition: background-color 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.about-image {
    aspect-ratio: 1;
    background: var(--tag-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.about-text h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

/* Contact Section */
#contact {
    background: var(--accent);
    color: #fff;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] #contact {
    color: #000;
}

#contact .section-label {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] #contact .section-label {
    color: rgba(0, 0, 0, 0.5);
}

#contact .section-title {
    color: #fff;
}

[data-theme="dark"] #contact .section-title {
    color: #000;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

[data-theme="dark"] .contact-text {
    color: rgba(0, 0, 0, 0.7);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

[data-theme="dark"] .contact-link {
    color: #000;
}

.contact-link:hover {
    transform: translateX(5px);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

/* Footer */
footer {
    background: var(--accent);
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] footer {
    color: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .logo {
    color: #fff;
}

[data-theme="dark"] footer .logo {
    color: #000;
}

/* Responsive */
@media (max-width: 900px) {
    .project-card,
    .project-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .experience-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .experience-date {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }
}
