/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d9ff;
    --primary-dark: #00aacc;
    --secondary-color: #0066ff;
    --accent-color: #00ffaa;
    --dark-bg: #0a0a0f;
    --dark-card: #151520;
    --dark-text: #e0e0e0;
    --light-text: #ffffff;
    --gray-text: #a0a0b0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
    color: #00d9ff;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 217, 255, 0.3);
    border-top: 3px solid #00d9ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-spinner p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Body scroll control */
body.loading {
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);

    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-text);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.nav-logo span {
    color: var(--primary-color);
    font-weight: 800;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Navbar Mobile Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);

        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover, .nav-link.active {
        background: rgba(0, 217, 255, 0.1);
        color: var(--primary-color);
    }

    /* Hamburger Animation */
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 480px) {
    .nav-logo a {
        font-size: 1.4rem;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Responsive Section Styles */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}

/* Home/Hero Section - IMPROVED MOBILE RESPONSIVE */
.home-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f0f1a 50%, var(--dark-bg) 100%);
    padding-top: 100px; /* Increased padding for more space from navbar */
}

.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.03);
    animation: float 8s ease-in-out infinite;
}

.floating-element.el-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.el-2 {
    width: 80px;
    height: 80px;
    top: 65%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element.el-3 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(0deg); 
    }
    33% { 
        transform: translateY(-20px) translateX(10px) rotate(120deg); 
    }
    66% { 
        transform: translateY(10px) translateX(-10px) rotate(240deg); 
    }
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.5),
        0 0 40px rgba(0, 217, 255, 0.3),
        0 0 60px rgba(0, 217, 255, 0.1);
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: glow-pulse 3s ease-in-out infinite;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
    filter: grayscale(0.1);
    position: relative;
    z-index: 1;
}

.image-wrapper:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(0, 217, 255, 0.5),
            0 0 40px rgba(0, 217, 255, 0.3),
            0 0 60px rgba(0, 217, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(0, 217, 255, 0.7),
            0 0 60px rgba(0, 217, 255, 0.4),
            0 0 90px rgba(0, 217, 255, 0.2);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.home-text {
    text-align: left;
}

.greeting-badge {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

.greeting-badge::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.greeting-badge:hover::after {
    width: 100px;
}

.home-title {
    margin-bottom: 1rem;
}

.name-gradient {
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light-text) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
    line-height: 1.1;
    display: block;
    margin-bottom: 0.5rem;
}

.professional-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.title-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.title-text {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.home-description {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 500px;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 1rem;
}

.home-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.home-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1.1rem 2.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-arrow {
    width: 25px;
    height: 25px;
    border-right: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* ========== PERBAIKAN KHUSUS UNTUK MOBILE ========== */

/* Tablet Responsive (768px dan lebih kecil) */
@media (max-width: 768px) {
    .home-section {
        padding-top: 120px; /* More space from navbar */
        min-height: calc(100vh - 120px);
        justify-content: flex-start; /* Start from top */
        padding-bottom: 2rem;
    }
    
    .home-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 1.5rem;
        margin-top: 1rem;
    }
    
    .profile-image {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .home-text {
        text-align: center;
        width: 100%;
    }
    
    .name-gradient {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        white-space: normal;
    }
    
    .professional-title {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .title-divider {
        width: 60px;
        margin: 0 auto;
    }
    
    .title-text {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
        order: -1;
        line-height: 1.4;
        white-space: normal;
        text-align: center;
        padding: 0 0.5rem;
        word-wrap: break-word;
    }
    
    .home-description {
        padding-left: 0;
        margin: 0 auto 2rem;
        font-size: 0.9rem;
        max-width: 100%;
        line-height: 1.6;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
        padding: 0 0.5rem;
    }
    
    .home-description::before {
        display: none;
    }
    
    .home-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .greeting-badge {
        font-size: 0.9rem;
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
    }
    
    .greeting-badge::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .scroll-indicator {
        bottom: 20px;
        position: fixed;
    }
}

/* Mobile Small (480px dan lebih kecil) */
@media (max-width: 480px) {
    .home-section {
        padding-top: 100px;
        min-height: calc(100vh - 100px);
        padding-bottom: 1.5rem;
    }
    
    .home-content {
        gap: 2rem;
        padding: 0 1rem;
        margin-top: 0.5rem;
    }
    
    .image-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .name-gradient {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .title-text {
        font-size: 0.85rem;
        letter-spacing: 1.2px;
        line-height: 1.3;
        padding: 0 0.3rem;
    }
    
    .home-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 0.3rem;
    }
    
    .home-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        max-width: 220px;
    }
    
    .greeting-badge {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
}

/* Mobile Extra Small (360px dan lebih kecil) */
@media (max-width: 360px) {
    .home-section {
        padding-top: 90px;
        min-height: calc(100vh - 90px);
    }
    
    .home-content {
        padding: 0 0.8rem;
        gap: 1.5rem;
    }
    
    .image-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .name-gradient {
        font-size: 1.6rem;
    }
    
    .title-text {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .home-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        max-width: 200px;
    }
    
    .greeting-badge {
        font-size: 0.8rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .home-section {
        padding: 100px 0 1.5rem;
        justify-content: center;
    }
    
    .home-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: center;
        margin-top: 0;
    }
    
    .profile-image {
        order: 0;
    }
    
    .image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .home-text {
        text-align: left;
    }
    
    .name-gradient {
        font-size: 1.5rem;
        white-space: normal;
    }
    
    .professional-title {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .title-text {
        font-size: 0.8rem;
        order: 0;
        text-align: left;
        padding: 0;
        white-space: normal;
    }
    
    .home-description {
        text-align: left;
        padding-left: 0.5rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .home-description::before {
        display: block;
        width: 2px;
    }
    
    .home-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        max-width: 180px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Very Small Height Devices */
@media (max-height: 600px) and (max-width: 768px) {
    .home-section {
        padding: 100px 0 1rem;
    }
    
    .home-content {
        gap: 1.5rem;
    }
    
    .image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .name-gradient {
        font-size: 1.6rem;
    }
    
    .home-description {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    
    .home-buttons {
        margin-bottom: 1rem;
    }
    
    .scroll-indicator {
        display: none; /* Hide on very small screens */
    }
}

/* Ensure content doesn't overflow on very small screens */
@media (max-width: 320px) {
    .home-content {
        padding: 0 0.5rem;
    }
    
    .image-wrapper {
        width: 130px;
        height: 130px;
    }
    
    .name-gradient {
        font-size: 1.4rem;
    }
    
    .title-text {
        font-size: 0.75rem;
    }
    
    .home-description {
        font-size: 0.75rem;
    }
    
    .btn {
        max-width: 180px;
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
}


/* About Section - REVISED SPLIT LAYOUT */
.about-section {
    background: var(--dark-card);
    position: relative;
}

.about-content.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    text-align: left;
    padding-right: 2rem;
}

.about-intro h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    position: relative;
    display: inline-block;
}

.animated-title {
    background: linear-gradient(135deg, var(--light-text) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    overflow: hidden;
}

.animated-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}

.about-intro:hover .animated-title::after {
    transform: scaleX(1);
}

.about-intro .lead {
    font-size: 1.15rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: left;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.about-details {
    margin: 0;
}

.skills-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

/* About Section - Card Keahlian & Spesialisasi (REVISED 2x2 GRID) */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.detail-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 0;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.3);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
}

.detail-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    left: 0;
    top: 0;
}

.card-front {
    background: transparent;
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    z-index: 1;
    text-align: center;
}

.detail-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
}

.detail-card:hover .card-front .detail-icon {
    transform: scale(1.1) rotate(10deg);
}

.card-back .detail-icon {
    color: var(--dark-bg);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: rgba(10, 10, 15, 0.2);
}

.detail-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--light-text);
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.card-back h4 {
    color: var(--dark-bg);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.detail-content p {
    color: var(--gray-text);
    line-height: 1.5;
    font-size: 0.85rem;
    transition: var(--transition);
}

.card-back p {
    color: var(--dark-bg);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Hapus tombol CTA */
.card-cta {
    display: none;
}

/* Responsive Design untuk Layout Split */
@media (max-width: 1024px) {
    .about-content.split-layout {
        gap: 3rem;
    }
    
    .detail-grid {
        gap: 1.2rem;
    }
    
    .detail-card {
        height: 190px;
    }
}

@media (max-width: 768px) {
    .about-content.split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .about-text {
        padding-right: 0;
        text-align: center;
    }
    
    .about-intro .lead {
        text-align: center;
        font-size: 0.90rem;
    }
    
    .skills-title {
        font-size: 1.8rem;
    }
    
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .detail-card {
        height: 180px;
    }
    
    .detail-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }
    
    .detail-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .detail-content p {
        font-size: 0.8rem;
    }
    
    .card-front, .card-back {
        padding: 1rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 2rem 0;
    }
    
    .about-content.split-layout {
        gap: 2rem;
    }
    
    .skills-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .detail-card {
        height: 160px;
        max-width: 100%;
    }
    
    .card-front, .card-back {
        padding: 1rem 0.5rem;
    }
    
    .detail-icon {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
        margin-bottom: 0.6rem;
    }
    
    .detail-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .detail-content p {
        font-size: 0.75rem;
    }
}

/* Portfolio Section - REVISED FOR MOBILE 2 COLUMNS */
.portfolio-section {
    background: var(--dark-bg);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 217, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Portfolio Filters - REVISED SMALLER MOBILE */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient);
    color: var(--dark-bg);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

/* Portfolio Grid - REVISED 2 COLUMNS MOBILE */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 350px; /* DIKURANGI dari 300px menjadi 250px */
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInUp 0.6s ease forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item:nth-child(2) { animation-delay: 0.1s; }
.portfolio-item:nth-child(3) { animation-delay: 0.2s; }
.portfolio-item:nth-child(4) { animation-delay: 0.3s; }
.portfolio-item:nth-child(5) { animation-delay: 0.4s; }
.portfolio-item:nth-child(6) { animation-delay: 0.5s; }

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.3);
}

/* Image Section - Full height with category overlay */
.portfolio-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: var(--dark-bg);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Category Badge - Positioned on image - REVISED SMALLER */
.portfolio-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 217, 255, 0.9);
    color: var(--dark-bg);
    padding: 0.3rem 0.7rem; /* Diperkecil */
    border-radius: 12px; /* Diperkecil */
    font-size: 0.65rem; /* Diperkecil */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px; /* Diperkecil */
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    z-index: 3;
    line-height: 1;
}

.portfolio-item:hover .portfolio-category {
    background: var(--light-text);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Overlay Effect */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.9), rgba(0, 102, 255, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1.5rem;
    text-align: center;
}

.portfolio-overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay-content {
    transform: translateY(0);
}

.overlay-icon {
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-project-btn {
    padding: 0.7rem 1.2rem;
    background: var(--light-text);
    color: var(--dark-bg);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.view-project-btn:hover {
    background: var(--dark-bg);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* Portfolio CTA Section */
.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.portfolio-cta p {
    margin-bottom: 1.5rem;
    color: var(--gray-text);
    font-size: 1rem;
}

.no-items {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
    grid-column: 1 / -1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    position: relative;
    z-index: 2;
}

.no-items i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Animation for portfolio items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Portfolio Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.98);
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-modal.show {
    display: flex;
    opacity: 1;
}

.portfolio-modal-content {
    background: transparent;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-header {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.modal-header img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: rotate(90deg);
}

/* ========== MOBILE RESPONSIVE REVISIONS ========== */

/* Tablet Responsive (768px dan lebih kecil) */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 3rem 0;
    }
    
    .portfolio-filters {
        gap: 0.4rem;
        margin-bottom: 2rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    /* Custom scrollbar for filters */
    .portfolio-filters::-webkit-scrollbar {
        height: 4px;
    }
    
    .portfolio-filters::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .portfolio-filters::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        min-height: 32px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* REVISED: 2 columns grid for mobile */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.8rem;
    }
    
    .portfolio-item {
        height: 160px; /* DIKURANGI DRASTIS dari 200px menjadi 160px */
        max-width: 100%;
    }
    
    .portfolio-category {
        top: 8px; /* Diperkecil */
        right: 8px; /* Diperkecil */
        padding: 0.25rem 0.5rem; /* Diperkecil */
        font-size: 0.55rem; /* Diperkecil */
        border-radius: 10px; /* Diperkecil */
        letter-spacing: 0.2px; /* Diperkecil */
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .overlay-icon {
        font-size: 1.6rem;
        width: 50px;
        height: 50px;
        margin-bottom: 0.6rem;
    }
    
    .view-project-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .portfolio-cta {
        margin-top: 2.5rem;
    }
    
    .portfolio-cta p {
        font-size: 0.9rem;
    }
}

/* Mobile Small (480px dan lebih kecil) */
@media (max-width: 480px) {
    .portfolio-section {
        padding: 2.5rem 0;
    }
    
    .portfolio-filters {
        gap: 0.3rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem 0.5rem;
    }
    
    .filter-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        min-height: 30px;
        border-radius: 15px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .portfolio-item {
        height: 140px; /* DIKURANGI dari 180px menjadi 140px */
        border-radius: 12px;
    }
    
    .portfolio-category {
        top: 6px; /* Diperkecil */
        right: 6px; /* Diperkecil */
        padding: 0.2rem 0.4rem; /* Diperkecil */
        font-size: 0.5rem; /* Diperkecil */
        border-radius: 8px; /* Diperkecil */
        letter-spacing: 0.1px; /* Diperkecil */
    }
    
    .portfolio-overlay {
        padding: 0.8rem;
    }
    
    .overlay-icon {
        font-size: 1.4rem;
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }
    
    .view-project-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .no-items {
        padding: 1.5rem;
        height: 150px;
        font-size: 0.8rem;
    }
    
    .no-items i {
        font-size: 2rem;
    }
}

/* Mobile Extra Small (360px dan lebih kecil) */
@media (max-width: 360px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 0.3rem;
    }
    
    .portfolio-item {
        height: 130px; /* DIKURANGI dari 160px menjadi 130px */
    }
    
    .filter-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        min-height: 28px;
    }
    
    .portfolio-category {
        top: 5px; /* Diperkecil */
        right: 5px; /* Diperkecil */
        padding: 0.15rem 0.3rem; /* Diperkecil */
        font-size: 0.45rem; /* Diperkecil */
        border-radius: 6px; /* Diperkecil */
    }
}

/* Very Small Height Devices */
@media (max-height: 600px) and (max-width: 768px) {
    .portfolio-item {
        height: 120px; /* Adjust for landscape mobile */
    }
    
    .portfolio-grid {
        gap: 0.8rem;
    }
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .portfolio-item:hover {
        transform: none;
    }
    
    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(135deg, rgba(0, 217, 255, 0.7), rgba(0, 102, 255, 0.7));
    }
    
    .portfolio-item .portfolio-overlay-content {
        transform: translateY(0);
    }
}

/* Enhanced focus states for accessibility */
.portfolio-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.filter-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Services Section - DESKTOP TETAP, MOBILE 2 COLUMNS OPTIMIZED */
.services-section {
    background: var(--dark-card);
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 1.3rem 1.2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.7s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(5deg);
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--light-text);
    font-weight: 600;
    line-height: 1.3;
}

.service-card p {
    color: var(--gray-text);
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== MOBILE RESPONSIVE REVISIONS - OPTIMIZED TEXT ========== */

/* Tablet Responsive (768px dan lebih kecil) */
@media (max-width: 768px) {
    .services-section {
        padding: 3rem 0;
    }
    
    /* REVISED: 2 columns grid for mobile dengan spacing optimal */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0 0.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .service-card {
        height: auto;
        min-height: 160px;
        padding: 1rem 0.8rem;
        max-width: 100%;
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        animation: fadeInUp 0.6s ease forwards;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
    .service-card:nth-child(5) { animation-delay: 0.5s; }
    .service-card:nth-child(6) { animation-delay: 0.6s; }
    .service-card:nth-child(7) { animation-delay: 0.7s; }
    .service-card:nth-child(8) { animation-delay: 0.8s; }
    
    .service-card:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 8px 20px rgba(0, 217, 255, 0.1);
    }
    
    /* Icon yang proporsional dan tidak terlalu besar */
    .service-icon {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(0, 217, 255, 0.1);
        flex-shrink: 0;
    }
    
    .service-card:hover .service-icon {
        transform: scale(1.05) rotate(5deg);
        background: rgba(0, 217, 255, 0.2);
    }
    
    /* Judul yang optimal untuk mobile */
    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        font-weight: 600;
        color: var(--light-text);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.4em;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    /* Deskripsi yang tidak terpotong */
    .service-card p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--gray-text);
        min-height: 3.9em;
        text-align: center;
        width: 100%;
    }
    
    /* Service Overlay Effect untuk Mobile - Dioptimalkan */
    .service-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 217, 255, 0.95), rgba(0, 102, 255, 0.95));
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 0.8rem;
        text-align: center;
        border-radius: var(--border-radius);
    }
    
    .service-overlay-content {
        transform: translateY(15px);
        transition: transform 0.4s ease;
        width: 100%;
    }
    
    .service-card:hover .service-overlay {
        opacity: 1;
    }
    
    .service-card:hover .service-overlay-content {
        transform: translateY(0);
    }
    
    .overlay-service-icon {
        font-size: 1.4rem;
        color: var(--light-text);
        margin-bottom: 0.5rem;
        background: rgba(255, 255, 255, 0.2);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .overlay-service-title {
        font-size: 0.9rem;
        color: var(--light-text);
        margin-bottom: 0.4rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .overlay-service-desc {
        font-size: 0.7rem;
        color: var(--light-text);
        line-height: 1.2;
        margin-bottom: 0.6rem;
        opacity: 0.9;
    }
    
    .view-service-btn {
        padding: 0.4rem 0.8rem;
        background: var(--light-text);
        color: var(--dark-bg);
        border: none;
        border-radius: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        font-size: 0.7rem;
        margin-top: 0.5rem;
        min-height: 30px;
        width: auto;
        flex-shrink: 0;
    }
    
    .view-service-btn:hover {
        background: var(--dark-bg);
        color: var(--light-text);
        transform: translateY(-1px);
    }
}

/* Mobile Small (480px dan lebih kecil) */
@media (max-width: 480px) {
    .services-section {
        padding: 2.5rem 0;
    }
    
    .services-grid {
        gap: 0.6rem;
        padding: 0 0.3rem;
        max-width: 100%;
    }
    
    .service-card {
        min-height: 150px;
        padding: 0.8rem 0.5rem;
        border-radius: 10px;
    }
    
    .service-icon {
        font-size: 1.4rem;
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }
    
    .service-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        min-height: 2.2em;
        line-height: 1.1;
    }
    
    .service-card p {
        font-size: 0.7rem;
        line-height: 1.2;
        min-height: 3.6em;
    }
    
    .service-overlay {
        padding: 0.6rem;
    }
    
    .overlay-service-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
        margin-bottom: 0.4rem;
    }
    
    .overlay-service-title {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .overlay-service-desc {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }
    
    .view-service-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
        margin-top: 0.4rem;
        min-height: 28px;
    }
}

/* Mobile Extra Small (360px dan lebih kecil) */
@media (max-width: 360px) {
    .services-grid {
        gap: 0.5rem;
        padding: 0 0.2rem;
    }
    
    .service-card {
        min-height: 140px;
        padding: 0.7rem 0.4rem;
    }
    
    .service-icon {
        font-size: 1.3rem;
        width: 40px;
        height: 40px;
        margin-bottom: 0.4rem;
    }
    
    .service-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        min-height: 2em;
    }
    
    .service-card p {
        font-size: 0.65rem;
        line-height: 1.1;
        min-height: 3.3em;
    }
    
    .service-overlay {
        padding: 0.5rem;
    }
    
    .overlay-service-icon {
        font-size: 1.1rem;
        width: 32px;
        height: 32px;
    }
    
    .overlay-service-title {
        font-size: 0.8rem;
    }
    
    .overlay-service-desc {
        font-size: 0.6rem;
    }
    
    .view-service-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
        min-height: 26px;
    }
}

/* Very Small Height Devices */
@media (max-height: 600px) and (max-width: 768px) {
    .service-card {
        min-height: 130px;
    }
    
    .services-grid {
        gap: 0.6rem;
    }
    
    .service-card h3 {
        min-height: 1.8em;
        font-size: 0.8rem;
    }
    
    .service-card p {
        min-height: 3em;
        font-size: 0.7rem;
    }
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .service-overlay {
        opacity: 1;
        background: linear-gradient(135deg, rgba(0, 217, 255, 0.8), rgba(0, 102, 255, 0.8));
    }
    
    .service-card .service-overlay-content {
        transform: translateY(0);
    }
}

/* Animation for mobile service items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced focus states for accessibility */
.service-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Desktop styles tetap seperti semula - tidak ada perubahan */
@media (min-width: 769px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
    
    .service-card {
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--border-radius);
        padding: 1.3rem 1.2rem;
        text-align: center;
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
        overflow: hidden;
        cursor: pointer;
        height: 240px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
        transition: left 0.7s;
    }
    
    .service-card:hover::before {
        left: 100%;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(0, 217, 255, 0.3);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    
    .service-icon {
        font-size: 2.2rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        transition: var(--transition);
    }
    
    .service-card:hover .service-icon {
        transform: scale(1.05) rotate(5deg);
        color: var(--accent-color);
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: var(--light-text);
        font-weight: 600;
        line-height: 1.3;
    }
    
    .service-card p {
        color: var(--gray-text);
        line-height: 1.5;
        font-size: 0.85rem;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Contact Section - DESKTOP TETAP, MOBILE CARDS DI ATAS FORM */
.contact-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: left;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--light-text);
    font-weight: 600;
}

.contact-details p {
    color: var(--gray-text);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--light-text);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--light-text);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
}

/* ========== MOBILE RESPONSIVE REVISIONS - CARDS DI ATAS FORM ========== */

/* Tablet Responsive (768px dan lebih kecil) */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    /* REVISED: Contact cards di atas form, 1 card per baris */
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        order: 1;
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
        height: auto;
        min-height: 80px;
        justify-content: flex-start;
        align-items: center;
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        animation: fadeInUp 0.6s ease forwards;
        border-radius: 12px;
    }
    
    .contact-item:nth-child(1) { animation-delay: 0.1s; }
    .contact-item:nth-child(2) { animation-delay: 0.2s; }
    .contact-item:nth-child(3) { animation-delay: 0.3s; }
    
    .contact-item:hover {
        transform: translateY(-3px) scale(1.02);
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(0, 217, 255, 0.3);
        box-shadow: 0 5px 15px rgba(0, 217, 255, 0.1);
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .contact-details {
        width: 100%;
        flex: 1;
    }
    
    .contact-details h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
        color: var(--light-text);
    }
    
    .contact-details p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        color: var(--gray-text);
    }
    
    .contact-details a {
        font-size: 0.8rem;
        justify-content: flex-start;
        width: auto;
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        background: rgba(0, 217, 255, 0.1);
        border: 1px solid rgba(0, 217, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .contact-details a:hover {
        background: rgba(0, 217, 255, 0.2);
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 217, 255, 0.2);
    }
    
    /* Contact form styling untuk mobile */
    .contact-form {
        padding: 1.5rem 1rem;
        order: 2;
        margin-bottom: 0;
        border-radius: 12px;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: var(--light-text);
    }
    
    .form-group input, .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .contact-form .btn {
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
        border-radius: 8px;
    }
}

/* Mobile Small (480px dan lebih kecil) */
@media (max-width: 480px) {
    .contact-section {
        padding: 2.5rem 0;
    }
    
    .contact-content {
        gap: 1.5rem;
        padding: 0 0.3rem;
    }
    
    .contact-info {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        padding: 0.8rem;
        min-height: 70px;
        gap: 0.8rem;
        border-radius: 10px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .contact-details h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-details p {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-details a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .contact-form {
        padding: 1.2rem 0.8rem;
        border-radius: 10px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input, .form-group textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 90px;
    }
    
    .contact-form .btn {
        font-size: 0.85rem;
        padding: 0.9rem 1.2rem;
        border-radius: 6px;
    }
}

/* Mobile Extra Small (360px dan lebih kecil) */
@media (max-width: 360px) {
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-content {
        gap: 1rem;
        padding: 0 0.2rem;
    }
    
    .contact-info {
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-item {
        padding: 0.7rem;
        min-height: 65px;
        gap: 0.7rem;
        border-radius: 8px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contact-details h3 {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-details p {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-details a {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .contact-form {
        padding: 1rem 0.6rem;
        border-radius: 8px;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input, .form-group textarea {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 5px;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .contact-form .btn {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
        border-radius: 5px;
    }
}

/* Very Small Height Devices */
@media (max-height: 600px) and (max-width: 768px) {
    .contact-item {
        min-height: 60px;
        padding: 0.6rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .contact-details h3 {
        font-size: 0.8rem;
    }
    
    .contact-details p {
        font-size: 0.75rem;
    }
    
    .contact-details a {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .contact-item:hover {
        transform: none;
    }
    
    .contact-details a:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Animation for contact items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced focus states for accessibility */
.contact-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.contact-details a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Desktop styles tetap seperti semula - tidak ada perubahan */
@media (min-width: 769px) {
    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--border-radius);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: var(--transition);
        text-align: left;
    }
    
    .contact-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(0, 217, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .contact-icon {
        font-size: 1.5rem;
        color: var(--primary-color);
        background: rgba(0, 217, 255, 0.1);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .contact-details {
        flex: 1;
    }
    
    .contact-details h3 {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
        color: var(--light-text);
        font-weight: 600;
    }
    
    .contact-details p {
        color: var(--gray-text);
        margin-bottom: 0.8rem;
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .contact-details a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
    }
    
    .contact-details a:hover {
        color: var(--accent-color);
        transform: translateX(5px);
    }
    
    .contact-form {
        background: rgba(255, 255, 255, 0.03);
        padding: 2.5rem;
        border-radius: var(--border-radius);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .form-group {
        margin-bottom: 1.8rem;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.8rem;
        color: var(--light-text);
        font-weight: 600;
        font-size: 1rem;
    }
    
    .form-group input, .form-group textarea {
        width: 100%;
        padding: 1rem 1.2rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
        color: var(--light-text);
        font-family: 'Inter', sans-serif;
        transition: var(--transition);
        font-size: 1rem;
    }
    
    .form-group input:focus, .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1);
    }
    
    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }
    
    .contact-form .btn {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-card);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.footer-section p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.footer-contact p {
    color: var(--gray-text);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* Footer Mobile Styles */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Back to Top Mobile Styles */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes for Mobile */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .btn, .filter-btn, .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-group input, .form-group textarea {
        min-height: 44px;
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
}