/* ==================== NAVIGATION ==================== */
/* ==================== NAVBAR FIX ==================== */
/* ==================== SAFE PATCH - MOBILE MENU FIX ==================== */
/* Tidak mengubah struktur lama, hanya override konflik */

/* 1️⃣ Pastikan navbar konsisten */
.navbar {
    height: 70px;
    z-index: 1200;
}

/* 2️⃣ Mobile nav-menu: PAKAI SIDEBAR KANAN SAJA */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -280px !important;
        left: auto !important;

        width: 280px !important;
        height: 100vh !important;

        background: rgba(2, 2, 2, 0.98);
        backdrop-filter: blur(12px);

        padding: 100px 20px 20px;
        display: flex !important;
        flex-direction: column;
        gap: 12px;

        transition: right 0.3s ease;
        z-index: 1300;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0 !important;
    }
}

/* 3️⃣ Pastikan desktop menu tetap normal */
@media (min-width: 969px) {
    .nav-menu {
        position: static !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        flex-direction: row !important;
        right: auto !important;
    }
}

/* 4️⃣ Sinkron hero dengan navbar */
.hero {
    padding-top: 100px;
}

/* 5️⃣ HILANGKAN CONFLICT FULL-WIDTH MENU */
@media (max-width: 968px) {
    .nav-menu.active {
        left: auto !important;
        width: 280px !important;
    }
}

/* 6️⃣ CEGAR OVERFLOW TANPA MERUSAK GRID */
html, body {
    overflow-x: hidden;
}

/* ❌ Batalkan global max-width yang merusak */
* {
    max-width: none;
}

/* 7️⃣ Jangan biarkan elemen dekoratif dorong layout */
.floating-shapes,
.grid-overlay,
.profile-ring,
.profile-badges,
.floating-tech-icons,
.profile-stats-floating {
    pointer-events: none;
}

/* 8️⃣ Mobile: pastikan tidak ada area hitam kosong */
@media (max-width: 768px) {
    section,
    .container,
    .hero {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* ==================== END SAFE PATCH ==================== */


.navbar.scrolled {
    background: rgba(2, 2, 2, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.2);
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.light-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    z-index: calc(var(--z-fixed) + 1);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--dark-bg);
    animation: logo-pulse 3s infinite;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transition: var(--transition-base);
}

.nav-logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 243, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 243, 255, 0.6); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-top: 3px;
}

.light-theme .logo-sub {
    color: #666;
}

.nav-menu {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-radius: var(--radius-base);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.light-theme .nav-link {
    color: #555;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

.nav-link i {
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark-bg);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover i,
.nav-link.active i {
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
}

.light-theme .theme-toggle {
    background: rgba(0, 243, 255, 0.1);
}

.theme-toggle i {
    position: absolute;
    transition: var(--transition-base);
    font-size: 1.1rem;
}

.theme-toggle i:first-child {
    color: var(--warning-color);
    transform: rotate(0deg);
}

.theme-toggle i:last-child {
    color: var(--primary-color);
    transform: rotate(90deg);
    opacity: 0;
}

.light-theme .theme-toggle i:first-child {
    transform: rotate(-90deg);
    opacity: 0;
}

.light-theme .theme-toggle i:last-child {
    transform: rotate(0deg);
    opacity: 1;
}

.theme-toggle:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: calc(var(--z-fixed) + 1);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-base);
    transform-origin: center;
}

.light-theme .mobile-menu-btn span {
    background: #00b8cc;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--darker-bg);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 10px;
        transition: var(--transition-base);
        border-left: 2px solid var(--primary-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }
    
    .light-theme .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        border-left-color: var(--primary-color);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 20px;
        font-size: 0.9rem;
        justify-content: flex-start;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: var(--gradient-1);
    opacity: 0.1;
    animation: float-shape 20s infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
    border-radius: 50%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 80%;
    animation-delay: 15s;
    border-radius: 10px;
}

.shape-5 {
    width: 70px;
    height: 70px;
    bottom: 40%;
    left: 20%;
    animation-delay: 7s;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(30px) rotate(270deg);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: badge-pulse 2s infinite;
}

.light-theme .hero-badge {
    background: rgba(0, 243, 255, 0.15);
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.6); }
}

.hero-title {
    margin-bottom: 15px;
}

.title-line {
    display: block;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.light-theme .hero-subtitle {
    color: #666;
}

.subtitle-prefix {
    color: var(--accent-color);
    animation: type-cursor 1s infinite;
}

@keyframes type-cursor {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.typing-container {
    position: relative;
}

.typing-text {
    color: var(--primary-color);
    font-weight: 600;
}

.typing-cursor {
    position: absolute;
    right: -10px;
    color: var(--accent-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.light-theme .hero-description {
    color: #555;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: var(--radius-base);
    transition: var(--transition-base);
}

.light-theme .stat-item {
    background: rgba(0, 243, 255, 0.05);
    border-color: rgba(0, 243, 255, 0.3);
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.2);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-bg);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

.light-theme .stat-label {
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.hero-social-proof {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.social-proof-item i {
    color: var(--success-color);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-wrapper {
    position: relative;
    width: 350px;
    height: 450px;
}

.profile-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: rotate-ring 10s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.3;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.ring-2 {
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    opacity: 0.5;
    border-left-color: transparent;
    border-right-color: transparent;
    animation-direction: reverse;
    animation-duration: 8s;
}

.ring-3 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    opacity: 0.7;
    animation-duration: 12s;
}

.ring-4 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    opacity: 0.4;
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes rotate-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 380px;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

.profile-image-container:hover .profile-img {
    filter: grayscale(0%);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 243, 255, 0.2) 100%);
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    animation: scan 3s linear infinite;
    opacity: 0.5;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.profile-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-color);
    transition: var(--transition-base);
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.profile-image-container:hover .profile-corner {
    width: 30px;
    height: 30px;
}

.profile-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.profile-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    animation: float-badge 3s ease-in-out infinite;
}

.light-theme .profile-badge {
    background: rgba(255, 255, 255, 0.9);
}

.badge-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    right: -30px;
    animation-delay: 1.5s;
}

.badge-3 {
    top: 50%;
    right: -40px;
    animation-delay: 0.75s;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    animation: float-tech 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.light-theme .tech-icon {
    background: rgba(255, 255, 255, 0.9);
}

.icon-1 { top: 5%; left: -10%; animation-delay: 0s; }
.icon-2 { top: 15%; right: -10%; animation-delay: 1s; }
.icon-3 { bottom: 25%; left: -10%; animation-delay: 2s; }
.icon-4 { bottom: 10%; right: -10%; animation-delay: 3s; }
.icon-5 { top: 40%; left: -15%; animation-delay: 1.5s; }
.icon-6 { bottom: 35%; right: -15%; animation-delay: 2.5s; }

@keyframes float-tech {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.profile-stats-floating {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.floating-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary-color);
    animation: float-stat 3s ease-in-out infinite;
}

.floating-stat:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes float-stat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary-color);
    border-radius: 18px;
    position: relative;
}

.light-theme .mouse {
    border-color: #00b8cc;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.light-theme .scroll-text {
    color: #666;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--primary-color), transparent);
    animation: line-flow 2s infinite;
}

@keyframes line-flow {
    0% { opacity: 0; transform: scaleY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1); }
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .profile-wrapper {
        width: 280px;
        height: 360px;
    }
    
    .profile-image-container {
        width: 220px;
        height: 280px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 5% 60px;
    }
    
    .profile-wrapper {
        width: 240px;
        height: 310px;
    }
    
    .profile-image-container {
        width: 190px;
        height: 240px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .profile-badges {
        display: none;
    }
    
    .floating-tech-icons {
        display: none;
    }
}
/* ==================== FIX MOBILE LAYOUT ==================== */

/* Sembunyikan semua efek di mobile */
@media (max-width: 768px) {
    .profile-ring,
    .profile-badges,
    .floating-tech-icons,
    .profile-stats-floating,
    .floating-shapes,
    .grid-overlay {
        display: none !important;
    }
    
    .profile-wrapper {
        width: 220px;
        height: 290px;
        position: relative;
    }
    
    .profile-image-container {
        width: 200px;
        height: 260px;
        border: 2px solid var(--primary-color);
        box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    }
    
    /* Fix overflow di hero section */
    .hero-visual {
        overflow: visible;
        position: relative;
    }
    
    .hero {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .profile-wrapper {
        width: 180px;
        height: 240px;
    }
    
    .profile-image-container {
        width: 160px;
        height: 210px;
    }
    
    /* Pastikan tidak ada elemen yang overflow */
    .hero .container {
        overflow: hidden;
    }
}

/* Fix untuk profile wrapper di semua ukuran */
.profile-wrapper {
    position: relative;
    overflow: visible; /* Ubah ke visible untuk mobile */
}

/* Pastikan scan line tidak overflow */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    animation: scan 3s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

/* Fix corner decorations */
.profile-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-color);
    z-index: 10;
    pointer-events: none;
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* ==================== FIX MOBILE LAYOUT - FINAL ==================== */

/* Sembunyikan semua efek di mobile */
@media (max-width: 768px) {
    .profile-ring,
    .profile-badges,
    .floating-tech-icons,
    .profile-stats-floating,
    .floating-shapes,
    .grid-overlay,
    .profile-corner,
    .about-img-frame {
        display: none !important;
    }
    
    /* Fix profile wrapper */
    .profile-wrapper {
        width: 220px;
        height: 290px;
        position: relative;
        overflow: visible;
    }
    
    .profile-image-container {
        width: 200px;
        height: 260px;
        border: 2px solid var(--primary-color);
        box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
        position: relative;
    }
    
    /* Fix about section */
    .about-images {
        position: relative;
        overflow: visible;
    }
    
    .about-img-wrapper {
        max-width: 260px;
        position: relative;
        overflow: hidden;
    }
    
    /* Hide experience card di mobile */
    .experience-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-wrapper {
        width: 180px;
        height: 240px;
    }
    
    .profile-image-container {
        width: 160px;
        height: 210px;
    }
    
    .about-img-wrapper {
        max-width: 220px;
    }
}

/* Prevent horizontal scroll di semua section */
body,
html,
section,
.container,
.hero,
.about,
.skills,
.apjii-monitoring,
.projects,
.certificates,
.contact,
.footer {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Fix untuk navbar mobile */
@media (max-width: 768px) {
    .nav-menu {
        background: rgba(2, 2, 2, 0.98) !important;
    }
    
    .light-theme .nav-menu {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

/* Fix back to top button di mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Fix footer di mobile */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
        overflow: hidden;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .footer-tagline {
        text-align: center;
        font-size: 0.85rem;
        margin: 10px 0;
    }
}

/* Fix contact section di mobile */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
    }
}

/* Fix buttons di mobile */
@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Fix untuk semua container */
.container {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Fix section overflow */
section {
    position: relative;
    overflow: hidden;
}

/* Fix hero visual */
@media (max-width: 768px) {
    .hero-visual {
        position: relative;
        overflow: visible;
    }
}
/* ==================== FINAL OVERFLOW FIX ==================== */

/* Mobile specific fixes */
@media (max-width: 768px) {
    /* Hide all decorative rings and badges */
    .profile-ring,
    .profile-badges,
    .floating-tech-icons,
    .profile-stats-floating,
    .experience-card,
    .about-img-frame {
        display: none !important;
    }
    
    /* Fix certificate cards on mobile */
    .certificates-grid {
        grid-template-columns: 1fr;
        overflow: hidden;
    }
    
    .certificate-card {
        margin-bottom: 20px;
        overflow: hidden;
    }
    
    /* Fix projects grid */
    .projects-grid {
        overflow: hidden;
    }
    
    /* Fix skills grid */
    .skills-grid {
        overflow: hidden;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    /* Further reduce sizes */
    .profile-wrapper {
        width: 180px;
        height: 240px;
    }
    
    .profile-image-container {
        width: 160px;
        height: 210px;
    }
    
    /* Hide more decorative elements */
    .scroll-indicator,
    .floating-shapes,
    .grid-overlay {
        display: none;
    }
}

/* Ensure footer doesn't overflow */
.footer {
    overflow: hidden;
    position: relative;
}

.footer-content {
    overflow: hidden;
}

/* Fix navbar on mobile */
@media (max-width: 768px) {
    .nav-menu {
        overflow-y: auto;
        overflow-x: hidden;
    }
}
/* ==================== FINAL FIX - HIDE GREEN BOX ==================== */

/* Hide preloader completely after load */
.preloader.hidden {
    display: none !important;
}

/* Prevent any overflow from preloader */
.preloader {
    overflow: hidden;
}

/* Hide any debug/test elements */
.debug,
.test-element,
.debug-box,
.test-box {
    display: none !important;
}

/* Ensure body doesn't overflow */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Fix for all sections */
section {
    overflow: hidden;
    max-width: 100vw;
    position: relative;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    /* Hide ALL decorative elements */
    .floating-shapes,
    .grid-overlay,
    .profile-ring,
    .profile-badges,
    .floating-tech-icons,
    .profile-stats-floating,
    .profile-corner,
    .experience-card,
    .about-img-frame,
    .scroll-indicator {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Fix hero stats */
    .hero-stats {
        overflow: hidden;
        position: relative;
    }
    
    .stat-item {
        overflow: hidden;
        position: relative;
    }
    
    /* Remove any pseudo elements */
    .hero::before,
    .hero::after,
    .stat-item::before,
    .stat-item::after {
        display: none !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .profile-wrapper {
        width: 180px;
        height: 240px;
        overflow: visible;
    }
    
    .profile-image-container {
        width: 160px;
        height: 210px;
    }
    
    /* Hide any absolutely positioned elements */
    [style*="position: absolute"] {
        max-width: 100%;
    }
}

/* Ensure footer doesn't cause overflow */
.footer {
    overflow: hidden;
    position: relative;
}

/* Fix back to top button */
.back-to-top {
    z-index: 999;
}

/* Hide any elements with negative positioning */
[style*="left: -"] {
    max-width: 100vw;
}

/* Fix for certificate cards */
.certificates-grid {
    overflow: hidden;
}

.certificate-card {
    overflow: hidden;
}

/* Fix for projects grid */
.projects-grid {
    overflow: hidden;
}

/* Remove any transform on mobile */
@media (max-width: 768px) {
    .skill-card,
    .project-card,
    .certificate-card {
        transform: none !important;
    }
    
    .skill-card:hover,
    .project-card:hover,
    .certificate-card:hover {
        transform: none !important;
    }
}
/* ==================== FIX NAVBAR OVERFLOW ==================== */

@media (max-width: 1200px) {
    .nav-menu {
        gap: 3px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .nav-link span {
        display: none; /* Hide text, show only icons */
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        gap: 0;
    }
    
    .nav-link {
        padding: 10px;
    }
    
    .nav-link i {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 3%;
    }
    
    .logo-main {
        font-size: 1rem;
    }
    
    .logo-sub {
        display: none; /* Hide subtitle on mobile */
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        padding: 8px;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
}

/* Make navbar scrollable on small screens */
@media (max-width: 1024px) {
    .nav-menu {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
}
/* Fix Navbar Display Issues */
@media (max-width: 968px) {
    .nav-menu {
        display: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        background: rgba(2, 2, 2, 0.98);
        padding: 20px;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-link {
        width: 100%;
        padding: 15px;
        justify-content: center;
    }
}

/* Ensure navbar is visible on desktop */
@media (min-width: 969px) {
    .nav-menu {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Fix navbar container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Fix navbar z-index */
.navbar {
    z-index: 1000 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}