/* Custom CSS Styles for Faisal Mehboob Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #121223;
  --bg-card: rgba(30, 30, 48, 0.65);
  --bg-card-hover: rgba(40, 40, 65, 0.8);
  --primary: #EDFA44;
  --primary-dark: #D1DD24;
  --text-main: #E2E0F9;
  --text-muted: #A0A0BA;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --glow-primary: rgba(237, 250, 68, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0c0c1d;
}

::-webkit-scrollbar-thumb {
  background: #333346;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Montserrat', sans-serif;
}

.header-Logo {
  height: 60px;
  width: 100px;
}

.footer-Logo {
  /* height: 60px; */
  width: 100px;
}

/* Shader & Three JS Canvas Container */
#shader-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#hero-threejs-container {
  position: absolute;
  top: 0;
  right: -20%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-top: 1px solid var(--border-light);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
  border-color: rgba(237, 250, 68, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--glow-primary);
}

.glass-card-static {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-top: 1px solid var(--border-light);
  border-radius: 16px;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #121223;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(237, 250, 68, 0.3);
}

.btn-primary:hover {
  background: #f7ff66;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(237, 250, 68, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(237, 250, 68, 0.05);
  transform: translateY(-2px);
}

/* Badge Header Pill */
.badge-header {
  background: rgba(237, 250, 68, 0.1);
  border: 1px solid rgba(237, 250, 68, 0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
}

/* Cursor Blink Typing */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background-color: var(--primary);
  margin-left: 4px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Progress Bar Animations */
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #D1DD24 0%, #EDFA44 100%);
  border-radius: 4px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(237, 250, 68, 0.4);
}

/* Filter Tab Active State */
.filter-btn {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #121223;
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(237, 250, 68, 0.3);
}

/* Portfolio Card Image Smooth Hover & Unhover Transition */
.portfolio-card img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

/* Timeline vertical track glow */
.timeline-track {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(237, 250, 68, 0.2) 100%);
}

@media (max-width: 768px) {
  .timeline-track {
    left: 24px;
  }
}

/* Glowing Nodes */
.timeline-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1e1e30;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(237, 250, 68, 0.4);
  z-index: 10;
}

.timeline-node img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  object-fit: contain;
  background: #fff;
}

/* Testimonials Carousel */
.testimonials-carousel {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.carousel-arrow:hover:not(:disabled) {
  background: rgba(237, 250, 68, 0.12);
  border-color: var(--primary);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex-basis: calc((100% - 48px) / 3);
  }
}

/* Form Input Glow */
.form-input {
  background: rgba(20, 20, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-main);
  padding: 14px 18px;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(237, 250, 68, 0.25);
  background: rgba(30, 30, 52, 0.9);
}

/* Toast Message */
#toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #1a1a2b;
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(237, 250, 68, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Review Modal */
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.review-modal.open {
  opacity: 1;
  visibility: visible;
}

.review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 18, 0.82);
  backdrop-filter: blur(10px);
}

.review-modal-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  border-top: 2px solid var(--primary);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.review-modal.open .review-modal-dialog {
  transform: translateY(0) scale(1);
}

.review-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.review-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.review-stars input {
  position: absolute;
  opacity: 0;
}

.review-stars label {
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.review-stars label .material-symbols-outlined {
  font-size: 32px;
  font-variation-settings: 'FILL' 1;
}

.review-stars label:hover,
.review-stars label:hover ~ label,
.review-stars input:checked ~ label {
  color: var(--primary);
}