/* ============================================================
   PAGE-SPECIFIC STYLES — LEXEND FONT & FITTED PHOTOS EDITION
   ============================================================ */

/* ===== HOME PAGE DESKTOP 100VH NO SCROLL FIT ===== */
@media (min-width: 993px) {
    body.home-page {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    body.home-page .page-content {
        padding-top: 80px;
        padding-bottom: 0;
        min-height: auto;
        flex: 1;
        display: flex;
        align-items: center;
    }

    body.home-page .hero-section {
        width: 100%;
        min-height: auto;
    }

    body.home-page .hero-grid {
        gap: 40px;
    }

    body.home-page .hero-avatar-wrap {
        width: 380px;
        height: 380px;
    }

    body.home-page .bottom-skills-marquee {
        margin-top: 0;
        padding: 12px 0;
    }

    body.home-page .footer {
        padding: 12px 0;
    }
}

.hero-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

@media (min-width: 993px) {
    .hero-content {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        column-gap: 60px;
        align-items: center;
    }

    .hero-header-row { grid-column: 1; grid-row: 1; }
    .hero-visual { grid-column: 2; grid-row: 1 / span 5; }
    .hero-tagline { grid-column: 1; grid-row: 2; }
    .hero-description { grid-column: 1; grid-row: 3; }
    .hero-roles { grid-column: 1; grid-row: 4; }
    .hero-cta { grid-column: 1; grid-row: 5; }
}

.hero-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-header-row .hero-greeting {
    margin-bottom: 0;
}

.hero-greeting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-red);
    background: #fef2f2;
    border: 1px solid #fecaca;
    flex-shrink: 0;
}

.hero-greeting .wave {
    font-size: 1.4rem;
    display: inline-block;
    animation: waveHand 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes waveHand {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-8deg); }
    50% { transform: rotate(10deg); }
}

/* SINGLE-LINE SOLID RED HERO NAME */
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
    color: #ef4444;
    display: inline-block;
    white-space: nowrap;
}

.hero-name .line-1,
.hero-name .line-2 {
    display: inline;
    color: #ef4444;
    background: none;
    -webkit-text-fill-color: initial;
}

/* ANIMATED TEXT LIGHT YELLOW BACKGROUND */
.hero-tagline {
    font-size: 1.08rem;
    font-weight: 600;
    color: #0f172a;
    background: #fef9c3;
    border: 1px solid #fef08a;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 16px;
    margin-top: 6px;
    min-height: 2.2em;
    box-shadow: 0 2px 8px rgba(254, 240, 138, 0.4);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 540px;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Avatar Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-avatar-wrap {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-elevated);
    border: 4px solid #ffffff;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Badges */
.float-badge {
    position: absolute;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-float);
    animation: floatBadge 4s ease-in-out infinite;
}

.float-badge svg { width: 16px; height: 16px; }

.float-badge-1 { top: 8%; right: -25px; color: var(--accent-emerald); animation-delay: 0s; }
.float-badge-2 { bottom: 8%; left: -25px; color: var(--accent-cyan); animation-delay: -1.3s; }
.float-badge-3 { top: 52%; right: -30px; color: var(--accent-rose); animation-delay: -2.6s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: start;
}

.about-image-card {
    padding: 20px;
}

/* About Photo 90% Increase (380px) */
.about-image-card img {
    width: 100%;
    height: auto;
    max-height: 420px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: var(--shadow-float);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.stat-card {
    padding: 22px 16px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #ef4444;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: #ef4444 !important;
    background: none !important;
    -webkit-text-fill-color: #ef4444 !important;
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a !important;
    margin-top: 6px;
    line-height: 1.3;
}

.about-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fef2f2;
}

.detail-icon svg {
    width: 18px;
    height: 18px;
    color: #ef4444;
}

.detail-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

/* ===== SKILLS PAGE (4 COLUMNS PER ROW ON DESKTOP & FULL SECTION FITTED PHOTOS) ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

@media (min-width: 993px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }
}

.skill-card {
    padding: 0;
    overflow: hidden;
}

/* FULL SECTION FITTED SKILL PHOTOS */
.skill-card-img-wrap {
    width: 100%;
    height: 220px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
}

.skill-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-medium);
}

.skill-card:hover .skill-card-img-wrap img {
    transform: scale(1.05);
}

.skill-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.skill-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.skill-bar-wrap {
    margin-top: auto;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
}

.skill-bar {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
    width: 100%;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-bar-fill.animated {
    width: var(--w, 85%) !important;
}

.skill-bar-fill.violet { background: var(--accent-violet) !important; }
.skill-bar-fill.cyan { background: var(--accent-cyan) !important; }
.skill-bar-fill.rose { background: var(--accent-rose) !important; }
.skill-bar-fill.emerald { background: var(--accent-emerald) !important; }
.skill-bar-fill.amber { background: var(--accent-amber) !important; }

/* ===== MY PROJECT PAGE ===== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 993px) {
    .experience-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        max-width: 100% !important;
    }
}

.project-category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-top: 40px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-subtle);
}

.project-category-title span {
    color: var(--accent-red);
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.project-thumb-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-subtle);
}

.project-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-medium);
}

.project-card:hover .project-thumb-wrap img {
    transform: scale(1.05);
}

.project-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.project-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.project-card-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

.project-card-title a:hover {
    color: var(--accent-red);
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--accent-red);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-top: 14px;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-visit:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

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

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.contact-info-panel,
.contact-form-panel {
    padding: 36px;
}

.contact-info-panel h3,
.contact-form-panel h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-white);
}

.contact-info-panel p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.contact-link:hover {
    border-color: var(--border-medium);
    background: #ffffff;
    transform: translateX(4px);
}

.contact-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-link-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: #ef4444;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

textarea.form-input {
    min-height: 130px;
    resize: vertical;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image-card img { width: 300px; height: 300px; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* MOBILE VIEW: PHOTO SHOWS RIGHT AFTER HARI KISKU TEXT */
@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-header-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 8px;
        margin-bottom: 14px;
    }

    .hero-name { white-space: normal; text-align: center; }

    .hero-visual {
        margin: 16px 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-description { text-align: center; }
    .hero-roles { justify-content: center; }
    .hero-cta { justify-content: center; }

    .hero-avatar-wrap { width: 260px; height: 260px; }
    .float-badge { display: none; }
    .about-details { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-image-card img { width: 260px; height: 260px; }
}
