:root {
  --bg: linear-gradient(135deg, #0b0b0b 0%, #1c1f26 100%);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #00bcd4;
  --glass: rgba(255, 255, 255, 0.05);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  font-family: "Poppins", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--glass);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-role {
  font-size: 12px;
  color: var(--muted);
}

nav a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}
nav a:hover {
  background: var(--accent);
  color: #000;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
}
.hero-left {
  flex: 1;
}
.name {
  font-size: 40px;
  font-weight: bold;
  background: linear-gradient(90deg, #00bcd4, #00ffff);
  -webkit-background-clip: text;
  color: transparent;
  animation: glow 3s infinite alternate;
}
@keyframes glow {
  from {
    text-shadow: 0 0 10px #00bcd4;
  }
  to {
    text-shadow: 0 0 25px #00ffff;
  }
}
.typing {
  font-size: 18px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}
.role {
  color: var(--muted);
  margin-bottom: 20px;
}
.lead {
  background: var(--glass);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.1);
}
.cta {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}
.primary,
.secondary {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}
.primary {
  background: var(--accent);
  color: #000;
}
.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.primary:hover,
.secondary:hover {
  transform: scale(1.05);
}

/* Profile Card */
.thumb-card {
  background: var(--glass);
  border-radius: 12px;
  overflow: hidden;
  width: 340px;
  max-width: 100%;
  transition: 0.3s ease;
}
.thumb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}
.thumb-card img {
  width: 100%;
  display: block;
}
.thumb-meta {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #00bcd4;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* What I Do */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}
.service-card {
  background: var(--glass);
  padding: 16px;
  border-radius: 12px;
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}
.service-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

/* Shared Sections */
section {
  margin-bottom: 60px;
}
h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent);
}
.small {
  color: var(--muted);
  line-height: 1.6;
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill {
  position: relative; /* THIS FIXES EVERYTHING */
  overflow: hidden;
  background: var(--glass);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  transition: 0.3s;
}

.skill:hover {
  background: var(--accent);
  color: #000;
}

.skill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00bcd4, #00ffff);
  opacity: 0.18;
  z-index: 0;
}

.skill span,
.skill {
  position: relative;
  z-index: 1;
}

/* Projects */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.project {
  background: var(--glass);
  border-radius: 10px;
  padding: 12px;
  transition: 0.3s;
}
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}
.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Contact Form Styling Fix */
.contact-card form,
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#contactForm label {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: -4px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: 0.3s;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 188, 212, 0.08);
}

#contactForm button {
  align-self: flex-start;
  margin-top: 6px;
}

.socials {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  align-items: center;
}

.socials a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.socials a i {
  font-size: 18px;
}

.socials a:hover {
  color: #00ffff;
  transform: scale(1.05);
}

textarea {
  min-height: 100px;
}

/* Footer */
footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    flex-direction: column;
  }
}

/* ================= PREMIUM UPGRADE LAYER ================= */

/* Smooth overall feel */
body {
  -webkit-font-smoothing: antialiased;
}

/* Glass Navbar */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 15, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 99;
}

/* Floating profile */
.thumb-card {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Neon glow buttons */
.primary,
.secondary {
  position: relative;
  overflow: hidden;
}
.primary::after,
.secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0, 255, 255, 0.45),
    transparent
  );
  opacity: 0;
  transition: 0.4s;
}
.primary:hover::after,
.secondary:hover::after {
  opacity: 1;
}

/* Service card border glow */
.service-card {
  position: relative;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(0, 188, 212, 0.45),
    transparent
  );
  opacity: 0;
  transition: 0.4s;
}
.service-card:hover::after {
  opacity: 1;
}

/* Skill pill shine */
.skill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00bcd4, #00ffff);
  opacity: 0.18;
}

/* 3D projects */
.project {
  transform-style: preserve-3d;
}
.project:hover {
  transform: rotateY(6deg) rotateX(6deg) translateY(-6px);
}

/* Premium footer bar */
footer {
  background: linear-gradient(90deg, #00bcd4, #00ffff);
  color: #000;
  font-weight: 600;
}

/* Fix anchor scroll hidden under fixed header */
section {
  scroll-margin-top: 110px;
}

nav a:focus,
nav a:active {
  background: var(--accent);
  color: #000;
}

/* Fix for navbar covering sections */
section {
  scroll-margin-top: 100px;
}

/* Smooth glowing active nav effect */
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background: #00ffff;
  transition: 0.3s;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 70%;
}

/* Better section spacing */
#about,
#skills,
#projects,
#contact {
  padding-top: 40px;
}

/* ========== FIXED NAV SCROLL ISSUE ========== */
section {
  scroll-margin-top: 120px;
}

/* ========== HEADER GLASS LOOK ========== */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  padding: 14px 24px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0, 188, 212, 0.15);
}

/* ========== NAV ACTIVE GLOW ========== */
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: #00ffff;
  transform: translateX(-50%);
  transition: 0.3s ease;
}

nav a:hover::after {
  width: 70%;
}

/* ========== SKILLS GLOW CHIP ========== */
.skill {
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
}

.skill:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 20px #00ffff;
}

/* ========== PROJECT CARD PREMIUM ========== */
.project {
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.15);
}

.project:hover {
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.45);
  transform: translateY(-8px) scale(1.02);
}

/* ========== SECTION SPACING ========== */
#about,
#skills,
#projects,
#contact {
  padding-top: 60px;
}

.skill-block {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #00bcd4;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
  transition: 0.3s;
}

.skill-block:hover {
  background: rgba(0, 188, 212, 0.15);
  transform: translateX(6px);
}

.skill-block h4 {
  color: #00ffff;
  margin-bottom: 4px;
  font-size: 15px;
}

.skill-block p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* ===============================
   MOBILE RESPONSIVE POLISH
================================ */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .wrap {
    padding: 20px 14px;
  }

  /* NAVBAR */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: rgba(0, 188, 212, 0.08);
    padding: 12px 6px;
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(0, 188, 212, 0.15);
  }

  nav a {
    padding: 10px 14px;
    font-size: 14px;
  }

  /* HERO */
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .name {
    font-size: 32px;
  }

  .typing {
    font-size: 16px;
  }

  .lead {
    font-size: 14px;
  }

  .cta {
    justify-content: center;
  }

  .thumb-card {
    width: 100%;
  }

  /* SERVICES */
  .services {
    grid-template-columns: 1fr;
  }

  /* SKILLS */
  .skills {
    justify-content: center;
  }

  .skill {
    font-size: 12px;
    padding: 7px 14px;
  }

  /* PROJECTS */
  .grid {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  #contactForm input,
  #contactForm textarea {
    font-size: 14px;
  }

  #contactForm button {
    width: 100%;
  }

  /* FOOTER */
  footer {
    font-size: 12px;
    margin-bottom: 20px;
  }
}

/* Smooth scroll + premium feel */
* {
  -webkit-tap-highlight-color: transparent;
}

.movie-style {
  padding: 0;
  overflow: hidden;
}

.project-top {
  background: linear-gradient(90deg, #00ffff, #00bcd4);
  color: #000;
  padding: 10px;
  text-align: center;
  font-weight: 700;
}

.project-preview iframe {
  width: 100%;
  height: 330px;
  border: 0;
  background: #000;
}

.project-body {
  padding: 14px;
}

.project-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #00ffff;
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.project-btn:hover {
  background: #00e0e0;
}
.loader-text {
  color: #ff0000;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: Arial, Helvetica, sans-serif;

  /* remove all effects */
  text-shadow: none;
  filter: none;
  -webkit-text-stroke: 1px;
}

/* ===== ABOUT ME SECTION ===== */
.about-section {
  position: relative;
  margin: 40px auto;
  padding: 28px 32px;

  max-width: 1100px;
  width: calc(100% - 40px);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(0, 0, 0, 0.35)
  );

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    inset 0 0 18px rgba(0, 0, 0, 0.6);

  perspective: 1000px;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border 0.35s ease;
}

/* ===== HOVER 3D EFFECT ===== */
.about-section:hover {
  border-left: 4px solid #00e5ff;

  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.15),
    rgba(0, 0, 0, 0.3)
  );

  box-shadow:
    0 14px 34px rgba(0, 229, 255, 0.25),
    inset 0 0 22px rgba(0, 0, 0, 0.65);

  transform: translateY(-6px) scale(1.01) rotateX(3deg);
}

/* ===== TEXT SAFETY (CUT NA HO) ===== */
.about-section p {
  line-height: 1.8;
  word-wrap: break-word;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {
  .about-section {
    padding: 22px;
    transform: none !important;
  }

  .about-section:hover {
    transform: none;
  }
}

/* ===== HERO LEFT CARD ===== */
.hero-left {
  padding: 28px 32px;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(0, 0, 0, 0.35)
  );

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    inset 0 0 18px rgba(0, 0, 0, 0.6);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border 0.35s ease;
}

/* ===== HERO LEFT HOVER ===== */
.hero-left:hover {
  border-left: 4px solid #00e5ff;

  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.15),
    rgba(0, 0, 0, 0.3)
  );

  box-shadow:
    0 14px 34px rgba(0, 229, 255, 0.25),
    inset 0 0 22px rgba(0, 0, 0, 0.65);

  transform: translateY(-6px) scale(1o1);
}

/* ===== TEXT SAFE ===== */
.hero-left p {
  line-height: 1.7;
}

/* ===== MOBILE SAFE ===== */
@media (max-width: 768px) {
  .hero-left {
    padding: 22px;
  }

  .hero-left:hover {
    transform: none;
  }
}
