:root {
    --bg-main: #020617;
    --bg-card: #0f172a;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #38bdf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 15px var(--accent);
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease;
    z-index: 9999;
}

.cursor-trail {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    z-index: 9998;
}

/* ===== NAVBAR ===== */
nav {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 8px 15px;
}

nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1100px;
    margin: 80px auto 120px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

/* ===== IMAGE AUTO FIT ===== */
.img-box {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CARD ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #020617;
    padding: 15px;
    border-radius: 16px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(56,189,248,0.3);
}

/* ===== FOOTER ===== */
footer {
    background: #020617;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== RUNNING TEXT ===== */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 18s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .container {
        margin: 60px 10px 120px;
        padding: 20px;
    }
}

/* ===== CONTACT ===== */
.panel h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.contact-col h4 {
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-col p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* FORM */
#contact_form label {
    display: block;
    margin-bottom: 6px;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.input_field {
    width: 100%;
    padding: 12px 14px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    color: var(--text-main);
    outline: none;
    transition: 0.3s;
}

.input_field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(56,189,248,0.3);
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

/* BUTTON */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.submit_button {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.submit_button.primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617;
}

.submit_button.secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid #334155;
}

.submit_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56,189,248,0.35);
}

/* CONTACT INFO */
.contact-info {
    margin-top: 20px;
    font-weight: 500;
}


/* tool icon coreldraw */
/*  background terang
.tools {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.tools img {
    height: 42px;
    padding: 10px;
    background: #ffffff;          
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.tools img:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(56,189,248,0.6);
}
*/

.tools img {
    height: 42px;
    transition: 0.3s;
}

.tools img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(56,189,248,0.6));
}


/* ===== PROFILE ===== */
.profile {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    color: var(--accent);
    margin-bottom: 5px;
}

.profile-info h3 {
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* ===== LIST ===== */
.list {
    padding-left: 18px;
    line-height: 1.8;
}

.list li {
    color: var(--text-muted);
}

/* ===== CARD SECTION ===== */
.container section.card {
    margin-bottom: 30px;
}

/* ===== POPUP WELCOME ===== */
.popup {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 90000; /* di bawah cursor */
}

.popup-content {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 22px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: popupFade 0.5s ease-out;
}

@keyframes popupFade {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== RAINBOW TEXT ===== */
.rainbow-text {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 14px;
    background: linear-gradient(
        270deg,
        red, orange, yellow, green, cyan, blue, violet
    );
    background-size: 1000% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animateText 5s linear infinite;
}

@keyframes animateText {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

/* ===== BUTTON ===== */
.popup-content button {
    padding: 12px 34px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617;
    transition: 0.3s;
}

.popup-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(56,189,248,0.45);
}