/* ============================================
   PAGE-SPECIFIC STYLES
   Styles for individual pages
   ============================================ */

/* -------------------- Hero Section (Landing) -------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__greeting {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-deep);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__greeting::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.hero__name {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-deep) 50%, var(--primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease-out 0.2s forwards;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero__title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* Role titles - staggered entrance animation */
.role {
    display: inline-block;
    color: var(--primary-deep);
    font-weight: 500;
    opacity: 0;
    transform: translateX(-20px);
}

.role-separator {
    opacity: 0;
}

/* Staggered timing - after photo fades in (1.1s) */
.role--1 {
    animation: slideInRole 0.6s ease-out 1.3s forwards;
}

.role--1+.role-separator {
    animation: fadeIn 0.3s ease-out 1.8s forwards;
}

.role--2 {
    animation: slideInRole 0.6s ease-out 2.1s forwards;
}

.role--2+.role-separator {
    animation: fadeIn 0.3s ease-out 2.6s forwards;
}

.role--3 {
    animation: slideInRole 0.6s ease-out 2.9s forwards;
}

@keyframes slideInRole {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero__buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Button entrance animation - appears quickly after page load */
.hero__buttons .btn {
    opacity: 0;
    transform: scale(0.8);
}

.hero__buttons .btn:nth-child(1) {
    animation: zoomFadeIn 0.5s ease-out 0.6s forwards;
}

.hero__buttons .btn:nth-child(2) {
    animation: zoomFadeIn 0.5s ease-out 0.8s forwards;
}

@keyframes zoomFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero image with organic shape */
.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
    box-shadow: var(--shadow-medium);
}

/* Leaf SVG decorations */
.hero__leaf {
    position: absolute;
    opacity: 0.2;
    fill: var(--primary);
}

.hero__leaf--1 {
    width: 120px;
    top: -20px;
    left: -60px;
    transform: rotate(-30deg);
}

.hero__leaf--2 {
    width: 80px;
    bottom: 40px;
    right: -40px;
    transform: rotate(45deg);
}

.hero__leaf--3 {
    width: 60px;
    top: 50%;
    right: -30px;
    transform: rotate(15deg);
}

@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__greeting::before {
        display: none;
    }

    .hero__image-wrapper {
        order: -1;
    }

    .hero__image {
        max-width: 300px;
    }

    .hero__buttons {
        justify-content: center;
    }
}

/* -------------------- About Page -------------------- */
.about-section {
    padding: var(--space-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.about-image {
    width: 100%;
    border-radius: 62% 38% 70% 30% / 45% 55% 45% 55%;
    box-shadow: var(--shadow-medium);
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-content ul {
    margin-left: var(--space-md);
    margin-top: var(--space-sm);
}

.about-content ul li {
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* -------------------- Experience Page -------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.tech-section {
    margin-bottom: var(--space-xl);
}

.cert-section {
    margin-bottom: var(--space-xl);
}

.experience-section {
    max-width: 700px;
}

/* -------------------- Resume Page -------------------- */
.resume-section {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.resume-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.resume-preview {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.resume-preview iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* -------------------- Contact Page -------------------- */
.contact-section {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition);
    text-align: left;
}

.contact-link:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.contact-link__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary-deep);
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-link__info {
    flex: 1;
}

.contact-link__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-link__value {
    font-weight: 500;
    color: var(--text);
}

/* -------------------- Page Headers -------------------- */
.page-header {
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-bottom: var(--space-lg);
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.page-header h1 {
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-deep) 50%, var(--primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease-out 0.2s forwards;
}

.page-header__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: var(--space-sm) auto 0;
}