:root {
  --bg-dark: #0b0f14;
  --bg-dark-2: #111827;
  --text-light: #e5e7eb;
  --text-muted: #9ca3af;

  --accent: #22c55e;
  --accent-glow: #4ade80;

  --card-border: rgba(34, 197, 94, 0.25);
  --shadow-glow: 0 0 25px rgba(34, 197, 94, 0.35);

  --radius: 18px;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body.light-mode .hero-subtitle,
body.light-mode .hero-desc {
  color: #374151;
}

body.light-mode .btn-outline {
  color: #111827;
}

a {
  text-decoration: none;
}

.section-padding {
  padding: 90px 0;
}

/* Scrollbar custom  */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

/*navbar*/

.custom-navbar {
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.logo-accent {
  color: var(--accent);
  text-shadow: var(--shadow-glow);
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  transition: 0.25s;
}

.nav-link:hover {
  color: var(--accent) !important;
}

.nav-link.active {
  color: var(--accent) !important;
}

.btn-theme {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--accent);
  border-radius: 12px;
  padding: 6px 12px;
  transition: 0.3s;
}

.btn-theme:hover {
  background: var(--accent);
  color: #0b0f14;
  box-shadow: var(--shadow-glow);
}

/* LIGHT MODE */
body.light-mode {
  background: #f9fafb;
  color: #111827;
}

body.light-mode .custom-navbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
}

body.light-mode .nav-link {
  color: #111827 !important;
}

body.light-mode .navbar-brand {
  color: #111827 !important;
}

body.light-mode .btn-theme {
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.hero-section {
  min-height: 100vh;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

/* background glow */
.hero-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: -120px;
  left: -120px;
  background: rgba(34, 197, 94, 0.25);
  filter: blur(120px);
  border-radius: 50%;
  z-index: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -150px;
  background: rgba(74, 222, 128, 0.18);
  filter: blur(140px);
  border-radius: 50%;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(34, 197, 94, 0.08);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-top: 18px;
  line-height: 1.2;
}

.hero-title, .hero-subtitle, .hero-desc {
  position: relative;
  z-index: 5;
}

.hero-title {
  color: var(--text-light);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 12px;
}

.hero-desc {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.text-accent {
  color: var(--accent);
  text-shadow: var(--shadow-glow);
}

/* Buttons */
.btn-main {
  background: var(--accent);
  border: none;
  color: #0b0f14;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-main:hover {
  background: var(--accent-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-light);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Social */
.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  margin-right: 10px;
  color: var(--accent);
  transition: 0.3s;
}

.hero-social a:hover {
  background: var(--accent);
  color: #0b0f14;
  box-shadow: var(--shadow-glow);
}

/* Image */
.hero-image-wrapper {
  width: 320px;
  height: 320px;
  margin: auto;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.4);
  padding: 12px;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-image-wrapper {
    width: 250px;
    height: 250px;
  }
}

.hero-section::before,
.hero-section::after {
  pointer-events: none;
}

.hero-section .col-lg-7 {
  position: relative;
  z-index: 5;
}

.hero-section .col-lg-5 {
  position: relative;
  z-index: 5;
}

/* ABOUT SECTION */
.section-subtitle {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
}

.about-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* About Card */
.about-card {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(17, 24, 39, 0.6);
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.about-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.about-card-info {
  padding: 18px;
}

.text-muted-custom {
  color: var(--text-muted);
}

/* Stats */
.about-stat {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.15);
  background: rgba(34, 197, 94, 0.06);
  text-align: center;
  transition: 0.3s;
}

.about-stat h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--accent);
}

.about-stat p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.about-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: var(--shadow-glow);
}

/* Light Mode Fix */
body.light-mode .about-card {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .about-desc,
body.light-mode .text-muted-custom {
  color: #374151;
}

body.light-mode .about-stat {
  background: rgba(34, 197, 94, 0.08);
}

/* SKILLS SECTION */
.skills-intro {
  max-width: 700px;
  margin: auto;
  color: var(--text-muted);
  line-height: 1.7;
}

.skills-heading {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Progress Bar */
.skill-item {
  margin-bottom: 20px;
}

.skill-item span {
  font-weight: 600;
  color: var(--text-light);
}

.skill-bar {
  width: 100%;
  height: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
}

.skill-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  box-shadow: var(--shadow-glow);
  transition: width 0.5s ease;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tool-card {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(17, 24, 39, 0.6);
  padding: 22px;
  text-align: center;
  transition: 0.3s;
}

.tool-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-block;
}

.tool-card h6 {
  font-weight: 700;
  margin: 0;
  color: var(--text-light);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(34, 197, 94, 0.4);
}

/* Responsive Tools */
@media (max-width: 576px) {
  .tools-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Light Mode Fix */
body.light-mode .skill-item span {
  color: #111827;
}

body.light-mode .skill-bar {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .tool-card {
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .tool-card h6 {
  color: #111827;
}

/* PROJECTS SECTION */
.projects-intro {
  max-width: 720px;
  margin: auto;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Filters */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: var(--text-light);
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: var(--shadow-glow);
}

.filter-btn.active {
  background: var(--accent);
  color: #0b0f14;
  box-shadow: var(--shadow-glow);
}

/* Project Card */
.project-card {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(17, 24, 39, 0.65);
  overflow: hidden;
  transition: 0.3s;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(34, 197, 94, 0.4);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h5 {
  font-weight: 800;
  margin-bottom: 10px;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-tags span {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.08);
  color: var(--accent);
}

/* Button custom */
.btn-project {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--accent);
  font-weight: 700;
  padding: 12px;
  border-radius: 14px;
  transition: 0.3s;
}

.btn-project:hover {
  background: var(--accent);
  color: #0b0f14;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Modal */
.custom-modal {
  border-radius: var(--radius);
  background: rgba(11, 15, 20, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--text-light);
  box-shadow: var(--shadow-glow);
}

.project-modal-list {
  margin-top: 15px;
  padding-left: 18px;
  color: var(--text-muted);
}

.project-modal-list li {
  margin-bottom: 8px;
}

/* Light Mode Fix */
body.light-mode .filter-btn {
  color: #111827;
}

body.light-mode .project-card {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .project-content p {
  color: #374151;
}

body.light-mode .custom-modal {
  background: #ffffff;
  color: #111827;
}

body.light-mode .project-modal-list {
  color: #374151;
}

body.light-mode .btn-close-white {
  filter: invert(1);
}

/* EXPERIENCE SECTION */
.experience-intro {
  max-width: 720px;
  margin: auto;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Timeline Layout */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(34, 197, 94, 0.25);
}

/* Timeline Item */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-icon {
  position: absolute;
  left: -5px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.timeline-content {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(17, 24, 39, 0.65);
  margin-left: 40px;
  transition: 0.3s;
}

.timeline-content:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: var(--shadow-glow);
}

.timeline-content h5 {
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-date {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Light Mode Fix */
body.light-mode .timeline-content {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .timeline-content p {
  color: #374151;
}

/* CERTIFICATES SECTION */
.cert-intro {
  max-width: 720px;
  margin: auto;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Certificate Card */
.cert-card {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(17, 24, 39, 0.65);
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  height: 100%;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: var(--shadow-glow);
}

.cert-icon {
  width: 60px;
  height: 60px;
  margin: auto;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.cert-icon i {
  font-size: 1.8rem;
  color: var(--accent);
}

.cert-card h5 {
  font-weight: 800;
  margin-bottom: 10px;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.cert-date {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.08);
  color: var(--accent);
}

/* Light Mode Fix */
body.light-mode .cert-card {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .cert-card p {
  color: #374151;
}

/* CONTACT SECTION */
.contact-intro {
  max-width: 720px;
  margin: auto;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-info-card,
.contact-form-card {
  border-radius: var(--radius);
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(17, 24, 39, 0.65);
  padding: 30px;
  transition: 0.3s;
}

.contact-info-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-item h6 {
  font-weight: 800;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-muted);
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.25);
  margin-right: 10px;
  color: var(--accent);
  transition: 0.3s;
}

.contact-social a:hover {
  background: var(--accent);
  color: #0b0f14;
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* Form Input */
.custom-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 14px;
  padding: 14px;
  color: var(--text-light);
}

.custom-input:focus {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: var(--shadow-glow);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-light);
}

.custom-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Alert Message */
.alert-success-custom {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.alert-error-custom {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-weight: 600;
}

/* Light Mode Fix */
body.light-mode .contact-info-card,
body.light-mode .contact-form-card {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .contact-info-desc,
body.light-mode .contact-item p,
body.light-mode .contact-intro {
  color: #374151;
}

body.light-mode .custom-input {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}

body.light-mode .custom-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

body.light-mode .custom-input:focus {
  color: #111827;
}

/* FOOTER SECTION */
.footer-section {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(34, 197, 94, 0.15);
  background: rgba(17, 24, 39, 0.6);
}

.footer-logo {
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links li a {
  color: var(--text-muted);
  font-weight: 600;
  transition: 0.3s;
}

.footer-links li a:hover {
  color: var(--accent);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.25);
  margin-left: 10px;
  color: var(--accent);
  transition: 0.3s;
}

.footer-social a:hover {
  background: var(--accent);
  color: #0b0f14;
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.footer-line {
  margin: 30px 0 20px;
  border-color: rgba(34, 197, 94, 0.15);
}

.footer-bottom p {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-dev {
  color: var(--accent);
  font-weight: 700;
}

.footer-dev:hover {
  text-decoration: underline;
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #0b0f14;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  background: var(--accent-glow);
}

/* Light Mode Fix */
body.light-mode .footer-section {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .footer-bottom p,
body.light-mode .footer-desc,
body.light-mode .footer-links li a {
  color: #374151;
}

/*loader Animation*/
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-content {
  display: flex;
  gap: 10px;
}

.loader-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 0.6s infinite alternate;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  from { transform: translateY(0); opacity: 0.6; }
  to { transform: translateY(-12px); opacity: 1; }
}

body.light-mode #loader {
  background: #f9fafb;
}