/* ========== GLOBAL RESET ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #000 60%);
    color: #e5e7eb;
    min-height: 100vh;
}

.page-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

/* ========== NAVBAR ========== */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: sticky;
    top: 0;
    padding: 10px 12px;
    background: linear-gradient(to bottom, rgba(15,23,42,0.9), rgba(15,23,42,0.6), transparent);
    backdrop-filter: blur(10px);
    z-index: 20;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #f87171aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fee2e2;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.8);
}

.nav-name {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 0.9rem;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #f87171;
    transition: width 0.2s;
}

.nav-links a:hover {
    color: #e5e7eb;
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .nav-links {
        flex-wrap: wrap;
    }
}

/* ========== HERO ========== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-greeting {
    font-size: 1rem;
    color: #9ca3af;
}

/* ROTATOR NAMA ↔ CYBER SECURITY */
.hero-title-rotator {
    position: relative;
    height: clamp(3.6rem, 5vw, 7rem); 
    margin-bottom: 6px;
    overflow: hidden;
}

.hero-title-rotator .hero-title {
    position: absolute;
    left: 0;
    top: 0;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(14px);
}

.hero-title-main {
    color: #e0f2fe;
    animation: showName 6s infinite ease-in-out;
}

.hero-title-alt {
    color: #f87171;
    text-shadow: none;
    animation: showCyber 6s infinite ease-in-out;
}

.hero-subtitle-small {
    font-size: 0.95rem;
    color: #f87171;
    opacity: 0.9;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-title-rotator .hero-title {
        font-size: 2rem;
    }
}

.hero-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #9ca3af;
    max-width: 520px;
    text-align: justify;
    text-justify: inter-word;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-contact-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #f8717155;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.3);
    color: #e5e7eb;
}

.contact-icon {
    font-size: 0.9rem;
}

.hero-photo-wrapper {
    justify-self: end;
}

.neon-card-photo {
    padding: 6px;
    border-radius: 22px;
    background: radial-gradient(circle at top, #f8717155, #0b1120 55%, #020617 100%);
    box-shadow: 0 0 24px rgba(248, 113, 113, 0.7);
    animation: floatPhoto 3s ease-in-out infinite;
}

.neon-card-photo img {
    display: block;
    border-radius: 18px;
    width: 260px;
    height: 320px;
    object-fit: cover;
}

/* BUTTONS */

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid #f87171;
    color: #f87171;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(248, 113, 113, 0.12);
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.8);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* ========== SECTIONS ========== */

.section {
    margin: 72px 0 56px;
    scroll-margin-top: 110px;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    max-width: 620px;
    margin-bottom: 18px;
}

/* ========== ABOUT ========== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.about-stat {
    border-radius: 18px;
    border: 1px solid #f8717155;
    padding: 16px;
    text-align: center;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.25);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.about-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.7);
    border-color: #f87171;
}

.about-stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 0.9rem;
    color: #cbd5f5;
}

/* ========== GENERIC CARDS ========== */

.neon-card {
    border-radius: 18px;
    border: 1px solid #f8717133;
    padding: 18px 18px 20px;
    background: radial-gradient(circle at top, #020617, #020617 60%, #000);
    box-shadow: 0 0 10px rgba(15,23,42,0.9);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.neon-card:hover {
    transform: translateY(-6px);
    border-color: #f87171aa;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.8);
    background: radial-gradient(circle at top, #020617, #020617 40%, #020617);
}

.card-title {
    font-size: 1rem;
    margin-bottom: 6px;
}

.card-text {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #f87171;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* ========== TIMELINE (EDUCATION & EXPERIENCE) ========== */

.timeline {
    position: relative;
    margin-left: 14px;
    padding-left: 22px;
    padding-top: 4px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #f87171, #fb7185, #ef4444);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
    animation: glowLine 3s ease-in-out infinite alternate;
}

.timeline-item {
    position: relative;
    margin-bottom: 22px;
}

.timeline-dot {
    position: absolute;
    left: -11px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #f87171;
    border: 2px solid #fecaca;
    box-shadow:
        0 0 10px rgba(248, 113, 113, 0.9),
        0 0 20px rgba(248, 113, 113, 0.7),
        0 0 35px rgba(248, 113, 113, 0.5);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.timeline-content {
    margin-left: 6px;
    padding: 10px 12px 12px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.95), #020617);
    border: 1px solid #1f2937;
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    border-color: #f87171aa;
    box-shadow: 0 0 20px rgba(248,113,113,0.75);
    background: radial-gradient(circle at top left, rgba(15,23,42,1), #020617);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.timeline-header h3 {
    font-size: 1rem;
}

.timeline-year {
    font-size: 0.85rem;
    color: #9ca3af;
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: #a5b4fc;
    margin-top: 2px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1.5;
}

/* ========== SKILLS & EXPERTISE ========== */

.skills-section {
    margin-top: 8px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 16px;
}

.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(248,113,113,0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.skill-card:hover::before {
    opacity: 1;
}

/* icon di tengah */
.skill-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.35);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-icon i {
    width: 38px;
    height: 38px;
    color: #f87171;
    opacity: 0.9;
}

.skill-card:hover .skill-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.7);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.skill-level-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.skill-text {
    margin-bottom: 12px;
}

.skill-level {
    margin-top: 4px;
}

.skill-level-label {
    font-size: 0.8rem;
    color: #9ca3af;
    display: inline-block;
    margin-bottom: 4px;
}

.skill-level-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #020617;
    border: 1px solid #1f2937;
    overflow: hidden;
}

.skill-level-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to right, #f87171, #fb7185);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.7);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.skill-level-high { width: 90%; }
.skill-level-medium { width: 70%; }
.skill-level-low { width: 50%; }

.skill-card:hover .skill-level-fill {
    transform: scaleX(1.03);
}

/* ========== PROJECTS (2x2 GRID) ========== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.project-card {
    width: 100%;
    min-height: auto;
}

.project-thumb {
    width: 100%;
    height: 130px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(248, 113, 113, 0.25);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.25);
    background: #0f172a;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.07);
}

/* ========== CONTACT ========== */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: 24px;
}

.contact-info p {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.contact-list {
    list-style: none;
    font-size: 0.9rem;
    color: #cbd5f5;
}

.contact-list li + li {
    margin-top: 4px;
}

.contact-form {
    border-radius: 18px;
    border: 1px solid #f8717133;
    padding: 16px 16px 18px;
    background: radial-gradient(circle at top, #020617, #020617 60%, #000);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #020617;
    border-radius: 10px;
    border: 1px solid #1f2937;
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #e5e7eb;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b7280;
}

.contact-form input:disabled,
.contact-form textarea:disabled {
    opacity: 0.6;
}

/* ========== FOOTER ========== */

.footer {
    margin-top: 40px;
    border-top: 1px solid #111827;
    padding-top: 16px;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-photo-wrapper {
        justify-self: center;
        order: -1;
        margin-bottom: 18px;
    }

    .hero-text {
        margin-inline: auto;
    }

    .hero-actions {
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-title-rotator .hero-title {
        font-size: 2rem;
    }
}

/* ========== ANIMATIONS ========== */

@keyframes floatPhoto {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 18px rgba(248, 113, 113, 0.6);
    }
    50% {
        transform: translateY(-14px) scale(1.03) rotate(-1deg);
        box-shadow: 0 0 28px rgba(248, 113, 113, 0.9);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 18px rgba(248, 113, 113, 0.6);
    }
}

/* NAMA */
@keyframes showName {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    45% {
        opacity: 1;
        transform: translateY(0);
    }
    55% {
        opacity: 0;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* CYBER SECURITY */
@keyframes showCyber {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }
    50% {
        opacity: 0;
        transform: translateY(14px);
    }
    60% {
        opacity: 1;
        transform: translateY(0);
    }
    95% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

/* garis timeline */
@keyframes glowLine {
    0% {
        box-shadow: 0 0 4px rgba(248, 113, 113, 0.3);
        opacity: 0.9;
    }
    100% {
        box-shadow: 0 0 16px rgba(248, 113, 113, 0.9);
        opacity: 1;
    }
}

/* titik timeline berdenyut */
@keyframes pulseDot {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 8px rgba(248, 113, 113, 0.75),
            0 0 18px rgba(248, 113, 113, 0.6),
            0 0 26px rgba(248, 113, 113, 0.4);
    }
    50% {
        transform: scale(1.35);
        box-shadow:
            0 0 14px rgba(248, 113, 113, 1),
            0 0 28px rgba(248, 113, 113, 0.9),
            0 0 42px rgba(248, 113, 113, 0.8),
            0 0 60px rgba(248, 113, 113, 0.55);
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 0 8px rgba(248, 113, 113, 0.75),
            0 0 18px rgba(248, 113, 113, 0.6),
            0 0 26px rgba(248, 113, 113, 0.4);
    }
}

.hero-actions {
    align-items: flex-start; /* supaya konten di hero-actions tidak full width */
}

.hero-actions .btn-outline {
    width: auto;            /* mencegah tombol melebar */
padding: 10px 210px;     /* ukuran tombol proporsional */
}
