/* =========================================
   1. ROOT VARIABLES (COLOR SYSTEM)
========================================= */
:root {
  --neon-blue: #00d4ff;
  --neon-purple: #9b59b6;
  --gradient-accent: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  --bg-dark: #0a0a0a;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --text-light: #ffffff;
}


/* =========================================
   2. RESET & GLOBAL STYLE
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}


/* =========================================
   3. ACCESSIBILITY (REDUCED MOTION)
========================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================
   4. HEADER & NAVIGATION
========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  z-index: 100;
  padding: 1rem;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--neon-blue);
}

    
/* =========================================
   6. SECTION GENERAL STYLE
========================================= */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.container {
  max-width: 1200px;
  width: 100%;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* =========================================
   8. HERO SECTION
========================================= */
.hero-section {
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content span {
  color: var(--neon-blue);
}
/* =========================================
   HERO TEXT COLOR SYSTEM
========================================= */

/* Default (Dark Mode) */
.hero-text h1 {
    color: #ffffff;
}

.hero-text h1 span {
    color: #00d4ff;
}

.hero-text p {
    color: #d0d0d0;
}

/* Light Mode */
body.light-mode .hero-text h1 {
    color: #1a1a1a;
}

body.light-mode .hero-text h1 span {
    color: #0077ff;
}

body.light-mode .hero-text p {
    color: #333333;
}
.about-section {
    padding-top: 50px; /* biar naik sedikit */
}

.about-section h2 {
    font-size: 2.3rem;         /* judul lebih besar */
    margin-bottom: 1.2rem;
}

.about-section p {
    font-size: 1.2rem;         /* teks diperbesar */
    line-height: 1.8;          /* jarak baris nyaman */
    max-width: 900px;          /* paragraf lebih lebar */
    margin: 0 auto;            /* center */
    text-align: center;        /* tetap tengah */
    color: var(--text-color);  /* support light/dark */
}

/* =========================================
   9. ABOUT SECTION
========================================= */
.about-section .glass-card {
  display: flex;
  align-items: center;
  gap: 2rem;
}




/* =========================================
   10. SKILLS SECTION
========================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}

.skill-item h3 {
  margin-bottom: .5rem;
}

.progress-bar {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  width: 0%;
  transition: width 1s ease-out;
}


/* =========================================
   11. PROJECTS SECTION
========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2rem;
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.project-card {
    background: #111;
    padding: 1rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover animation */
.project-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.25);
}
.project-card {
    background: #111;
    padding: 1rem;
    border-radius: 15px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: visible; /* Penting supaya gambar bisa keluar */
}

.project-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.25);
} 

/* Gambar efek timbul lebih kuat */
.project-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    z-index: 2;
}

.project-card:hover img {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 25px 45px rgba(0, 212, 255, 0.35);
}

.project-link {
  display: inline-block;
  color: var(--neon-blue);
  text-decoration: none;
  margin-top: 1rem;
  transition: 0.3s;
}

.project-link:hover {
  color: var(--neon-purple);
}
/* =========================================
   PROJECT CARD (3D HOVER + LIGHT MODE)
========================================= */

/* Default (Dark Mode) */
.project-card {
    background: #111;
    color: #ffffff;
    padding: 1rem;
    border-radius: 15px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.25);
}

/* Image inside card */
.project-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    z-index: 2;
}

.project-card:hover img {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 25px 45px rgba(0, 212, 255, 0.35);
}

/* Light Mode Styling */
body.light-mode .project-card {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
}

body.light-mode .project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 119, 255, 0.20);
}

/* Light mode image shadow */
body.light-mode .project-card:hover img {
    box-shadow: 0 25px 45px rgba(0, 119, 255, 0.25);
}

/* =========================================
   DARK / LIGHT MODE
========================================= */

body.light-mode {
  --bg-dark: #f5f7fa;
  --glass-bg: rgba(0, 0, 0, 0.08);
  --text-light: #0a0a0a;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}


/* =========================================
   STRONG SMOKE / CLOUD BACKGROUND EFFECT
========================================= */

.smoke-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.smoke {
  position: absolute;
  bottom: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155,89,182,0.45), rgba(155,89,182,0.15), transparent 70%);
  filter: blur(50px);
  animation: smokeMove 18s linear infinite;
  opacity: 0.9;
}
.smoke {
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: blur(70px);
}

/* Variasi asap */
.s1 {
  left: 5%;
  animation-duration: 22s;
  background: radial-gradient(circle, rgba(0,212,255,0.5), rgba(0,212,255,0.2), transparent 70%);
}

.s2{
  left: 35%;
  animation-duration: 26s;
  transform: scale(1.2);
}

.s3{
  left: 65%;
  animation-duration: 30s;
  transform: scale(1.4);
  background: radial-gradient(circle, rgba(155,89,182,0.5), rgba(155,89,182,0.2), transparent 70%);
}


/* Animasi asap naik lebih tegas */
@keyframes smokeMove {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-40vh) scale(1.5);
    opacity: 0.8;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-120vh) scale(2);
    opacity: 0;
  }
}

.contact-section {
  background: transparent;   /* ✅ BIAR NYATU DENGAN PARTICLE */
  padding: 100px 20px 50px;
  margin-top: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  border-top: none;          /* ✅ HAPUS GARIS PEMISAH */
  position: relative;
  z-index: 5;
}


.contact-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #9333ea, #a855f7);
  border-radius: 10px;
  margin-bottom: 25px;
}

.social-icons {
  display: flex;
  gap: 25px;
  margin-bottom: 40px;
}

.social-icons a {
  color: white;
  font-size: 26px;
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: #a855f7;
  transform: scale(1.2);
}

.copyright {
  font-size: 14px;
  opacity: 0.8;
}
/* Icon sosial otomatis menyesuaikan saat Light Mode */
body.light-mode .social-icons a {
  color: #111 !important;        /* ikon jadi gelap saat light */
}

body.light-mode .social-icons a:hover {
  color: #6b21a8 !important;     /* warna ungu gelap saat hover */
}
/* Default (Dark Mode) */
.copyright {
    color: #ffffff; /* putih di mode gelap */
    transition: color 0.3s ease;
}

/* Light Mode */
.light-mode .copyright {
    color: #1a1a1a; /* hitam/tua di mode terang */
}
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

/* LEFT SIDE */
.hero-text {
    flex: 1;
    color: white;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-text h1 span {
    color: #00d4ff;
}

.hero-text p {
    margin-top: 15px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* RIGHT SIDE (PHOTO) */
.hero-photo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-photo img {
    width: 380px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 213, 255, 0.45));
}
/* Container foto */
.hero-photo {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bubble belakang */
.bubble {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 30% 30%, #00d4ff70, #0066ff40, #00112230);
    border-radius: 60% 40% 65% 35% / 40% 60% 35% 65%; /* BLOB SHAPE */
    filter: blur(20px);
    animation: floatBlob 6s ease-in-out infinite;
    z-index: 1;
}

/* Foto */
.hero-photo img {
    position: relative;
    width: 380px;
    height: 380px;
    z-index: 2; /* di atas bubble */
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 213, 255, 0.4));
}

/* Animasi bubble */
@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 65% 35% / 40% 60% 35% 65%;
    }
    50% {
        transform: translate(10px, -15px) scale(1.05);
        border-radius: 55% 45% 60% 40% / 45% 55% 40% 60%;
    }
    100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 65% 35% / 40% 60% 35% 65%;
    }
}
/* ===============================
   RANDOM LIGHT RAIN BACKGROUND
================================ */

.rain-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Layer dasar */
.rain-container::before,
.rain-container::after {
  content: "";
  position: absolute;
  inset: -120%;
  rotate: -20deg;
  background-size: 280px 280px;
  opacity: 0.6;
}

/* Layer 1 (lebih cepat) */
.rain-container::before {
  background-image:
    radial-gradient(2px 45px at 10% 0%, rgba(0,212,255,.6), transparent),
    radial-gradient(1.5px 35px at 40% 0%, rgba(155,89,182,.5), transparent),
    radial-gradient(1px 25px at 70% 0%, rgba(0,212,255,.4), transparent);
  animation: rainFast 32s linear infinite;
}

/* Layer 2 (lebih lambat & beda waktu) */
.rain-container::after {
  background-image:
    radial-gradient(2px 50px at 25% 0%, rgba(155,89,182,.45), transparent),
    radial-gradient(1.5px 30px at 55% 0%, rgba(0,212,255,.4), transparent),
    radial-gradient(1px 20px at 85% 0%, rgba(155,89,182,.35), transparent);
  animation: rainSlow 48s linear infinite;
  animation-delay: -18s; /* bikin offset */
}

/* Animasi beda kecepatan */
@keyframes rainFast {
  from { background-position: 0 0; }
  to   { background-position: 0 2200px; }
}

@keyframes rainSlow {
  from { background-position: 0 0; }
  to   { background-position: 0 3000px; }
}
/* =========================================
   RESPONSIVE MOBILE & TABLET
========================================= */

/* Tablet & ke bawah */
@media (max-width: 1024px) {

  /* HERO */
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-photo {
    width: 100%;
    height: auto;
  }

  .hero-photo img {
    width: 300px;
    height: auto;
  }

  .bubble {
    width: 300px;
    height: 300px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* NAVBAR */
  nav ul {
    gap: 15px;
    font-size: 14px;
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    padding-top: 80px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-photo img {
    width: 260px;
  }

  .bubble {
    width: 260px;
    height: 260px;
  }

  /* ABOUT */
  .about-section p {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* SKILLS */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* PROJECTS */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    transform: none;
  }

  .project-card:hover {
    transform: translateY(-5px);
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-photo img {
    width: 220px;
  }

  .bubble {
    width: 220px;
    height: 220px;
  }

  h2 {
    font-size: 2rem;
  }
}
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00d4ff, #9b59b6);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  z-index: 999999;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

@media (min-width: 769px) {
  .theme-toggle {
    top: 15px;
    right: 20px;
    bottom: auto;
  }
}

