* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background-color: #05070d;

  background-image:
    radial-gradient(
      circle at top right,
      rgba(255, 140, 0, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 140, 0, 0.18),
      transparent 25%
    );

  background-position:
    top right,
    bottom left;

  color: white;
}

/* ? Navbar*/
.navbar {
  background: #050505;
  color: #fff;
  font-family: "Poppins", sans-serif;
}

/* Navbar */
.custom-nav {
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0;
  z-index: 1000;
}

/* Logo */
.nav-logo {
  color: #f4b32a !important;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-logo {
  margin-left: 50px;
}

.theme-btn {
  margin-right: 50px;
}

/* Center menu */
.navbar-nav {
  gap: 1rem;
}

/* Links */
.navbar-nav .nav-link {
  color: #8b8b95 !important;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover */
.navbar-nav .nav-link:hover {
  color: #f4b32a !important;
}

/* Active link */
.navbar-nav .nav-link.active {
  color: #f4b32a !important;
}

/* Underline for active link */
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: #f4b32a;
  border-radius: 10px;
}

/* ?  Theme button */
.theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
}

.theme-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 179, 42, 0.5);
}

.theme-btn i {
  color: #d7d7d7;
  font-size: 1.1rem;
}

/* !=====================
!   Light Mode
!===================== */

body.light-mode {
  background: #e6e0d5;
  color: #111;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image: radial-gradient(
    rgba(255, 165, 0, 0.25) 1px,
    transparent 1px
  );

  background-size: 36px 36px;
  background-position: center;

  transition: 0.4s ease;
}
body.light-mode::before {
  background-image: radial-gradient(
    rgba(180, 140, 40, 0.24) 1px,
    transparent 1px
  );
}
body.light-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(
      circle at top right,
      rgba(244, 179, 42, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(244, 179, 42, 0.18),
      transparent 25%
    );
}

body.light-mode .custom-nav {
  background: rgba(243, 240, 232, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-link {
  color: #555 !important;
}

body.light-mode .nav-link.active {
  color: #f4b32a !important;
}

body.light-mode .theme-btn {
  background: #f8f8f8;
  border-color: #ddd;
}

body.light-mode .theme-btn i {
  color: #111;
}
body.light-mode .hero-title {
  color: #111;
}

body.light-mode .hero-text {
  color: #555;
}
body.light-mode .btn-resume {
  color: #111;
  border-color: #ccc;
}
body.light-mode .social-links a {
  color: #444;
  border-color: #ddd;
}
body.light-mode .terminal-card {
  background: #faf8f2;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .terminal-header {
  background: #f1eee7;
}
body.light-mode .terminal-title {
  color: #555;
}
body.light-mode .boolean {
  color: #111;
}
body.light-mode .cmd {
  color: #d97706;
}

body.light-mode .key {
  color: #db2777;
}

body.light-mode .value {
  color: #059669;
}

body.light-mode .boolean {
  color: #111;
}

body.light-mode .success {
  color: #059669;
}
body,
.custom-nav,
.terminal-card,
.terminal-header,
.theme-btn,
.hero-title,
.hero-text,
.social-links a {
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/*Skill heading light mode*/
body.light-mode .section-title {
  color: #111;
  color: 0.4s ease;
}

body.light-mode .about-content p {
  color: #666;
}
/*Contact Me LM*/

body.light-mode .contact-info-card,
body.light-mode .contact-form-card {
  background: #faf8f2;
  border-color: #ddd;
}

body.light-mode .contact-info-card h5,
body.light-mode .contact-form-card h3 {
  color: #111;
}

body.light-mode .custom-input {
  background: white;
  color: #111;
  border-color: #ddd;
}
/*Footer LM*/
body.light-mode .footer-section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .footer-left,
body.light-mode .footer-right {
  color: #666;
}

body.light-mode .footer-socials a {
  border-color: #ddd;
  color: #444;
}

body.light-mode .skill-pill {
  background: #faf8f2;
  color: #111;
  border-color: #ddd;
}

/*skills in mobile*/
body.light-mode .skill-pill {
  background: #faf8f2;
  color: #111;
  border-color: #ddd;
}

/* =====================
   Projects Light Mode
===================== */

body.light-mode .project-card {
  background: #faf8f2;

  border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .project-terminal {
  background: #f1eee7;
}

body.light-mode .project-content h4 {
  color: #111;
}

body.light-mode .project-content p {
  color: #666;
}

body.light-mode .project-tags span {
  background: #fff8e6;
}

body.light-mode .project-links a {
  color: #b87900;

  border-color: rgba(180, 140, 40, 0.25);
}

/*! -------------------------------------------------------------------------------------------------------- ! */
/* HEro */

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 0.95;
  color: white;
}

.hero-title span {
  display: inline-block;

  font-size: 3rem; /* smaller than main heading */
  line-height: 1;

  color: #f4b32a;
  font-style: italic;
  font-family: Georgia, serif;

  margin-top: -10px; /* pulls it upward */
}
.hero-section {
  padding-top: 0.5rem;
}
.hero-text {
  max-width: 550px;
  margin-top: 2rem;
  color: #9f9f9f;
  line-height: 1.8;
  font-size: 1.1rem;
}

.hero-text span {
  color: #f4b32a;
  font-weight: 600;
}
.btn-work {
  background: #f4b32a;
  color: #000;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 600;
}
.btn-resume {
  border: 1px solid #333;
  color: white;
  padding: 14px 30px;
  border-radius: 14px;
}
.btn-work:hover {
  background: #ffc54d;
  color: #000;
}

.btn-resume:hover {
  border-color: #f4b32a;
  color: #f4b32a;
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}
.social-links {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  border: 1px solid #222;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #bdbdbd;
  text-decoration: none;
  transition: 0.3s;
}

.social-links a:hover {
  border-color: #f4b32a;
  color: #f4b32a;
  transform: translateY(-3px);
}

/* terminal card on right side*/
.terminal-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 480px;

  background: #0b0b0b;
  border: 1px solid rgba(244, 179, 42, 0.15);
  border-radius: 24px;
  overflow: hidden;

  margin-left: auto;

  box-shadow:
    0 0 25px rgba(244, 179, 42, 0.12),
    0 0 60px rgba(244, 179, 42, 0.08);
}

/* Glow Effect */

.terminal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: 0 0 35px rgba(244, 179, 42, 0.18);
  pointer-events: none;
}

/*  Header */

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.9rem 1.25rem;

  background: #141414;
  border-bottom: 1px solid #222;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.terminal-title {
  color: #8a8a8a;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/*  Body*/

.terminal-body {
  padding: 1.1rem;
  height: calc(100% - 60px);
  overflow: hidden;
}

.terminal-body pre {
  margin: 0;
}

.terminal-body code {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  line-height: 1.8;

  color: #f4b32a;

  white-space: pre-wrap;
}
.cmd {
  color: #f4b32a;
  font-weight: 600;
}

.key {
  color: #ffb6dc;
}

.value {
  color: #7ef0b2;
}

.boolean {
  color: #ffffff;
}

.success {
  color: #7ef0b2;
}

/*Cursor */

.cursor {
  display: inline-block;
  width: 6px;
  height: 16px;
  background: #f4b32a;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}
#typing-text {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ! =====================
   About Me
===================== */

.about-section {
  padding: 80px 0;
}

/* Terminal */

.about-terminal {
  height: 100%;

  background: #0b0b0b;

  border: 1px solid rgba(244, 179, 42, 0.15);

  border-radius: 24px;

  overflow: hidden;

  box-shadow: 0 0 20px rgba(244, 179, 42, 0.06);
}

.about-terminal-body {
  padding: 1rem;
}

.about-terminal-body pre {
  margin: 0;
}

.about-terminal-body code {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #d7d7d7;
}

/* Stats */

.stat-card {
  height: 100%;

  padding: 1.4rem 0.8rem;

  text-align: center;

  background: rgba(10, 10, 10, 0.6);

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

  border-radius: 18px;

  transition: 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);

  border-color: rgba(244, 179, 42, 0.35);

  box-shadow: 0 10px 20px rgba(244, 179, 42, 0.08);
}

.stat-card h3 {
  color: #f4b32a;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.stat-card p {
  color: #9f9f9f;
  font-size: 0.85rem;
  margin: 0;
}

.about-content {
  margin-bottom: 1.8rem;
}

.about-content h4 {
  color: #f4b32a;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.about-content p {
  color: #9f9f9f;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* SKILLS SECTION*/
.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
}

.section-title span {
  color: #f4b32a;
  font-style: italic;
}

/* !  Project Content */
.projects-section {
  padding: 80px 0;
}

/* Grid */

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

/* Card */

.project-card {
  display: flex;
  flex-direction: column;

  background: rgba(10, 10, 10, 0.6);

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

  border-radius: 20px;

  overflow: hidden;

  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);

  border-color: rgba(244, 179, 42, 0.3);

  box-shadow: 0 10px 25px rgba(244, 179, 42, 0.08);
}

/* Terminal Header */

.project-terminal {
  padding: 1rem 1.2rem;

  background: #111;

  color: #f4b32a;

  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 600;

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

/* Image */

.project-img {
  width: 100%;
  height: 220px;

  object-fit: cover;

  transition: 0.4s;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

/* Content */

.project-content {
  padding: 1.2rem;

  display: flex;
  flex-direction: column;

  flex-grow: 1;
}

.project-content h4 {
  color: #fff;

  font-size: 1.2rem;
  font-weight: 700;

  margin-bottom: 0.6rem;
}

.project-content p {
  color: #9f9f9f;

  font-size: 0.9rem;
  line-height: 1.6;

  margin-bottom: 1rem;
}

/* Tags */

.project-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 0.5rem;

  margin-bottom: 1.2rem;
}

.project-tags span {
  padding: 0.35rem 0.8rem;

  border-radius: 999px;

  background: rgba(244, 179, 42, 0.08);

  border: 1px solid rgba(244, 179, 42, 0.25);

  color: #f4b32a;

  font-size: 0.8rem;
  font-weight: 500;
}

/* Links */

.project-links {
  margin-top: auto;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 0.8rem;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 0.45rem;

  text-decoration: none;

  padding: 0.7rem 1rem;

  border-radius: 12px;

  color: #f4b32a;

  border: 1px solid rgba(244, 179, 42, 0.25);

  transition: 0.3s;
}

.project-links a:hover {
  background: rgba(244, 179, 42, 0.08);

  color: #f4b32a;

  transform: translateY(-2px);
}

.project-links i {
  font-size: 1rem;
}

/* ! Globe */

#globe {
  position: relative;
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  transform: scale(1.15);
}

#globe::before {
  content: "";
  position: absolute;
  inset: 170px;

  border-radius: 50%;

  border: 1px solid rgba(255, 120, 60, 0.25);

  box-shadow:
    0 0 20px rgba(255, 120, 60, 0.15),
    inset 0 0 20px rgba(255, 120, 60, 0.08);
}

.skill-item {
  position: absolute;

  left: 50%;
  top: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transform-origin: center center;
}

.skill-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.skill-item span {
  margin-top: 5px;

  color: rgba(255, 255, 255, 0.65);

  font-size: 14px;
  font-weight: 700;

  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.skills-mobile {
  display: none;
}

body.light-mode .about-terminal {
  background: #faf8f2;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .about-terminal-body code {
  color: #333;
}

body.light-mode .stat-card {
  background: #faf8f2;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .stat-card p {
  color: #666;
}

/* =====================
   Contact Section
===================== */

.contact-section {
  padding: 60px 0;
}

/* Left Cards */

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;

  padding: 1rem;
  margin-bottom: 0.9rem;

  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.icon-box {
  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;

  border-radius: 12px;

  background: rgba(244, 179, 42, 0.08);
  border: 1px solid rgba(244, 179, 42, 0.25);

  color: #f4b32a;
}

.contact-info-card h5 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-info-card p {
  color: #bdbdbd;
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}

.contact-info-card small {
  color: #777;
  font-size: 0.75rem;
}

/* =====================
   Form
===================== */

.contact-form-card {
  padding: 1.5rem;

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

  border-radius: 20px;
}

.contact-form-card h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.2rem !important;
}

/* Inputs */

.custom-input {
  background: #11131a;
  border: 1px solid rgba(255, 255, 255, 0.08);

  color: white;

  padding: 10px 14px;

  border-radius: 10px;
  font-size: 0.9rem;
}

.custom-input:focus {
  background: #11131a;
  color: white;

  border-color: #f4b32a;
  box-shadow: none;
}

.custom-input::placeholder {
  color: #666;
}

/* Only textarea should be tall */

textarea.custom-input {
  height: 140px;
  min-height: 140px;
  max-height: 140px;

  overflow-y: auto;
  resize: none;
}

/* Button */

.contact-btn {
  background: linear-gradient(90deg, #f8c22a, #f39b00);

  color: black;
  border: none;

  padding: 12px;

  border-radius: 12px;

  font-size: 0.95rem;
  font-weight: 700;

  box-shadow: 0 0 20px rgba(244, 179, 42, 0.2);

  transition: 0.3s;
}

.contact-btn:hover {
  color: black;
  transform: translateY(-2px);
}

/* Contact Card Hover */

.contact-info-card,
.contact-form-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);

  border-color: rgba(244, 179, 42, 0.35);

  box-shadow: 0 10px 25px rgba(244, 179, 42, 0.08);
}

.contact-form-card:hover {
  transform: translateY(-5px);

  border-color: rgba(244, 179, 42, 0.35);

  box-shadow: 0 10px 30px rgba(244, 179, 42, 0.08);
}
/* Footer */

.footer-section {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left,
.footer-right {
  color: #777;
  font-size: 0.95rem;
}

.highlight {
  color: #f4b32a;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-socials a {
  width: 42px;
  height: 42px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid #222;
  border-radius: 10px;

  color: #bdbdbd;
  text-decoration: none;

  transition: 0.3s;
}

.footer-socials a:hover {
  color: #f4b32a;
  border-color: #f4b32a;
  transform: translateY(-3px);
}

/*! RESPONSIVE */
/*Navbar*/
@media (max-width: 768px) {
  .navbar-nav {
    gap: 0.5rem;
    text-align: center;
    margin: 1rem 0;
  }

  .theme-btn {
    margin: 1rem auto 0;
  }
  /*Hero*/
  .hero-section {
    padding-top: 4rem;
  }

  .hero-title {
    font-size: 2.8rem;
    text-align: center;
  }

  .hero-title span {
    font-size: 2.1rem;
  }

  .hero-text {
    text-align: center;
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-links {
    justify-content: center;
  }
  .hero-section .row {
    min-height: auto !important;
    padding: 3rem 0;
  }

  /*Terminal card*/

  .terminal-card {
    margin-top: 3rem;
    max-width: 100%;
    height: 400px;
  }
  .terminal-body code {
    font-size: 0.52rem;
    line-height: 1.6;
  }
  #globe {
    width: 350px;
    height: 350px;
    transform: scale(0.9);
    margin-top: 30px;
  }
  /*GLOBE*/

  #globe::before {
    inset: 85px;
  }

  .skill-item img {
    width: 38px;
    height: 38px;
  }

  .skill-item span {
    font-size: 11px;
  }
  /*Section Title*/
  .section-title {
    font-size: 2.4rem;
  }

  /*Contact ME*/
  .contact-section {
    padding: 40px 0;
  }

  .contact-info-card {
    padding: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .icon-box {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .contact-info-card h5 {
    font-size: 0.9rem;
  }

  .contact-info-card p {
    font-size: 0.8rem;
  }

  .contact-info-card small {
    font-size: 0.7rem;
  }

  .contact-form-card {
    margin-top: 1rem;
    padding: 1.2rem;
  }

  .contact-form-card h3 {
    font-size: 1.3rem;
    text-align: center;
  }

  .custom-input {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  textarea.custom-input {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
  }

  .contact-btn {
    padding: 10px;
    font-size: 0.9rem;
  }

  /*Footer*/
  .footer-wrapper {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /*Container padding*/
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /*BELOW GLOBE */
  #globe {
    display: none;
  }

  .skills-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    margin-top: 3rem;
    padding: 0 1rem;
  }

  .skill-pill {
    padding: 12px 18px;

    background: #0f1117;

    border: 1px solid rgba(244, 179, 42, 0.15);

    border-radius: 12px;

    color: white;

    font-weight: 600;

    transition: 0.3s;
  }

  .skill-pill:hover {
    border-color: #f4b32a;
    transform: translateY(-2px);
  }

  /*Navbar*/
  .navbar-collapse {
    padding: 1rem 0;
    text-align: center;
  }

  .navbar-nav {
    margin-top: 1rem;
    gap: 0.8rem;
  }

  .theme-btn {
    margin: 1rem auto 0;
  }

  /*About Me*/
  .about-section {
    padding: 60px 0;
  }

  .about-terminal-body code {
    font-size: 0.72rem;
  }

  .stat-card {
    padding: 1.5rem 0.75rem;
  }

  .stat-card h3 {
    font-size: 1.6rem;
  }

  /*PROJECT CARD*/

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-img {
    height: 180px;
  }

  .project-content {
    padding: 1rem;
  }

  .project-content h4 {
    font-size: 1.1rem;
  }

  .project-content p {
    font-size: 0.85rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-links a {
    width: 100%;
    justify-content: center;
  }
}
