/*==================================================
    PORTFOLIO FIRMAN NURYAMAN
    STYLE.CSS
==================================================*/

/*==============================
Google Font
==============================*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/*==============================
Root
==============================*/

:root {
  --primary: #4f46e5;
  --secondary: #7c3aed;

  --dark: #030712;
  --card: #111827;

  --white: #ffffff;

  --text: #cbd5e1;

  --border: rgba(255, 255, 255, 0.08);
}

/*==============================
Reset
==============================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/*==============================
Scrollbar
==============================*/

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #070b18;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));

  border-radius: 20px;
}

/*==============================
Selection
==============================*/

::selection {
  background: var(--primary);

  color: #fff;
}

/*==============================
Section
==============================*/

section {
  padding: 100px 0;

  scroll-margin-top: 80px;
}

.section-title {
  text-align: center;

  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 40px;

  font-weight: 700;

  margin-bottom: 15px;
}

.section-title p {
  color: var(--text);
}

/*==============================
Background Blur
==============================*/

.blur {
  position: fixed;

  border-radius: 50%;

  filter: blur(120px);

  opacity: 0.35;

  z-index: -1;

  will-change: transform;
}

.blur1 {
  width: 300px;

  height: 300px;

  background: #4f46e5;

  top: 50px;

  left: -100px;

  animation: float 8s ease-in-out infinite;
}

.blur2 {
  width: 250px;

  height: 250px;

  background: #7c3aed;

  right: -80px;

  top: 600px;

  animation: float2 10s infinite;
}

.blur3 {
  width: 350px;

  height: 350px;

  background: #2563eb;

  bottom: -100px;

  left: 35%;

  animation: float3 12s infinite;
}

/*==============================
Navbar
==============================*/

.custom-navbar {
  background: transparent;

  border-bottom: 1px solid transparent;

  transition: background 0.4s ease, border-color 0.4s ease;
}

.custom-navbar.scrolled {
  background: rgba(3, 7, 18, 0.65);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 30px;

  color: #fff !important;
}

.logo span {
  color: var(--primary);
}

.navbar-nav .nav-link {
  color: #fff;

  margin-left: 25px;

  position: relative;

  font-weight: 500;

  transition: 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #6d7cff;
}

.navbar-nav .nav-link::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -5px;

  width: 0;

  height: 2px;

  background: var(--primary);

  transition: 0.3s;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;

  color: white;

  font-size: 28px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/*==============================
Hero
==============================*/

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  position: relative;

  overflow: hidden;

  background:
    radial-gradient(circle at 20% 20%,
      rgba(124, 58, 237, 0.12),
      transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.1), transparent 35%),
    #050816;
}

.welcome {
  color: #6d7cff;

  font-size: 18px;

  margin-bottom: 15px;
}

.hero h1 {
  font-size: 68px;

  font-weight: 800;

  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero h3 {
  margin-top: 20px;

  margin-bottom: 20px;

  font-size: 28px;

  color: #94a3b8;
}

.hero-text {
  color: var(--text);

  line-height: 1.9;

  max-width: 550px;
}

/*==============================
Hero Button
==============================*/

.hero-button {
  margin-top: 35px;
}

.btn-custom {
  padding: 14px 30px;

  border-radius: 50px;

  border: none;

  background: linear-gradient(45deg, var(--primary), var(--secondary));

  transition: 0.4s;

  margin-right: 10px;
}

.btn-custom:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.45);
}

.btn-custom2 {
  padding: 14px 30px;

  border-radius: 50px;

  transition: 0.4s;
}

.btn-custom2:hover {
  transform: translateY(-5px);
}

/*==============================
Social
==============================*/

.social {
  margin-top: 40px;
}

.social a {
  width: 50px;

  height: 50px;

  display: inline-flex;

  justify-content: center;

  align-items: center;

  margin-right: 15px;

  text-decoration: none;

  border-radius: 50%;

  color: white;

  font-size: 22px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid var(--border);

  transition: 0.4s;
}

.social a:hover {
  background: var(--primary);

  transform: translateY(-8px);

  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

/*==============================
Hero Image
==============================*/

.hero-image {
  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;

  min-height: 500px;
}

.lanyard-wrapper {
  position: relative;

  display: flex;

  flex-direction: column;

  align-items: center;

  perspective: 1200px;

  will-change: transform;
}

/* =========================================
   Lanyard Strap
   ========================================= */

.lanyard-strap {
  position: relative;

  z-index: 5;

  width: 80px;

  height: 150px;

  margin-bottom: -16px;
}

.strap-line {
  position: absolute;

  width: 6px;

  height: 120px;

  border-radius: 6px;

  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.strap-line.left {
  left: 14px;

  transform: rotate(-10deg);

  transform-origin: top center;

  background: linear-gradient(180deg, #06b6d4, #0ea5e9);
}

.strap-line.right {
  right: 14px;

  transform: rotate(10deg);

  transform-origin: top center;

  background: linear-gradient(180deg, #06b6d4, #0284c7);
}

.strap-line::after {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 20px;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);

  border-radius: 6px 6px 0 0;
}

.clip {
  position: absolute;

  bottom: 0;

  left: 50%;

  transform: translateX(-50%);

  width: 50px;

  height: 32px;

  background: linear-gradient(145deg, #94a3b8, #64748b);

  border-radius: 8px 8px 12px 12px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.clip::before {
  content: "";

  position: absolute;

  top: 8px;

  left: 50%;

  transform: translateX(-50%);

  width: 24px;

  height: 6px;

  background: #1e293b;

  border-radius: 3px;
}

.clip-dot {
  position: absolute;

  bottom: 6px;

  left: 50%;

  transform: translateX(-50%);

  width: 10px;

  height: 10px;

  background: linear-gradient(135deg, #06b6d4, #0ea5e9);

  border-radius: 50%;

  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* =========================================
   ID Card
   ========================================= */

.id-card {
  position: relative;

  width: 290px;

  background: rgba(15, 23, 42, 0.85);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(6, 182, 212, 0.25);

  border-radius: 18px;

  overflow: hidden;

  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(6, 182, 212, 0.12);

  z-index: 3;

  will-change: transform;

  transition: box-shadow 0.4s ease;
}

.id-card:hover {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(6, 182, 212, 0.25);
}

.card-topbar {
  height: 44px;

  background: linear-gradient(90deg, #06b6d4, #0ea5e9);

  position: relative;
}

.card-topbar::after {
  content: "PORTFOLIO";

  position: absolute;

  bottom: 8px;

  left: 50%;

  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.95);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 5px;
}

.card-photo {
  display: flex;

  justify-content: center;

  padding: 24px 0 12px;
}

.card-photo img {
  width: 140px;

  height: 170px;

  object-fit: cover;

  border-radius: 10px;

  border: 3px solid rgba(6, 182, 212, 0.5);

  box-shadow:
    0 0 20px rgba(6, 182, 212, 0.2),
    0 8px 25px rgba(0, 0, 0, 0.3);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-photo img:hover {
  transform: scale(1.04);

  box-shadow:
    0 0 40px rgba(6, 182, 212, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-info {
  text-align: center;

  padding: 0 20px 24px;
}

.card-info h5 {
  font-size: 20px;

  font-weight: 700;

  margin-bottom: 4px;

  color: #fff;
}

.card-info p {
  color: #94a3b8;

  font-size: 13px;

  margin: 0;
}

/*==============================
Typing
==============================*/

#typing {
  color: #6d7cff;

  font-weight: 600;
}

/*==============================
Animation
==============================*/

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-18px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(50px, 50px, 0);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-30px, -80px, 0);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-70px, 50px, 0);
  }
}

/*==================================================
                SKILLS SECTION
==================================================*/

.skills {
  position: relative;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 35px 20px;
  text-align: center;
  transition: 0.4s;
  cursor: pointer;
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.25);
}

.skill-card i {
  font-size: 55px;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
  transition: 0.4s;
}

.skill-card:hover i {
  transform: scale(1.2) rotate(5deg);
}

.skill-card h5 {
  color: white;
  font-weight: 600;
  margin: 0;
}

/*==================================================
                PROJECT SECTION
==================================================*/

.projects {
  position: relative;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid var(--border);

  border-radius: 25px;

  overflow: hidden;

  backdrop-filter: blur(20px);

  transition: 0.45s;

  height: 100%;
}

.project-card:hover {
  transform: translateY(-15px);

  border-color: var(--primary);

  box-shadow: 0 25px 60px rgba(79, 70, 229, 0.25);
}

.project-card img {
  width: 100%;

  height: 230px;

  object-fit: cover;

  transition: 0.5s;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-content {
  padding: 25px;
}

.project-content h4 {
  font-weight: 700;

  margin-bottom: 15px;
}

.project-content p {
  color: var(--text);

  line-height: 1.8;

  margin-bottom: 20px;
}

/*==================================================
                BADGE
==================================================*/

.badge-group {
  margin-bottom: 25px;
}

.badge-group span {
  display: inline-block;

  padding: 8px 16px;

  border-radius: 50px;

  margin: 5px;

  font-size: 13px;

  background: rgba(79, 70, 229, 0.15);

  color: #9caeff;

  border: 1px solid rgba(79, 70, 229, 0.25);

  transition: 0.3s;
}

.badge-group span:hover {
  background: var(--primary);

  color: white;
}

/*==================================================
                PROJECT BUTTON
==================================================*/

.project-btn {
  display: flex;

  gap: 15px;
}

.project-btn .btn {
  flex: 1;

  border-radius: 50px;

  padding: 10px;

  transition: 0.35s;
}

.project-btn .btn-light {
  background: white;

  color: #111827;

  border: none;
}

.project-btn .btn-light:hover {
  transform: translateY(-4px);
}

.project-btn .btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--secondary));

  border: none;
}

.project-btn .btn-primary:hover {
  transform: translateY(-4px);

  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

/*==================================================
                HOVER GLOW
==================================================*/

.project-card::before {
  content: "";

  position: absolute;

  width: 250px;

  height: 250px;

  background: rgba(79, 70, 229, 0.15);

  border-radius: 50%;

  top: -120px;

  right: -120px;

  filter: blur(70px);

  opacity: 0;

  transition: 0.5s;
}

.project-card:hover::before {
  opacity: 1;
}

/*==================================================
                CARD ANIMATION
==================================================*/

/* .project-card animation removed to avoid conflict with scroll IntersectionObserver */

/*==================================================
                CONTACT SECTION
==================================================*/

.contact {
  position: relative;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;

  align-items: center;

  gap: 20px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid var(--border);

  backdrop-filter: blur(20px);

  padding: 22px;

  border-radius: 18px;

  transition: 0.35s;
}

.contact-item:hover {
  transform: translateX(10px);

  border-color: var(--primary);

  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.25);
}

.contact-item i {
  width: 55px;

  height: 55px;

  border-radius: 50%;

  background: linear-gradient(45deg, var(--primary), var(--secondary));

  display: flex;

  justify-content: center;

  align-items: center;

  color: white;

  font-size: 22px;
}

.contact-item span {
  color: white;

  font-size: 16px;
}

/*==================================================
                CONTACT FORM
==================================================*/

.contact-form {
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid var(--border);

  backdrop-filter: blur(20px);

  padding: 35px;

  border-radius: 25px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  margin-bottom: 20px;

  background: #0f172a;

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: white;

  padding: 15px 18px;

  border-radius: 15px;

  outline: none;

  transition: 0.35s;

  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);

  box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
}

.contact-form button {
  width: 100%;

  padding: 15px;

  border: none;

  border-radius: 50px;

  color: white;

  font-weight: 600;

  background: linear-gradient(45deg, var(--primary), var(--secondary));

  transition: 0.35s;
}

.contact-form button:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.35);
}

/*==================================================
                FOOTER
==================================================*/

footer {
  padding: 35px 0;

  text-align: center;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  margin-top: 70px;
}

footer p {
  color: #94a3b8;

  margin: 0;
}

/*==================================================
                UTILITIES
==================================================*/

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

.glass {
  background: rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shadow-primary {
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.25);
}

/*==================================================
                SCROLL ANIMATION
==================================================*/

.reveal {
  opacity: 0;

  transform: translateY(60px);

  transition: 1s;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/*==================================================
                LOADING ANIMATION
==================================================*/

.hero-animation {
  animation: fade 0.8s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*==================================================
                BUTTON RIPPLE
==================================================*/

.btn-custom,
.btn-custom2,
.project-btn .btn,
.contact-form button {
  position: relative;

  overflow: hidden;
}

.btn-custom::before,
.btn-custom2::before,
.project-btn .btn::before,
.contact-form button::before {
  content: "";

  position: absolute;

  width: 0;

  height: 0;

  left: 50%;

  top: 50%;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);

  transform: translate(-50%, -50%);

  transition: 0.6s;
}

.btn-custom:hover::before,
.btn-custom2:hover::before,
.project-btn .btn:hover::before,
.contact-form button:hover::before {
  width: 320px;

  height: 320px;
}

/*==================================================
                IMAGE SHADOW
==================================================*/

.project-card img {
  display: block;
}

/*==================================================
                HOVER TRANSITION
==================================================*/

a,
button,
input,
textarea,
.project-card,
.skill-card,
.contact-item {
  transition: 0.35s ease;
}

/*==================================================
                END STYLE.CSS
==================================================*/

/*=========================================
        ACTIVE NAVBAR
==========================================*/

.nav-link.active {
  color: #6d7cff !important;
}

.nav-link.active::after {
  width: 100%;
}

/*=========================================
        REVEAL
==========================================*/

.skill-card,
.project-card,
.contact-item,
.contact-form,
.section-title {
  opacity: 0;

  transform: translateY(60px);
}

.skill-card.active,
.project-card.active,
.contact-item.active,
.contact-form.active,
.section-title.active {
  opacity: 1;

  transform: translateY(0);

  transition: all 0.8s ease;
}