/* =========== PRELOADER =========== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top-color: #0A192F;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

:root {
    --primary-color: #0A192F;
    --primary-color-dark: #020c1b;
    --secondary-color: #f39c12;
    --secondary-color-dark: #d68910;
    --dark-color: #1a1e23;
    --light-color: #f8f9fa;
    --text-color: #222222;
    --text-light: #50555a;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.bg-light {
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

/* =========== BUTTONS (SLIDE FILL EFFECT) =========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transition: left 0.35s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* btn-primary: warna utama #0A192F, slide fill lebih terang */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.3);
}

.btn-primary::before {
    background-color: var(--primary-color-dark);
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 25, 47, 0.5);
}

/* btn-secondary: warna utama #f39c12, slide fill lebih gelap */
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-secondary::before {
    background-color: var(--secondary-color-dark);
}

.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
}

/* btn-outline: border primary, slide fill masuk warna primary */
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline::before {
    background-color: var(--primary-color);
}

.btn-outline:hover {
    color: var(--white);
}

/* btn-whatsapp: warna utama #25D366, slide fill #128C7E */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp::before {
    background-color: #128C7E;
}

.btn-whatsapp:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* =========== HEADER NAV =========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.nav-logo h2,
.nav-logo .nav-brand {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--dark-color);
    border-radius: 3px;
}

/* =========== HERO SECTION (SPLIT LAYOUT) =========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media screen and (min-width: 992px) {
    .hero-split {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    text-align: center;
}

@media screen and (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
}

.hero-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-title {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-light);
    margin-bottom: 14px;
    font-weight: 500;
}

.hero-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 26px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bio strong {
    color: var(--dark-color);
    font-weight: 600;
}

@media screen and (min-width: 992px) {
    .hero-bio {
        margin-left: 0;
        margin-right: 0;
    }
}

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

@media screen and (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image-col {
    display: flex;
    justify-content: center;
    /* [C] Ruang untuk elemen dekoratif ::before & ::after */
    position: relative;
}

/* [C] Accent shape — kotak miring di belakang kiri bawah */
.hero-image-col::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background-color: var(--secondary-color);
    opacity: 0.18;
    border-radius: 24px;
    bottom: -20px;
    left: 10px;
    transform: rotate(20deg);
    z-index: 0;
    animation: floatShape1 6s ease-in-out infinite;
}

/* [C] Accent shape — lingkaran kecil di kanan atas */
.hero-image-col::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border: 3px solid var(--primary-color);
    opacity: 0.15;
    border-radius: 50%;
    top: 10px;
    right: 10px;
    z-index: 0;
    animation: floatShape2 8s ease-in-out infinite;
}

@keyframes floatShape1 {
    0%, 100% { transform: rotate(20deg) translateY(0px); }
    50%       { transform: rotate(20deg) translateY(-12px); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(10px) scale(1.08); }
}

/* =========== NAME TAG ID CARD =========== */

.nametag-system {
    position: relative;
    width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    opacity: 0;
    z-index: 1001;
    margin-top: -80px;
    will-change: transform;
}

.nametag-system.start-swing {
    animation: dropPendulum 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes dropPendulum {
    0%   { transform: translateY(-300px) rotate(45deg); opacity: 0; }
    20%  { transform: translateY(0) rotate(-30deg);     opacity: 1; }
    40%  { transform: rotate(20deg); }
    60%  { transform: rotate(-10deg); }
    80%  { transform: rotate(5deg); }
    100% { transform: rotate(0deg); opacity: 1; }
}

/* Tali Lanyard — Loop Effect */
.lanyard-strap {
    width: 24px;
    height: 140px;
    background: #111;
    background-image: repeating-linear-gradient(
        90deg,
        transparent, transparent 2px,
        rgba(255,255,255,0.08) 2px, rgba(255,255,255,0.08) 4px
    );
    box-shadow: inset 0 0 8px rgba(0,0,0,0.9), 5px 5px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    border-radius: 3px 3px 0 0;
}

/* Lipatan tali di atas — seolah melilit sesuatu */
.lanyard-strap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -4px;
    width: 32px;
    height: 40px;
    background: #0a0a0a;
    border-radius: 50% 50% 0 0;
    box-shadow: inset 0 10px 10px rgba(255,255,255,0.1);
    z-index: -1;
}

/* Klip Metal */
.metal-clip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -8px;
    z-index: 3;
}

.metal-base {
    width: 34px;
    height: 28px;
    background: linear-gradient(135deg, #d1d5d8 0%, #ffffff 50%, #9ba1a6 100%);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4), inset 0 2px 3px white;
    border: 1px solid #73787d;
}

.metal-ring {
    width: 20px;
    height: 20px;
    border: 4px solid #b0b5b9;
    border-radius: 50%;
    margin-top: -8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3), inset 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Kartu ID — Hover 3D Effect */
.nametag-card {
    background: #ffffff;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.25), inset 0 0 0 1px rgba(0,0,0,0.05);
    padding: 18px 18px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: -12px;
    z-index: 4;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.nametag-system:hover .nametag-card {
    transform: perspective(800px) rotateX(8deg) rotateY(-5deg) scale(1.03) translateY(-10px);
    box-shadow: -15px 30px 50px rgba(10, 25, 47, 0.3), inset 0 0 0 1px rgba(0,0,0,0.05);
    cursor: grab;
}

/* Glossy reflection on hover */
.nametag-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.nametag-system:hover .nametag-card::after {
    opacity: 1;
}

/* Lubang Kartu */
.nametag-hole {
    width: 35px;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.25), 0 1px 1px rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

/* Foto Profil */
.nametag-photo {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    background-color: var(--primary-color);
}

.nametag-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Footer Kartu */
.nametag-footer {
    margin-top: 18px;
    background: var(--primary-color);
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.nametag-footer strong {
    display: block;
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.nametag-footer span {
    display: block;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =========== SERVICES SECTION =========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card:nth-child(2) .service-icon {
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.service-features li i {
    color: #28a745;
}

/* =========== SKILLS SECTION =========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 25px;
    text-align: center;
}

.skill-item {
    background-color: var(--white);
    padding: 30px 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* =========== WORKFLOW & METHODOLOGY — GLASSMORPHISM =========== */
.methodology-section {
    margin-top: 60px;
    /* [A] Dark gradient background untuk section ini */
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d2137 100%);
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle dot pattern overlay */
.methodology-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.subsection-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: var(--white);
    margin-bottom: 30px;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 900px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

/* [A] Glassmorphism card */
.methodology-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.methodology-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* [B] Nomor besar transparan di background */
.method-number {
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -2px;
}

/* [C] Icon pulse on hover */
.methodology-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.methodology-card:hover .methodology-icon {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.3); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.methodology-card h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.methodology-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.6;
}

.methodology-card p strong {
    color: var(--secondary-color);
}

/* =========== SECTION SUBTITLE =========== */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* =========== PORTFOLIO SECTION — FEATURED PROJECT =========== */
.portfolio {
    padding: 80px 0;
}

/* ---- Featured Project Card ---- */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.project-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 25, 47, 0.14);
    border: 1px solid rgba(10, 25, 47, 0.08);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    background: var(--white);
}

.project-featured:hover {
    box-shadow: 0 30px 80px rgba(10, 25, 47, 0.2);
    transform: translateY(-6px);
}

/* Left: image pane */
.project-featured-img {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
    max-height: 400px;
}

.project-featured:hover .project-featured-img img {
    transform: scale(1.04);
}

.project-img-placeholder {
    width: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
    border: 2px dashed rgba(10, 25, 47, 0.2);
    border-radius: 14px;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.project-img-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.65;
}

.project-img-placeholder code {
    background: rgba(10, 25, 47, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* LIVE badge */
.project-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%);
}

.project-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(39, 174, 96, 0.92);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    transition: background 0.3s ease;
}

.project-live-badge:hover {
    background: rgba(39, 174, 96, 1);
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: availPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Right: content pane */
.project-featured-content {
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--white);
    overflow-y: auto;
}

/* Top badge row */
.project-top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-gov {
    background: rgba(10, 25, 47, 0.07);
    color: var(--primary-color);
    border: 1px solid rgba(10, 25, 47, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-stack {
    background: rgba(243, 156, 18, 0.1);
    color: var(--secondary-color-dark);
    border: 1px solid rgba(243, 156, 18, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Project title */
.project-title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.25;
    margin: 0;
}

/* Domain row */
.project-domain {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.project-domain a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.project-domain a:hover {
    border-bottom-color: var(--primary-color);
}

/* Description */
.project-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.project-desc strong {
    color: var(--dark-color);
    font-weight: 700;
}

/* Feature modules */
.project-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.project-module {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--light-color);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark-color);
    border: 1px solid rgba(10, 25, 47, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.project-module:hover {
    background: rgba(10, 25, 47, 0.06);
    transform: translateY(-2px);
}

.project-module i {
    color: var(--primary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Stats row */
.project-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d2137 100%);
    border-radius: 14px;
}

.project-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.67rem;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    margin-top: 3px;
    line-height: 1.3;
}

/* Dev process tags */
.project-process {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.process-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.process-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(10, 25, 47, 0.05);
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: background 0.2s ease, transform 0.2s ease;
}

.process-tag:hover {
    background: rgba(10, 25, 47, 0.1);
    transform: translateY(-1px);
}

.process-tag i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* CTA */
.project-cta {
    align-self: flex-start;
    margin-top: 4px;
}

/* === RESPONSIVE: Featured Project === */
@media screen and (max-width: 900px) {
    .project-featured {
        grid-template-columns: 1fr;
    }

    .project-featured-img {
        min-height: 260px;
    }

    .project-featured-content {
        padding: 28px 24px;
    }

    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-modules {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Old portfolio grid (kept for reference, unused) ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(1);
    opacity: 1;
}

.portfolio-card.hide {
    display: none;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content .badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    min-height: 48px;
}

.portfolio-link {
    width: 100%;
}
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(1);
    opacity: 1;
}

.portfolio-card.hide {
    display: none;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content .badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-content h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    min-height: 48px;
}

.portfolio-link {
    width: 100%;
}

/* =========== CERTIFICATION SECTION =========== */
.cert-slider-wrapper {
    position: relative;
}

.certifications-slider {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 20px 10px 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.certifications-slider::-webkit-scrollbar {
    display: none;
}

/* [1] 3D Tilt card */
.cert-card {
    min-width: 300px;
    max-width: 320px;
    flex: 0 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
    will-change: transform;
}

.cert-card:hover {
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.18);
}

/* [2] Ribbon Badge */
.cert-ribbon {
    position: absolute;
    top: 18px;
    left: -30px;
    width: 130px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 5px 0;
    transform: rotate(-45deg);
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cert-ribbon.ribbon-gold  { background-color: var(--secondary-color); }
.cert-ribbon.ribbon-green { background-color: #27AE60; }

.cert-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-image img {
    transform: scale(1.06);
}

/* [3] Hover Overlay */
.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transform: translateY(10px);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.cert-card:hover .cert-overlay-btn {
    transform: translateY(0);
}

.cert-overlay-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.cert-content {
    padding: 18px 20px;
    flex-grow: 1;
}

.cert-content h3 {
    font-size: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
}

/* [4] Scroll Dots */
.cert-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
    border: none;
    padding: 0;
}

.cert-dot.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

.cert-cta {
    text-align: center;
    margin-top: 30px;
}

/* =========== VANILLA JS MODAL SYSTEM =========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    /* top/right/bottom/left 0 */
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

/* =========== EXPERIENCE & EDUCATION — SPLIT TIMELINE =========== */
.timeline-split {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

/* [3] Garis tengah + animated fill */
.timeline-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(10, 25, 47, 0.1);
    transform: translateX(-50%);
    border-radius: 3px;
    overflow: hidden;
}

.timeline-line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* [1] Setiap baris split kiri-kanan */
.timeline-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
}

.timeline-row:last-child { margin-bottom: 0; }

/* Card kiri & kanan */
.tl-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px 28px;
    position: relative;
    /* [5] Hover expand */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tl-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.tl-card.tl-empty {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.tl-card.tl-empty:hover {
    transform: none;
    box-shadow: none;
}

/* Arrow connector kiri → tengah */
.tl-left:not(.tl-empty)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: var(--white);
    filter: drop-shadow(2px 0 2px rgba(0,0,0,0.06));
}

/* Arrow connector kanan ← tengah */
.tl-right:not(.tl-empty)::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: var(--white);
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.06));
}

/* [2] Icon Badge di tengah */
.tl-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.badge-work   { background: var(--primary-color); }
.badge-edu    { background: var(--secondary-color); }
.badge-school { background: #27AE60; }

/* [4] Category Chip */
.tl-chip {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.chip-work   { background: rgba(10, 25, 47, 0.08);  color: var(--primary-color); }
.chip-edu    { background: rgba(243, 156, 18, 0.12); color: var(--secondary-color-dark); }
.chip-school { background: rgba(39, 174, 96, 0.1);  color: #1e8449; }

.tl-card h3 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 6px;
    line-height: 1.4;
}

.tl-duration {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.tl-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile — kembali ke single column */
@media screen and (max-width: 768px) {
    .timeline-center-line { left: 24px; }

    .timeline-row {
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto;
        gap: 0 16px;
    }

    .tl-badge {
        grid-column: 1;
        grid-row: 1;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .tl-card.tl-left:not(.tl-empty),
    .tl-card.tl-right:not(.tl-empty) {
        grid-column: 2;
        grid-row: 1;
    }

    .tl-card.tl-empty { display: none; }

    .tl-left:not(.tl-empty)::after,
    .tl-right:not(.tl-empty)::before { display: none; }
}

/* =========== CONTACT — DARK HERO CTA =========== */
/* [D] Dark section */
.contact-dark {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 100px 0;
}

/* [E] Animated aurora gradient background */
.contact-aurora {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(243,156,18,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(100,181,246,0.1) 0%, transparent 55%),
                radial-gradient(ellipse at 60% 80%, rgba(39,174,96,0.08) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: auroraShift 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes auroraShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* [G] Availability Badge */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39,174,96,0.15);
    border: 1px solid rgba(39,174,96,0.4);
    color: #2ecc71;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.avail-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: availPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes availPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(46,204,113,0); }
}

.contact-title {
    color: var(--white) !important;
}

.contact-title::after {
    background-color: var(--secondary-color) !important;
}

.contact-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* [F] Social Link Cards */
.social-cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    min-width: 110px;
}

.social-card i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

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

.social-card:hover i {
    transform: scale(1.15);
}

/* Brand colors on hover */
.social-linkedin:hover {
    background: rgba(0,119,181,0.3);
    box-shadow: 0 8px 24px rgba(0,119,181,0.3);
    border-color: rgba(0,119,181,0.5);
}

.social-github:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.social-instagram:hover {
    background: rgba(225,48,108,0.25);
    box-shadow: 0 8px 24px rgba(225,48,108,0.25);
    border-color: rgba(225,48,108,0.4);
}

.social-instagram i {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.whatsapp-cta {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    color: #adb5bd;
}

/* =========== JAVASCRIPT ANIMATIONS CLASS =========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay staggered animation on grids */
.services-grid .fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.skills-grid .fade-in:nth-child(even) {
    transition-delay: 0.1s;
}

/* =========== RESPONSIVE DESIGN (MOBILE-FIRST SCALE) =========== */
@media screen and (max-width: 991px) {
    .container {
        width: 95%;
    }
}

@media screen and (max-width: 768px) {

    /* Hero Overlay modifications */
    .hero-split {
        position: relative;
        display: block;
        padding-bottom: 0;
    }

    /* Nametag di mobile: tampil di atas, konten teks di bawah */
    .hero-image-col {
        display: flex;
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 0;
        min-height: 380px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }

    .nametag-system {
        width: 200px;
        margin-top: 0;
    }

    .nametag-photo {
        height: 180px;
    }

    .hero-content {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        z-index: 10;
        padding: 30px 20px 30px;
        background: linear-gradient(to top, rgba(10, 25, 47, 1) 0%, rgba(10, 25, 47, 0.95) 100%);
        text-align: center;
    }

    .hero-name {
        font-size: 1.3rem !important;
        margin-bottom: 5px !important;
        line-height: 1.2 !important;
        color: var(--white) !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-title {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
        color: #e2e8f0 !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .hero-bio {
        font-size: 0.85rem;
        color: #cbd5e1;
        margin-bottom: 18px;
        line-height: 1.55;
    }

    .hero-bio strong {
        color: var(--white);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        position: relative;
        z-index: 20;
    }

    .hero-buttons .btn {
        padding: 12px 16px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .social-links {
        flex-direction: column;
    }
}

/* =========== [4] SCROLL PROGRESS BAR =========== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* =========== [2] CUSTOM CURSOR =========== */
#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

#cursor-outline {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: left 0.12s ease, top 0.12s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
    opacity: 0.6;
}

body:has(a:hover) #cursor-outline,
body:has(button:hover) #cursor-outline {
    width: 50px;
    height: 50px;
    border-color: var(--secondary-color);
    opacity: 1;
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    #cursor-dot, #cursor-outline { display: none; }
}

/* =========== [1] TYPEWRITER CURSOR BLINK =========== */
.cursor-blink {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* =========== [5] CARD HOVER BORDER GLOW =========== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 2px var(--primary-color), 0 12px 30px rgba(10, 25, 47, 0.2);
}

.service-card:nth-child(2):hover {
    box-shadow: 0 0 0 2px var(--secondary-color), 0 12px 30px rgba(243, 156, 18, 0.2);
}

.portfolio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 2px var(--primary-color), 0 12px 30px rgba(10, 25, 47, 0.2);
}

/* =========== [6] WAVE DIVIDER =========== */
.wave-divider {
    line-height: 0;
    overflow: hidden;
    margin-bottom: -2px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-light {
    background-color: #ffffff;
}

.wave-dark {
    background-color: var(--light-color);
}

/* =========== [3] FILTER PILL ANIMATED =========== */
.portfolio-filters {
    position: relative;
    display: inline-flex;
    background: var(--light-color);
    border-radius: 50px;
    padding: 5px;
    gap: 0;
    margin-bottom: 40px;
}

/* Override wrapper agar center */
#filterContainer {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.portfolio-filters {
    position: relative;
    display: inline-flex;
    background: var(--light-color);
    border-radius: 50px;
    padding: 5px;
    gap: 0;
}

.filter-pill {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background-color: var(--primary-color);
    border-radius: 50px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.filter-btn {
    position: relative;
    z-index: 1;
    padding: 8px 25px;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--white);
}

/* =========== [7] SKILL TOOLTIP =========== */
.skill-item {
    position: relative;
}

.skill-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    white-space: nowrap;
    max-width: 220px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.skill-item::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    border: 6px solid transparent;
    border-top-color: var(--primary-color);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

.skill-item:hover::after,
.skill-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
