:root {
    --primary-color: #38e07b;
    --primary-glow: rgba(56, 224, 123, 0.4);
    --secondary-color: #29382f;
    --background-color: #111714;
    --background-secondary: #0d1210;
    --text-primary: #ffffff;
    --text-secondary: #9eb7a8;
    --gradient-1: linear-gradient(135deg, #38e07b 0%, #1a9f52 100%);
    --gradient-2: linear-gradient(135deg, #111714 0%, #1a2e22 100%);
    --gradient-3: linear-gradient(45deg, #38e07b, #00d4ff, #38e07b);
    --glass-bg: rgba(41, 56, 47, 0.3);
    --glass-border: rgba(56, 224, 123, 0.1);
    --shadow-glow: 0 0 40px rgba(56, 224, 123, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2bc464;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: var(--background-color);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #1a9f52;
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #00d4ff;
    top: 50%;
    right: 20%;
    animation-delay: -14s;
    opacity: 0.2;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, 50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 100px) scale(0.95);
    }

    75% {
        transform: translate(-80px, -30px) scale(1.05);
    }
}

/* Grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(56, 224, 123, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 224, 123, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.navbar-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(17, 23, 20, 0.85);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-sticky.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: var(--shadow-glow);
}

.navbar-shadow {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Progress bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--gradient-1);
    width: 0%;
    transition: width 0.1s linear;
}

/* Nav links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

.active-link {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.section-scroll {
    scroll-margin-top: 100px;
}

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile image glow */
.profile-glow {
    position: relative;
    animation: pulse-glow 3s ease-in-out infinite;
}

.profile-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-3);
    background-size: 300% 300%;
    animation: gradient-rotate 4s linear infinite;
    z-index: -1;
}

.profile-glow::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: var(--primary-glow);
    filter: blur(30px);
    z-index: -2;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Typing effect */
.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-color)
    }
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

/* Hero decorations */
.floating-shape {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
    animation: float-shape 6s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    bottom: 30%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    transform: rotate(45deg);
    animation-delay: -2s;
}

.shape-3 {
    top: 40%;
    right: 10%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-color);
    animation-delay: -4s;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-1);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: #000;
    transform: translateY(-3px);
}

.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transform: translateY(-5px);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--background-color), 0 0 20px var(--primary-glow);
}

.project-card {
    perspective: 1000px;
}

.project-card-inner {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 23, 20, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.text-gradient {
    background: var(--gradient-3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 3s linear infinite;
}

@keyframes gradient-text {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.social-btn:hover::before {
    transform: scale(1);
}

.social-btn svg {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-btn:hover svg {
    color: #000;
}

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    caret-color: var(--primary-color);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Pastikan teks tetap terlihat saat diisi */
.form-input:not(:placeholder-shown) {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 224, 123, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Textarea specific */
textarea.form-input {
    min-height: 120px;
    resize: vertical;
    color: #ffffff !important;
}

/* Fix untuk autofill browser */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 30px rgba(41, 56, 47, 0.9) inset !important;
    box-shadow: 0 0 0 30px rgba(41, 56, 47, 0.9) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--primary-color);
}

/* Fix for valid/invalid states */
.form-input:valid {
    color: #ffffff !important;
}

.form-input:invalid {
    color: #ffffff !important;
}

/* Certificate Inline Slider */
.cert-container {
    max-width: 900px;
    margin: 0 auto;
}

.cert-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cert-slider {
    flex: 1;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 20px;
}

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

.cert-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cert-image {
    width: 100%;
    height: 350px; /* Ubah nilai ini untuk memperkecil/memperbesar */
    overflow: hidden;
    border-radius: 12px;
    background: var(--secondary-color);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.cert-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg, var(--glass-bg) 0%, var(--background-secondary) 100%);
}

.cert-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.cert-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.cert-publisher {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cert-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.cert-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cert-meta-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.cert-meta-item strong {
    color: var(--primary-color);
}

/* Navigation Buttons */
.cert-nav-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cert-nav-btn:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.cert-nav-btn:active {
    transform: scale(0.95);
}

/* Dots Indicator */
.cert-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.cert-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-dot:hover {
    background: var(--text-secondary);
    transform: scale(1.1);
}

.cert-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Success Notification Animation */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cert-nav-btn {
        width: 44px;
        height: 44px;
    }
    
    .cert-details {
        padding: 16px;
    }
    
    .cert-title {
        font-size: 18px;
    }
    
    .cert-publisher {
        font-size: 14px;
    }
    
    .cert-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .cert-meta-item {
        font-size: 13px;
    }
}
