* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: #000000;
    cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  height: 4px;              
  width: 4px;               /* width of vertical scrollbar */
  border: 1px solid #b0b0b0;
}

::-webkit-scrollbar-track {
  border-radius: 0;
  background: #eeeeee;
}

::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: #000000;
}

/* Custom Cursor */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

a {
    cursor: none !important;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 50px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeIn 2s ease 0.5s forwards;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

.nav-links a:nth-child(1) {
    animation-delay: 0.7s;
}

.nav-links a:nth-child(2) {
    animation-delay: 0.9s;
}

.nav-links a:nth-child(3) {
    animation-delay: 1.1s;
}

.nav-links a:nth-child(4) {
    animation-delay: 1.3s;
}

.nav-links a:nth-child(5) {
    animation-delay: 1.5s;
}

.nav-links a:hover {
    color: #cccccc;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: #ffffff;
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 2.5s ease 1s forwards;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    font-weight: 100;
    letter-spacing: 8px;
    text-transform: uppercase;
    line-height: 0.9;
}

.hero .subtitle {
    font-size: 1rem;
    margin-bottom: 50px;
    opacity: 0.7;
    letter-spacing: 4px;
    font-weight: 300;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 3s ease 2s forwards;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    margin: 10px auto 0;
    animation: scrollLine 2s ease-in-out infinite;
}

/* Sections */
section {
    padding: 120px 50px;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 80px;
    color: #ffffff;
    font-weight: 100;
    letter-spacing: 6px;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about {
    background: #000000;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    align-items: start;
    margin-top: 60px;
}

.about-image {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease 0.2s;
}

.about-image.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: all 0.4s ease;
}

.about-image:hover::before {
    top: -30px;
    left: -30px;
    right: 30px;
    bottom: 30px;
}

.about-image img {
    width: 100%;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.4s ease;
}

.about-image:hover img {
    filter: grayscale(80%) contrast(1.1);
}

.about-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease 0.4s;
}

.about-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.about-text p {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    font-weight: 300;
}

/* Skills Section */
.skills {
    background: #0a0a0a;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.skill-item {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.skill-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-item:hover {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.skill-number {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.skill-item h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.skill-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Projects Section */
.projects {
    background: #000000;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    margin-top: 60px;
}

.project-item {
    width: 100%;           /* biar responsif */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s ease;
}

.project-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-item:nth-child(even) {
    direction: rtl;
}

.project-item:nth-child(even)>* {
    direction: ltr;
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.project-image:hover {
    background: #1a1a1a;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.project-image:hover::before {
    border-color: rgba(255, 255, 255, 0.3);
}

.project-content h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.project-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

.project-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    transition: all 0.4s ease;
    display: inline-block;
}

.project-link:hover {
    border-bottom-color: #ffffff;
    color: #ffffff;
}

/* Contact Section */
.contact {
    background: #0a0a0a;
    text-align: center;
    border-bottom: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.contact-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    padding: 30px 0;
}

.contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 2px;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.contact-item a:hover {
    color: #cccccc;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Grain Effect */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background: url('data:image/svg+xml,<svg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.4"/></svg>');
    animation: grain 0.8s steps(8, end) infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes scrollLine {
    0% {
        height: 30px;
    }

    50% {
        height: 10px;
    }

    100% {
        height: 30px;
    }
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0)
    }

    10% {
        transform: translate(-5%, -10%)
    }

    20% {
        transform: translate(-15%, 5%)
    }

    30% {
        transform: translate(7%, -25%)
    }

    40% {
        transform: translate(-5%, 25%)
    }

    50% {
        transform: translate(-15%, 10%)
    }

    60% {
        transform: translate(15%, 0%)
    }

    70% {
        transform: translate(0%, 15%)
    }

    80% {
        transform: translate(3%, 35%)
    }

    90% {
        transform: translate(-10%, 10%)
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }

    .about-content,
    .project-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 30px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px 30px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    section {
        padding: 60px 20px;
    }
}