:root {
  --primary-color: #2d3436;
  --accent-color: #6c5ce7;
  --text-color: #2d3436;
  --light-bg: #f5f6fa;
  --dark-bg: #080c18;
  --gradient-purple: linear-gradient(45deg, #6c5ce7, #a29bfe);
  --gradient-blue: linear-gradient(45deg, #0984e3, #74b9ff);
  --transition-speed: 0.3s;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-bg);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Navbar Styles */
.navbar {
  transition: all var(--transition-speed) ease;
  padding: 1rem;
}

.navbar.scrolled {
  background-color: rgba(8, 12, 24, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--light-bg);
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-item {
  margin: 0 5px;
}

.nav-link {
  position: relative;
  color: var(--light-bg);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: all var(--transition-speed) ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--dark-bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("/assets/img/main/Hero-Photo\(1\).png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
  top: 0;
  left: 0;
}

.hero-container {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 1;
}

.hero-left {
  max-width: 45%;
  padding-right: 20px;
}

.hero-center {
  display: none;
}

.hero-right {
  max-width: 45%;
  padding-left: 20px;
  text-align: right;
}

.hero-text {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.typing-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light-bg);
}

#typing {
  color: var(--accent-color);
  border-right: 3px solid var(--accent-color);
  padding-right: 5px;
}

.lead {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Social Links */
.social-icons {
  margin: 1.5rem 0;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 0.15rem solid var(--accent-color);
  font-size: 1.25rem;
  margin: 0 0.5rem 0.5rem 0;
  transition: 0.3s ease;
  color: var(--accent-color);
}

.social-icons a:hover {
  color: black;
  transform: translateY(-5px);
  background-color: var(--accent-color);
  box-shadow: 0 0 25px var(--accent-color);
}

/* Buttons */
.hire-btn,
.custom-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  color: var(--accent-color);
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  font-size: 0.95rem;
}

.hire-btn:hover,
.custom-btn:hover {
  transform: scale(1.03);
  background-color: var(--accent-color);
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
  color: black;
}

.custom-btn {
  background: var(--accent-color);
  color: white;
  border: none;
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
}

/* Portfolio Items */
.portfolio-item,
.certificate-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover,
.certificate-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

.portfolio-item img,
.certificate-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1.25rem;
  color: white;
  text-align: center;
}

.portfolio-overlay h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* About Section */
.about-card {
  display: flex;
  align-items: center;
  text-align: justify;
  padding: 2rem;
  gap: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

.about-card .image-profile {
  width: 40%;
}

.about-card img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  padding: 0;
}

.about-card .description-profile {
  width: 50%;
}

.cv-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cv-projects a {
  display: inline-flex;
  padding: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  flex-grow: 1;
}

#cv {
  background: var(--accent-color);
  color: var(--light-bg);
}

#projects {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

#cv:hover,
#projects:hover {
  box-shadow: 0 10px 25px rgba(107, 99, 255, 0.162);
  /* transform: translateY(-3px); */
}

/* Skills Section */
.skills-container {
  margin-top: 2rem;
}

.skill-category {
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

.skill-category h3 {
  color: var(--light-bg);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
  font-size: 1.25rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  /* background-color: rgba(255, 255, 255, 0.05); */
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
  color: white;
  background-color: rgba(108, 92, 231, 0.2);
}

.skill-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  color: var(--accent-color);
  width: 22px;
  height: 22px;
}

/* khusus untuk image icon */
.img-icon {
  width: 1.35rem;
  height: 1.35rem;
  filter: invert(47%) sepia(91%) saturate(623%) hue-rotate(215deg);
}

/* hover effect */
.skill-item:hover .skill-icon {
  color: white;
}

.skill-item:hover .img-icon {
  filter: brightness(0) invert(1);
}

/* Footer Styles */
.footer {
  background-color: #0a0f1a;
  color: var(--light-bg);
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.footer h3 {
  color: var(--light-bg);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

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

.social-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2rem;
}

.footer-bottom hr {
  margin: 1.5rem 0;
  opacity: 0.2;
}

.footer-bottom p {
  color: white;
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .navbar {
    padding: 20px;
  }

  .navbar-brand {
    font-size: 2rem;
  }

  .navbar-nav {
    font-size: 1.4rem;
    text-align: center;
  }

  .hero {
    text-align: center;
    padding: 50px 0;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
  }

  .hero-left,
  .hero-right {
    max-width: 100%;
    text-align: center;
    padding: 0;
    margin-bottom: 30px;
  }

  .hero::before {
    display: none;
  }

  .hero-center {
    display: block;
    width: 100%;
    margin-bottom: 3rem;
  }

  .hero-center img {
    width: 100%;
  }

  .hero-text {
    font-size: 3rem;
  }

  .typing-text {
    font-size: 2rem;
  }

  .social-icons a {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.5rem;
  }

  .hire-btn {
    padding: 16px 54px;
    font-size: 1.2rem;
  }

  .custom-btn {
    font-size: 1.5rem;
  }

  .col-md-4 {
    width: 50%;
  }

  .about-card,
  .skill-category {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .about-card .image-profile {
    width: 90%;
  }

  .about-card .description-profile {
    width: 100%;
  }

  .cv-projects {
    display: flex;
    gap: 12px;
  }

  .cv-projects a {
    font-size: 1.2rem;
  }

  .lead {
    font-size: 1.5rem;
  }

  .skills-grid {
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
  }

  .skill-icon {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem;
  }

  .typing-text {
    font-size: 1.4rem;
  }

  .lead {
    font-size: 1rem;
  }

  .social-icons a {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.8rem;
  }

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

  .portfolio-overlay h3 {
    font-size: 2rem;
  }

  .portfolio-overlay p {
    font-size: 1.5rem;
  }

  .about-card {
    padding: 1.5rem;
  }

  .about-card .image-profile {
    width: 70%;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead {
    font-size: 1.3rem;
  }

  .footer .row > div {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .hero-text {
    font-size: 2rem;
  }

  .typing-text {
    font-size: 1.2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-center {
    display: block;
    width: 100%;
  }

  .hero-center img {
    width: 100%;
  }

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

  .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 0.15rem solid var(--accent-color);
    font-size: 1.5rem;
    margin: 0 0.5rem 0.5rem 0;
    transition: 0.3s ease;
    color: var(--accent-color);
  }

  .hire-btn,
  .custom-btn {
    padding: 0.6rem 2rem;
    font-size: 1.05rem;
  }

  .about-card {
    padding: 1.25rem;
  }

  .about-card .image-profile {
    width: 90%;
  }

  .cv-projects a {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .skill-category h3 {
    font-size: 1.5rem;
  }

  .skill-item {
    padding: 1rem;
  }

  .skill-icon {
    font-size: 1.6rem;
  }

  .skill-icon img {
    width: 31px;
  }

  .footer h3 {
    font-size: 1.5rem;
  }
}
