@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cal+Sans&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Special+Gothic+Expanded+One&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #212529;
    --accent-color: #fd7e14;
    --light-color: #ffffff;
    --dark-color: #121416;
    --text-color: #ffffff;
    --card-bg: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    cursor: default;
}

header {
  background-color: rgba(18, 20, 22, 0.6); /* semi-transparent */
  color: var(--text-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px); /* ini yang bikin glossy blur */
  -webkit-backdrop-filter: blur(12px); /* buat Safari */
}



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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tambahkan di bagian CSS */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    /* Sesuaikan tinggi logo */
    width: auto;
    /* Biarkan lebar menyesuaikan proporsi */
    transition: transform 0.3s;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo-text span {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }

    .logo-text {
        font-size: 1.5rem;
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--text-color);
}

.hamburger .fa-bars {
    display: inline-block;
}

.hamburger .fa-times {
    display: none;
}

.hamburger.active .fa-bars {
    display: none;
}

.hamburger.active .fa-times {
    display: inline-block;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(18, 20, 22, 0.9), rgba(18, 20, 22, 0.9)), url('https://images.unsplash.com/photo-1519750783826-e2420f4d687f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80') no-repeat center center/cover;
    color: var(--text-color);
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-content h1,
.hero-content h2,
.hero-content p,
.hero-buttons a {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content h2 {
    animation-delay: 0.5s;
}

.hero-content p {
    animation-delay: 0.8s;
}

.hero-buttons a:nth-child(1) {
    animation-delay: 1.1s;
}

.hero-buttons a:nth-child(2) {
    animation-delay: 1.3s;
}


@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0.5rem;
    cursor: pointer;
}

.btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

.section-title span {
    color: var(--primary-color);
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 95%; /* Slightly larger image */
    max-width: 450px; /* Limit max width */
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); /* Stronger shadow */
    border: 1px solid var(--border-color-light);
    transform: rotateZ(-3deg); /* Slight rotation */
    transition: transform 0.5s ease;
}

.about-img img:hover {
    transform: rotateZ(0deg) scale(1.03); /* Straighten and slight scale on hover */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.skills {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
}

.skills::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -150px;
    right: -150px;
}

.skills .section-title {
    color: var(--text-color);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: all 0.4s ease, transform 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 60%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.skill-card:hover::before {
    transform: scale(1);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(13, 110, 253, 0.3);
}


.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    display: inline-block;
}

.skill-card:hover i {
    transform: scale(1.1) rotate(10deg);
}


.skill-card h3 {
    margin-bottom: 0.5rem;
}

.skill-card p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg);
    border-radius: 10px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -90%;
    width: 60%;
    opacity: 0.4;
    height: 100%;
    background: linear-gradient(
        120deg, 
        rgba(13, 110, 253, 0) 0%, 
        rgba(13, 110, 253, 0.2) 30%, 
        rgba(13, 110, 253, 0.4) 50%, 
        rgba(13, 110, 253, 0.2) 70%, 
        rgba(13, 110, 253, 0) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.6s ease;
    z-index: 2;
    filter: blur(8px);
    pointer-events: none;
}

.project-card:hover::before {
    left: 130%;
}


.project-img {
    height: 200px;
    overflow: hidden;
}

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

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-info p {
    margin-bottom: 1rem;
    color: #adb5bd;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background-color: rgba(13, 110, 253, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.contact {
    background-color: var(--secondary-color);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 126, 20, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: 0;
    left: 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-item div h4 {
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.contact-item div p {
    color: #adb5bd;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

footer {
    background-color: var(--dark-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 10px;
        width: 180px;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1rem;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        margin: 0.8rem 0;
    }

    .hamburger {
        display: block;
        font-size: 1.5rem;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }


    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-img,
    .about-text {
        min-width: 100%;
    }

    .logo-text {
        display: none;
    }

    .logo-img {
        height: 40px;
        margin-left: 10px;
    }

}

/* Project buttons container */
.project-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

/* Demo button (icon only) */
.demo-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: -5px;
}

.demo-btn:hover {
    background-color: #fd7e14;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px #fd7d146d;
}

.demo-btn i {
    font-size: 1rem;
}

.project-card,
.skill-card,
.contact-form {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    transform: translateY(0);
    position: relative;
}

.project-card:hover,
.skill-card:hover,
.contact-form:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
    }
}

.project-card,
.skill-card,
.contact-form {
    animation: floatUpDown 3s ease-in-out infinite;
}
.skill-card,
.project-card,
.contact-form {
  background: linear-gradient(
    135deg,
    rgba(197, 110, 38, 0.08),
    rgba(13, 110, 253, 0.08)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  transition: all 0.4s ease;
}


.skill-card:hover,
.project-card:hover,
.contact-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}
