/* MR Syah Work polish layer: responsive layout, cleaner portfolio modal, safer admin-era content rendering. */
:root {
    --surface: #111821;
    --surface-2: #172232;
    --surface-3: #202d3f;
    --line-soft: rgba(144, 164, 190, 0.18);
    --ok-accent: #36e0a1;
    --warning-accent: #ffd166;
}

html {
    cursor: auto;
    scroll-padding-top: 98px;
}

* {
    cursor: auto;
}

a,
button,
[onclick],
input,
textarea,
select,
.portfolio-card {
    cursor: pointer;
}

input,
textarea,
select {
    cursor: text;
}

.custom-cursor,
.cursor-dot {
    display: none !important;
}

body {
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        radial-gradient(circle at 78% 12%, rgba(0, 212, 255, 0.10), transparent 26rem),
        linear-gradient(180deg, #0c1117 0%, #101720 48%, #0d1219 100%);
    background-size: 42px 42px, 42px 42px, auto, auto;
}

.home-compact .about,
.home-compact .awards-section,
.home-compact .pricing,
.home-compact .testimonial,
.home-compact .contact {
    display: none !important;
}

.tech-marquee {
    overflow: hidden;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(4, 8, 15, 0.45);
}

.tech-marquee-track {
    display: flex;
    width: max-content;
    gap: 42px;
    padding: 18px 0;
    animation: techMarquee 28s linear infinite;
}

.tech-marquee-track span {
    color: #9ca9bc;
    font-family: "Courier New", monospace;
    font-size: 14px;
    white-space: nowrap;
}

.tech-marquee-track span::before {
    content: "<>";
    color: var(--primary-color);
    margin-right: 12px;
}

@keyframes techMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.section-kicker {
    color: var(--primary-color);
    font-family: "Courier New", monospace;
    font-size: 14px;
    margin-bottom: 12px;
}

.portfolio-featured-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.portfolio-featured-title {
    color: var(--text-primary);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.view-all-link {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.view-all-link:hover {
    color: var(--primary-color);
}

.featured-grid {
    max-height: none;
}

.home-final-cta {
    padding: clamp(50px, 7vw, 90px) 0;
}

.cta-panel {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: clamp(26px, 5vw, 56px);
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.12), transparent 45%),
        rgba(17, 24, 33, 0.92);
    text-align: center;
}

.cta-panel h2 {
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
    margin-bottom: 14px;
}

.cta-panel p {
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 26px;
}

.page-hero {
    padding: 170px 0 54px;
}

.page-hero h1 {
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1;
}

.page-hero p {
    color: var(--text-secondary);
    max-width: 720px;
    font-size: 18px;
    margin-top: 18px;
}

.simple-page-section {
    padding: 40px 0 90px;
}

.simple-copy {
    max-width: 850px;
    color: #d8e2f1;
    font-size: 18px;
    line-height: 1.8;
}

.about-profile-grid {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 380px);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.about-photo-wrap {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 12px;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.12), transparent 52%),
        rgba(17, 24, 33, 0.92);
}

.about-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
}

.awards-page-section {
    padding-top: 20px;
}

.award-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.award-card {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 18px;
    background: rgba(17, 24, 33, 0.92);
}

.award-image-frame {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: #0b1017;
    border: 1px solid rgba(0, 212, 255, 0.22);
}

.award-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.award-card h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin: 18px 0 8px;
}

.award-card p {
    color: var(--text-secondary);
}

.container {
    width: min(1180px, calc(100% - 40px));
    padding: 0;
}

.header {
    padding: 12px 0;
    background: rgba(12, 17, 23, 0.86);
    border-bottom: 1px solid var(--line-soft);
}

.header .container {
    min-height: 70px;
    gap: 22px;
}

.logo {
    width: 64px;
    height: 64px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.14);
}

.nav-menu {
    gap: clamp(12px, 2vw, 30px);
}

.nav-menu a,
.nav-dropdown-btn {
    font-size: 14px;
    color: #c7d3e4;
}

.language-toggle {
    background: rgba(23, 34, 50, 0.82);
}

.hero {
    min-height: calc(100vh - 94px);
    margin-top: 94px;
    padding: 84px 20px 72px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(0, 212, 255, 0.16), transparent 38%),
        linear-gradient(300deg, rgba(54, 224, 161, 0.12), transparent 34%);
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-bg {
    display: none;
}

.hero-content {
    max-width: 860px;
    isolation: isolate;
}

.hero-title {
    font-size: clamp(44px, 7vw, 92px);
    line-height: 0.95;
}

.hero-subtitle {
    font-size: clamp(26px, 4vw, 52px);
    color: var(--primary-color);
}

.hero-description {
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    color: #b8c7da;
}

.hero-cta {
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

.section-title {
    font-size: clamp(32px, 5vw, 58px);
}

.portfolio,
.about,
.pricing,
.testimonial,
.contact {
    position: relative;
    padding-top: clamp(70px, 8vw, 110px);
    padding-bottom: clamp(70px, 8vw, 110px);
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.portfolio-card {
    height: auto;
    min-height: 320px;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(23, 34, 50, 0.96), rgba(14, 20, 28, 0.98));
}

.portfolio-title-section {
    min-height: 76px;
    padding: 16px 18px;
    background: rgba(12, 17, 23, 0.74);
}

.portfolio-header {
    font-size: 16px;
    color: #eaf3ff;
    overflow-wrap: anywhere;
}

.portfolio-image-wrapper {
    min-height: 244px;
    order: 1;
}

.portfolio-title-section {
    order: 2;
}

.portfolio-content {
    display: none !important;
}

.portfolio-category-label {
    display: none !important;
}

.portfolio-card:hover {
    transform: translateY(-6px);
}

.portfolio-desc {
    max-height: none;
    -webkit-line-clamp: 3;
}

.tech-tag,
.tag-item {
    border-radius: 6px;
}

.portfolio-modal {
    padding: 18px;
}

.modal-backdrop {
    background: rgba(3, 7, 12, 0.82);
    backdrop-filter: blur(8px);
}

.modal-container {
    width: min(1120px, 100%);
    max-height: min(88vh, 820px);
    border-radius: 8px;
    background: #151c2a;
}

.modal-content-wrapper {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 34px;
    padding: 34px;
}

.modal-image-main {
    aspect-ratio: 16 / 11;
    border-radius: 8px;
}

.modal-image-main img {
    object-fit: contain;
    background: #0b1017;
}

.modal-image-thumbnails {
    display: none !important;
}

.modal-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
}

.modal-item-title {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.modal-description {
    max-height: 320px;
    color: #c2cede;
}

.modal-close {
    top: 16px;
    right: 16px;
}

.pricing-card,
.testimonial-card,
.contact-card {
    border-radius: 8px;
}

@media (max-width: 980px) {
    .nav-menu {
        gap: 14px;
    }

    .nav-menu a,
    .nav-dropdown-btn {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 84px;
    }

    .container {
        width: min(100% - 28px, 1180px);
    }

    .header {
        padding: 8px 0;
    }

    .header .container {
        min-height: 62px;
        padding: 0;
    }

    .logo {
        width: 54px;
        height: 54px;
    }

    .nav-menu.active {
        top: 79px;
        left: 14px;
        right: 14px;
        border: 1px solid var(--line-soft);
        border-radius: 8px;
        padding: 10px 16px 16px;
        max-height: calc(100vh - 96px);
    }

    .nav-dropdown-wrapper {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 10px;
        min-width: 0;
        width: 100%;
    }

    .nav-dropdown-menu.active {
        display: block;
    }

    .hero {
        min-height: auto;
        margin-top: 78px;
        padding: 72px 14px 56px;
    }

    .portfolio-featured-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero {
        padding: 126px 0 38px;
    }

    .about-profile-grid,
    .about-hero-grid,
    .award-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        width: min(100%, 420px);
        margin-left: auto;
        margin-right: auto;
    }

    .portfolio-card {
        min-height: 340px;
    }

    .portfolio-image-wrapper {
        min-height: 230px;
    }

    .modal-container {
        max-height: calc(100vh - 28px);
    }

    .modal-content-wrapper {
        grid-template-columns: 1fr;
        padding: 58px 18px 20px;
        gap: 20px;
    }

    .modal-image-main {
        aspect-ratio: 16 / 10;
    }

    .modal-actions {
        position: sticky;
        bottom: 0;
        padding-top: 10px;
        background: linear-gradient(180deg, transparent, #151c2a 30%);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 26px;
    }

    .hero-description {
        font-size: 15px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        min-height: 320px;
    }

    .portfolio-title-section {
        min-height: auto;
    }

    .modal-image-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
