:root {
    --primary-color: #49108B;
    --bg: linear-gradient(
      50deg,
      rgb(229, 217, 242) 0%,
      rgb(165, 148, 249) 100%
    );;
    --secondary-color: #64748b;
    --accent-color: #E5D9F2;
    --background-color: #faf8fc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --navbar-color: rgba(255, 255, 255, 0.95);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  }

  /* Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.7;
  }

  /* Navbar Styles */
  .navbar {
    position: fixed;
    width: 100%;
    background-color: var(--navbar-color);
    backdrop-filter: blur(8px);
    padding: 1rem 5%;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
  }

  .navbar.scrolled {
    padding: 0.75rem 5%;
  }

  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .floating-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem; /* Menambahkan jarak atas untuk floating cards */
  }

  .floating-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 01rem;
    background-color: var(--background-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    transform: translateY(0);
  }

  .floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
  }

  .floating-card span {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-primary);
  }

  .floating-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  .home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 10% 2rem;
    background: var(--bg);
  }

  .home-image {
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 5rem; /* Menambahkan jarak atas untuk home image */
  }

  .home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .home-text {
    max-width: 600px;
  }

  .home-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
  }

  .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
  }

  .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.3em;
    bottom: 0;
    left: 0;
    background-color: rgba(37, 99, 235, 0.2);
    z-index: -1;
  }

  .home-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
  }

  .social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
  }

  .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }

  .cta-buttons {
    display: flex;
    gap: 1rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    color: #5d00c7;
    transition: var(--transition);
  }

  .primary-btn:hover {
    transform: scale(1.1); /* Membuat tombol sedikit membesar */
    color: red; /* Mengubah warna */
  }

  .secondary-btn:hover {
    transform: scale(1.1);
  }

  .image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  }

  .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }

  /* About Section */
  .about {
    padding: 6rem 10%;
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.1) 0%,
      rgba(37, 99, 235, 0) 100%
    );
  }

  .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--primary-color);
  }

  .section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
  }

  .section-title h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    bottom: -0.5rem;
    left: 20%;
    background-color: var(--primary-color);
    border-radius: 2px;
  }

  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
  }

  .skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  .skill-item {
    padding: 0.5rem 1rem;
    background-color: var(--background-color);
    border-radius: 0.5rem;
    font-weight: 500;
    color: #a200ff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }

  .skill-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  /* Education Section */
  .education {
    padding: 6rem 10%;
    background: var(--bg);
  }

  .education .section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
  }

  .education .section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
  }

  .education .timeline {
    position: relative;
    padding-left: 2rem;
    margin: 0 auto;
    max-width: 800px;
  }

  .education .timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
  }

  .education .timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
  }

  .education .timeline-item:last-child {
    margin-bottom: 0;
  }

  .education .timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
  }

  .education .timeline-content {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }

  .education .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  .education .timeline-content h3 {
    margin: 0 0 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
  }

  .education .timeline-content span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
  }

  .education .timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
  }

  .education .timeline-content ul {
    margin-top: 0.5rem;
    padding-left: 1rem;
    list-style-type: disc;
  }

  .education .timeline-content ul li {
    color: var(--text-secondary);
    margin: 0.3rem 0;
  }

  /* Animation */
  @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
  }

  /* Projects Section */
  .projects {
    padding: 6rem 10%;
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.1) 0%,
      rgba(37, 99, 235, 0) 100%
    );
  }

  .project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .project-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
  }

  .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
      to top,
      rgb(165, 148, 249),
      rgba(0, 0, 0, 0)
    );
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
  }

  .project-item:hover .project-overlay {
    transform: translateY(0);
  }

  .project-item:hover img {
    transform: scale(1.1);
  }

  .project-overlay h3 {
    color: purple;
    margin-bottom: 1rem;
  }

  /* Contact Section */
  .contact {
    padding: 6rem 10%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    background: var(--bg);
    color: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }

  .contact-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }

  .contact-btn:hover {
    background-color: var(--primary-color);
    color: white;
  }

  .contact .section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
  }

  .contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
  }

  .contact-card {
    flex: 1 1 300px;
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }

  .contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(70, 74, 85, 0.1) 0%, rgba(124, 129, 139, 0) 80%);
    z-index: -1;
    transform: scale(0);
    transition: var(--transition);
  }

  .contact-card:hover::before {
    transform: scale(1);
  }

  .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  .contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }

  .contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
  }

  .contact-form {
    flex: 2 1 600px;
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }

  .contact-form .form-group {
    margin-bottom: 1.5rem;
  }

  .contact-form .form-group label {
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
  }

  .contact-form .form-group input,
  .contact-form .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    outline: none;
    transition: var(--transition);
  }

  .contact-form .form-group input:focus,
  .contact-form .form-group textarea:focus {
    border-color: var(--accent-color);
  }

  .contact-form button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
  }

  .contact-form button:hover {
    background-color: #CDC1FF;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }

  /* Footer */
  .footer-container {
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
  }

  .footer-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: linear-gradient(
      315deg,
      rgba(37, 99, 235, 0.1) 0%,
      rgba(37, 99, 235, 0) 100%
    );
    transform: rotate(-5deg);
    z-index: 1;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
  }

  .footer-section {
    flex: 1;
    margin-right: 30px;
    background: var(--background-color);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }

  .footer-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  }

  .footer-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #49108B;
    position: relative;
    padding-bottom: 10px;
  }

  .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #E5D9F2;
  }

  .footer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #49108B;
    font-weight: 600;
  }

  .footer-social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
  }

  .footer-social a {
    color: var(----surface-color);
    font-size: 1.8rem;
    transition: all 0.5s ease;
    background: rgba(52, 152, 219, 0.1);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-social a:hover {
    color: #fff;
    background: linear-gradient(135deg, #CDC1FF, #A594F9);
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
  }

  .footer-bottom {
    background: var(--bg);
    text-align: center;
    padding: 15px 0;
    color: white;
    margin-top: 30px;
    position: relative;
    z-index: 2;
  }

  /* Dark Mode Styles */
  body.dark-mode {
    --bg: #150227;
    --background-color: #200e31;
    --surface-color: #3c215c;
    --text-primary: #a200ff;
    --text-secondary: #7a5c92;
    --text-light: #64748b;
    --navbar-color: #1f033a;
  }

  /* Responsive Design */
  @media screen and (max-width: 1024px) {
    .home-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-text {
        text-align: center;
        margin: 0 auto;
    }

    .social-links,
    .cta-buttons {
        justify-content: center;
    }
  }

  @media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .home,
    .about,
    .projects,
    .contact {
        padding: 4rem 1rem; /* Mengurangi padding untuk responsif */
    }

    .floating-cards {
        flex-direction: column;
    }

    .floating-card {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-right: 0;
        margin-bottom: 20px;
    }
  }

  @media screen and (max-width: 480px) {
    .home-text h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }
  }