* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #1a1717;
    --card: #2a1c1c;
    --card2: #241818;
    --text: #ffffff;
    --muted: #d8c9c9;
    --primary: #460404;
    --primary-dark: #000000;
    --border: #3a2626;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   NAVBAR (disamakan dengan nav di portfolio.css)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background-color: rgba(15, 13, 13, 0.95);
    padding: 15px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    box-sizing: border-box;
    transition: all 0.3s ease;
    border-bottom: none;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.logo span {
    color: var(--primary);
    color: #ff6b6b;
}

.navbar nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
}

.navbar nav a {
    margin: 0 12px;
    color: #fff;
    font-size: 15px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.navbar nav a:hover {
    color: var(--primary);
    border-radius: 10px;
    background-color: #fff;
    padding: 4px 8px;
}

.nav-login {
    border: none;
}

@media (min-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 25px 10% 20px 10%;
    }

    .navbar nav {
        width: auto;
        gap: 0;
    }

    .navbar nav a {
        margin: 0 20px;
        font-size: 18px;
    }

    .navbar nav a:hover {
        padding: 6px 12px;
    }
}

/* ==========================================================================
   HERO / HOME (disamakan dengan .home di portfolio.css)
   ========================================================================== */
.hero {
    min-height: auto;
    clear: both;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: 20px;
    padding: 120px 20px 40px 20px;
    margin-bottom: 10px;
}

.hero-content {
    max-width: 100%;
    margin: 20px 10px;
    text-align: center;
}

.eyebrow {
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 30px;
    line-height: 1.2;
}

.hero h1 span {
    display: inline-block;
    color: #ff6b6b;
    font-weight: bold;
}

.hero-text {
    max-width: 100%;
    color: var(--muted);
    margin-top: 15px;
    font-size: 18px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    order: -1;
    margin: 20px auto;
}

.hero-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 20px rgb(0, 0, 0);
}

@media (min-width: 768px) {
    .hero {
        flex-wrap: nowrap;
        padding: 140px 60px 60px 60px;
    }

    .hero-image {
        order: 0;
        margin-top: 60px;
        margin-left: 40px;
        margin-right: 30px;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
    }

    .hero-content {
        max-width: 60%;
        margin: 0 50px;
        text-align: left;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero-text {
        text-align: justify;
    }

    .hero-buttons {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   TOMBOL (disamakan dengan .btn di portfolio.css)
   ========================================================================== */
.btn {
    background-color: var(--primary);
    color: #fff;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: normal;
    font-family: inherit;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.primary {
    background-color: var(--primary);
    color: #fff;
}

.btn.primary:hover {
    background-color: #ffffff;
    color: var(--primary);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: #fff;
}

.btn.secondary:hover {
    background-color: #fff;
    color: var(--primary);
}

/* ==========================================================================
   SECTION UMUM (disamakan dengan .about / .skills di portfolio.css)
   ========================================================================== */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.section-title span {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 20px;
}

.section-title h2 {
    font-size: 30px;
    font-weight: bold;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 60px;
    }

    .section-title h2 {
        font-size: 35px;
    }
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.about-grid h3 {
    font-size: 22px;
    margin-bottom: 12px;
    text-align: center;
}

.about-grid p {
    color: var(--muted);
    margin-bottom: 15px;
    text-align: justify;
    font-size: 17px;
}

.about-card {
    display: grid;
    gap: 12px;
}

.about-card div {
    display: flex;
    justify-content: space-between;
    background: var(--card);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.about-card span {
    color: #ff6b6b;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .about-grid h3 {
        text-align: left;
    }
}

/* SKILLS / PROJECTS: samakan dengan .page (card) di portfolio.css */
.skills-grid,
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
}

.skill-card,
.project-card {
    background-color: var(--primary);
    padding: 20px;
    margin: 15px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 0 20px rgb(0, 0, 0);
    transition: transform 0.3s ease;
}

.skill-card:hover,
.project-card:hover {
    transform: scale(1.05);
}

.skill-card h3,
.project-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.skill-card p,
.project-card p {
    font-size: 16px;
    color: var(--muted);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.project-tech span {
    background: var(--card2);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.loading {
    color: var(--muted);
    text-align: center;
}

/* CONTACT */
.contact-section {
    padding-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-grid h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.contact-grid > div > p {
    color: var(--muted);
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--card);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgb(0, 0, 0);
}

input,
textarea {
    width: 100%;
    background: #f9f9f9;
    color: #1a1717;
    border: 1px solid #000000;
    padding: 12px;
    border-radius: 6px;
    outline: none;
    font: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
}

#contactStatus,
#status {
    margin: 0;
    text-align: center;
    color: var(--muted);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 60px;
    }

    .contact-grid h3 {
        text-align: left;
    }

    .contact-grid > div > p {
        text-align: left;
    }
}

/* FOOTER */
footer {
    background-color: black;
    padding: 20px 10px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 550px) {
    .skills-grid,
    .projects-grid {
        padding: 5px;
    }
}
