@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --primary: #ffb834; /* Amber original tone */
  --primary-rgb: 255, 184, 52;
  --secondary: #ff782c; /* Vibrant Orange */
  --secondary-rgb: 255, 120, 44;
  --accent: #8b5cf6; /* Indigo / Violet accent */
  --accent-rgb: 139, 92, 246;
  --teal: #06b6d4; /* Teal accent for tech tags */
  
  /* Obsidian Space Theme */
  --bg-dark: #07090e;
  --bg-dark-rgb: 7, 9, 14;
  --bg-card: rgba(13, 20, 35, 0.65);
  --bg-glass: rgba(13, 20, 35, 0.45);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(255, 184, 52, 0.15);
  
  --text-primary: #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 25px rgba(255, 184, 52, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* --- RESET & GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow lighting in background */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(255, 184, 52, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Global Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 52, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- REUSABLE GLASS COMPONENTS --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  padding: 30px;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  will-change: transform, box-shadow;
}

.glass-panel:hover {
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(var(--primary-rgb), 0.1);
}

.accent-glow-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-modern-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000000;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 184, 52, 0.25);
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 52, 0.4), 0 0 20px rgba(255, 184, 52, 0.2);
  color: #000000;
}

.btn-modern-secondary {
  background: var(--bg-glass);
  color: #ffffff;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-modern-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- NAVIGATION --- */
.modern-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  padding: 18px 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.modern-navbar .container {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.modern-navbar.scrolled {
  background: rgba(7, 9, 14, 0.96); /* High opacity on scroll */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.modern-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.modern-navbar .navbar-brand span {
  color: var(--primary);
  margin-left: 2px;
}

.modern-navbar .nav-link {
  color: var(--text-secondary) !important;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 8px;
  position: relative;
  transition: var(--transition-smooth);
}

.modern-navbar .nav-link:hover,
.modern-navbar .nav-item.active .nav-link {
  color: #ffffff !important;
}

.modern-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: right;
}

.modern-navbar .nav-link:hover::after,
.modern-navbar .nav-item.active .nav-link::after {
  transform: scaleX(1);
  transform-origin: left;
}

.modern-toggler {
  border: none !important;
  background: transparent !important;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  display: none;
  transition: var(--transition-smooth);
}

/* Mobile dropdown styles */
@media (max-width: 991.98px) {
  .modern-toggler {
    display: block;
  }
  
  .modern-navbar.scrolled {
    background: #07090e !important; /* Fully solid to hide scrolled content behind logo/hamburger */
    padding: 10px 0;
  }
  
  .modern-navbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: var(--shadow-card);
    z-index: 1000;
    display: none;
  }
  
  .modern-navbar .navbar-collapse.show {
    display: block !important;
  }
  
  .modern-navbar .nav-link {
    padding: 12px 16px !important;
    display: block;
  }
  
  .modern-navbar .nav-link::after {
    left: 16px;
    bottom: 5px;
    width: 30px;
  }
}

/* --- HERO SECTION --- */
.modern-hero {
  height: 100vh;
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 20px;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .modern-hero {
    height: auto;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

/* Cyberpunk grid background for Hero */
.modern-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: -1;
}

.hero-subheading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, #f97316 35%, #ec4899 70%, var(--secondary) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: moving-gradient 8s ease infinite;
}

@keyframes moving-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Ambient Background Blobs */
.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  mix-blend-mode: screen;
  animation: float-blob 20s infinite ease-in-out alternate;
}

.blob-orange {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -10%;
  left: 15%;
}

.blob-purple {
  width: 500px;
  height: 500px;
  background: #a855f7;
  bottom: -10%;
  right: 5%;
  animation-delay: -5s;
}

.blob-cyan {
  width: 350px;
  height: 350px;
  background: #06b6d4;
  top: 30%;
  left: -5%;
  animation-delay: -10s;
}

@keyframes float-blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-40px, 50px) scale(0.9); }
}

/* Developer Terminal Widget */
.hero-terminal {
  max-width: 580px;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 52, 0.12);
  background: rgba(7, 9, 14, 0.7);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 20px;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot.red { background: #ef4444; }
.terminal-dots .dot.yellow { background: #f59e0b; }
.terminal-dots .dot.green { background: #10b981; }

.terminal-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 12px 16px;
}

.terminal-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #d1d5db;
}

/* Syntax Highlighting */
.token-keyword { color: #f43f5e; font-weight: bold; }
.token-operator { color: #38bdf8; }
.token-string { color: #10b981; }

.hero-typing {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #ffffff;
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.hero-typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--primary);
  animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 15px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero-image-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, transparent 60%);
  filter: blur(30px);
  z-index: 1;
}

.hero-image-border {
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-image-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.4), transparent, rgba(var(--accent-rgb), 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-image-border img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-image-border:hover img {
  transform: scale(1.03);
}

/* --- SECTION STYLING --- */
.section-padding {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
  position: relative;
}

.section-header-big {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.section-header-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.section-header-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 12px auto 0 auto;
}

/* --- ABOUT SECTION --- */
.about-img-box {
  position: relative;
  max-width: 280px;
  margin: 0 auto 30px auto;
}

.about-img-box img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.about-img-box::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px dashed rgba(var(--primary-rgb), 0.2);
  border-radius: 25px;
  z-index: -1;
  transition: var(--transition-smooth);
}

.about-img-box:hover img {
  transform: translateY(-5px);
}

.about-img-box:hover::before {
  transform: rotate(5deg) scale(1.02);
  border-color: rgba(var(--primary-rgb), 0.5);
}

.about-info-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

.about-info-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.about-info-list strong {
  color: #ffffff;
  font-family: var(--font-heading);
  display: inline-block;
  width: 140px;
}

/* --- SKILLS GRID --- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.skill-card {
  padding: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skill-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #ffffff;
}

.skill-percentage {
  color: var(--primary);
  font-weight: 700;
}

.skill-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  width: 0;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESUME TIMELINE --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--accent) 50%, var(--border-color) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px;
  margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 25px; /* Aligned vertically with date badge/first line instead of top card border */
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8);
}

.timeline-item:nth-child(odd) .timeline-node {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-node {
  left: -10px;
}

.timeline-card {
  padding: 25px;
}

.timeline-date {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.timeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.timeline-company {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: block;
}

.timeline-card ul {
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.timeline-card ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.timeline-card ul li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--primary);
}

/* --- PROJECTS --- */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  padding: 0 !important; /* Remove card padding so image spans edge-to-edge */
}

.project-img-box {
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: translateZ(20px);
  transform-style: preserve-3d;
}

.project-img-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.9), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: var(--transition-smooth);
  z-index: 5;
}

.project-card:hover .project-img-box img {
  transform: scale(1.05); /* Minimal zoom on hover to avoid cropping text */
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-details {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transform: translateZ(30px);
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.project-title a {
  color: #ffffff;
}

.project-title a:hover {
  color: var(--primary);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.project-link-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-link-btn:hover {
  color: var(--secondary);
}

/* --- STATS COUNTERS --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.stat-item {
  padding: 30px;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
  font-family: var(--font-heading);
  text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.stat-label {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CALL TO ACTION (CTA) --- */
.modern-cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 60px 40px;
  margin: 60px auto;
  max-width: 960px;
  text-align: center;
}

.modern-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(255, 184, 52, 0.1) 0%, transparent 60%);
  z-index: -1;
}

.modern-cta h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.modern-cta h2 span {
  color: var(--primary);
}

.modern-cta p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
}


/* --- REVIEWS SLIDER --- */
.reviews-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.reviews-slider-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 20px;
}

.reviews-slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.review-slide {
  display: flex;
  box-sizing: border-box;
}

/* Modern Review Card inside Grid */
.review-card-modern {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 30px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease;
}

.review-card-modern:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--primary-rgb), 0.08);
}

.review-quote-mark {
  font-size: 4rem;
  line-height: 0.6;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  margin-bottom: -15px;
  user-select: none;
}

.review-text-modern {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  flex-grow: 1;
}

.review-header-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reviewer-avatar-modern {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.reviewer-info-modern {
  flex: 1;
  min-width: 0;
}

.reviewer-name-modern {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviewer-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.review-stars-modern {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.review-stars-modern .star {
  font-size: 1rem;
  color: #3a3a3a;
}

.review-stars-modern .star.filled {
  color: #f5c518;
  text-shadow: 0 0 6px rgba(245, 197, 24, 0.4);
}

.review-date-modern {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-btn {
  font-size: 1rem;
  padding: 14px 36px;
  cursor: pointer;
  border: none;
}

/* Slider Arrows */
.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  background: rgba(7, 9, 14, 0.6);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  outline: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slider-arrow:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
  transform: scale(1.1);
}

/* Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
  outline: none;
}

.slider-dot.active {
  background: var(--primary);
  width: 26px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.5);
}

.reviews-loader {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loader-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(var(--primary-rgb), 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reviews-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 40px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}


.contact-card {
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.15);
  transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.contact-card p, 
.contact-card a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.contact-card a:hover {
  color: var(--primary);
}

.question-panel {
  text-align: center;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.question-panel h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.question-panel h2 span {
  color: var(--primary);
}

/* Social links list styling */
.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.social-links li.normal-txt {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  margin-right: 10px;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

/* --- FOOTER --- */
.modern-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background: #04060a;
}

.modern-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- SCROLL REVEAL UTILITIES --- */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale-hidden {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Delay modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- MOBILE RESPONSIVENESS OVERRIDES & ADJUSTMENTS --- */

@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  /* Hide backdrop section heading texts to prevent horizontal overflow */
  .section-header-big {
    display: none;
  }
  
  /* Resume section: highly optimized for small screen card width & line padding */
  .timeline {
    padding: 20px 10px;
  }
  
  .timeline::before {
    left: 20px; /* Line moved left to save space */
  }
  
  .timeline-item {
    width: 100%;
    padding: 0 0 0 40px; /* Left gutter reduced from 60px to 40px, giving cards 20px more width! */
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd) .timeline-node,
  .timeline-item:nth-child(even) .timeline-node {
    left: 10px; /* Aligned center relative to the 20px timeline line */
    right: auto;
    top: 25px; /* Vertical align with badge center instead of floating at the top border */
  }
  
  .timeline-card {
    padding: 20px 15px;
  }
  
  /* Section title margins */
  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 575.98px) {
  /* Universal panel padding compression for small screens */
  .glass-panel {
    padding: 20px 15px !important;
    border-radius: 12px;
  }

  /* Project cards: single column full width on mobile */
  #project-section .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Keep project cards at 0 padding so image is edge-to-edge */
  #project-section .glass-panel.project-card {
    padding: 0 !important;
    border-radius: 14px;
  }

  /* Proper image sizing — full width, natural height, no crop */
  #project-section .project-img-box {
    width: 100%;
    overflow: hidden;
  }

  #project-section .project-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
  }

  .project-details {
    padding: 18px !important;
  }
  
  /* Hero centering on mobile */
  .modern-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }
  
  .hero-subheading {
    text-align: center;
  }
  
  .hero-title {
    text-align: center;
  }
  
  .hero-typing {
    justify-content: center;
  }
  
  .hero-description {
    text-align: center;
    margin: 0 auto 30px auto;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn-modern {
    width: 100%;
  }
  
  /* Stack details in about list vertically */
  .about-info-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .about-info-list strong {
    width: 100%;
  }
  
  /* Projects counter card alignment stack on mobile */
  .about-counter-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 15px;
    padding: 20px 15px !important;
  }
  
  .about-counter-card a {
    width: 100%;
  }
  
  /* Stats grid: 2 columns on mobile with the last span fitting full width */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stats-grid .stat-item {
    padding: 20px 10px;
  }
  
  .stats-grid .stat-number {
    font-size: 2.2rem;
  }
  
  .stats-grid .stat-item:nth-child(3) {
    grid-column: span 2;
  }
  
  /* Contact grid: horizontal cards on mobile for quick browsing */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contact-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 15px;
    padding: 15px !important;
  }
  
  .contact-icon {
    margin-bottom: 0;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Google Forms question block padding */
  .question-panel {
    padding: 25px 15px;
  }

  /* Client Reviews Mobile Overrides */
  .review-card-modern {
    padding: 20px !important;
  }
  .review-header-modern {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }
  .review-stars-modern {
    margin-left: 0;
    margin-top: 4px;
    width: 100%;
  }
}

/* --- SEGMENTED FILTER BAR --- */
.projects-filter-bar {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 30px;
  box-shadow: var(--shadow-card);
  gap: 5px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 8px 22px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.filter-btn:hover {
  color: #ffffff;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 184, 52, 0.3);
}

.project-item-col {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item-col.filtered-out {
  display: none !important;
}
