/* ==========================================================================
   STYLE SYSTEM: SYED BASITH HUSSAIN PORTFOLIO
   Theme: Premium Modern / White Minimalist / Apple + Linear + Framer inspired
   ========================================================================== */

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

/* 2. Custom CSS Variables */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Color Palette - Light Premium White Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #fbfbfd;
  --bg-tertiary: #f5f5f7;
  --bg-card: rgba(255, 255, 255, 0.65);
  
  --text-primary: #1d1d1f;      /* Apple charcoal */
  --text-secondary: #424245;    /* Medium dark */
  --text-muted: #86868b;       /* Apple muted gray */
  --text-light: #f5f5f7;
  
  --accent-color: #6366f1;      /* Indigo */
  --accent-secondary: #a855f7;  /* Violet */
  --accent-rgb: 99, 102, 241;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --accent-gradient-glow: rgba(99, 102, 241, 0.12);
  
  /* Borders and Glassmorphism */
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.08);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Base Styles & Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none; /* Hide default cursor to enable custom mouse follower (retained for desktop) */
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 4. Mouse Follower Custom Cursor */
.mouse-follower {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.mouse-follower-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s, 
              background-color 0.3s;
}

/* Mouse Follower Hover States */
body.is-hovering .mouse-follower {
  width: 4px;
  height: 4px;
  background-color: var(--accent-color);
}
body.is-hovering .mouse-follower-ring {
  width: 60px;
  height: 60px;
  border-color: rgba(99, 102, 241, 0.3);
  background-color: rgba(99, 102, 241, 0.05);
}

/* Hide custom cursor on mobile touch devices */
@media (max-width: 1024px) {
  * {
    cursor: auto !important;
  }
  .mouse-follower, .mouse-follower-ring {
    display: none !important;
  }
}

/* 5. Utility Classes & Layouts */
.section-padding {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Glassmorphism Container */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.glass-panel:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

/* Premium Gradient Text */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Section Header Typography */
.section-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -0.03em;
  position: relative;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Dynamic Particle Canvas Wrapper */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 6. Floating Sticky Header */
.header-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.header-nav.scrolled {
  top: 10px;
  width: 95%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: var(--text-primary) !important;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px 6px 8px !important;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition-bounce) !important;
}

.navbar-brand:hover {
  transform: scale(1.05) rotate(-2deg);
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
  background: #ffffff;
}

.brand-logo-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
}

.brand-logo-text span {
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-left: 2px;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 8px 16px !important;
  border-radius: 20px;
  transition: var(--transition-fast) !important;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(0, 0, 0, 0.03);
}

.nav-link.active {
  font-weight: 600;
  background: rgba(99, 102, 241, 0.06);
  color: var(--accent-color) !important;
}

.navbar-toggler {
  border: none;
  padding: 4px;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2829, 29, 31, 0.8%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 7. Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title-prefix {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-name {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-rotator-wrapper {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  height: 2.8rem;
  overflow: hidden;
  position: relative;
  color: var(--text-secondary);
}

.hero-rotator {
  display: inline-block;
  color: var(--text-primary);
  border-right: 3px solid var(--accent-color);
  white-space: nowrap;
  animation: typing-blink 0.75s step-end infinite;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

/* Visual Image Frame (Hero Left) */
.hero-visual-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  background: transparent;
  aspect-ratio: 1 / 1;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}

.hero-image-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(99, 102, 241, 0.22)); /* Contoured drop-shadow surrounding Syed's transparent outline */
  transition: transform 0.1s ease-out;
}

/* Animated Floating Shapes behind Hero image */
.floating-shapes {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(40px);
  opacity: 0.15;
  mix-blend-mode: multiply;
  animation: float-around 20s infinite alternate ease-in-out;
}

.shape-1 {
  width: 250px;
  height: 250px;
  top: 10%;
  right: -5%;
  animation-duration: 15s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: -5%;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 40%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  animation-duration: 18s;
  animation-delay: -3s;
}

/* Stats Counter Grid in Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Magnetic Buttons & Interactive Buttons */
.btn-premium {
  font-family: var(--font-display);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: var(--transition-bounce);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn-premium-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
}

.btn-premium-primary:hover {
  background: transparent;
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-premium-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-premium-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .hero-name {
    font-size: 2.8rem;
  }
  .hero-rotator-wrapper {
    font-size: 1.5rem;
    height: 2.2rem;
  }
}

/* 8. About Me Section */
.about-details {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 2rem;
}

@media (min-width: 576px) {
  .about-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .about-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.metric-icon {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.metric-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.metric-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Animated Circular Progress Charts */
.progress-circles-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  justify-items: center;
  align-content: center;
  height: 100%;
}

@media (max-width: 576px) {
  .progress-circles-wrapper {
    gap: 20px;
  }
}

.progress-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.svg-circle-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

.svg-circle-container svg {
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 8;
}

.circle-progress {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 301.6; /* 2 * PI * r (r=48) */
  stroke-dashoffset: 301.6;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-circle-item:nth-child(2) .circle-progress {
  stroke: var(--accent-secondary);
}

.progress-circle-item:nth-child(3) .circle-progress {
  stroke: #10b981; /* Green */
}

.progress-circle-item:nth-child(4) .circle-progress {
  stroke: #f59e0b; /* Amber */
}

.percentage-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.circle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 9. Experience Timeline */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--border-color) 0%, var(--accent-color) 20%, var(--accent-secondary) 80%, var(--border-color) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item-left {
  left: 0;
  text-align: right;
}

.timeline-item-right {
  left: 50%;
  text-align: left;
}

/* Timeline Dot */
.timeline-dot {
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  z-index: 10;
}

.timeline-item-left .timeline-dot {
  right: -10px;
}

.timeline-item-right .timeline-dot {
  left: -10px;
}

.timeline-item-right:nth-child(even) .timeline-dot {
  border-color: var(--accent-secondary);
}

/* Timeline Card */
.timeline-card {
  padding: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.timeline-item-right .timeline-card:hover {
  border-color: var(--accent-secondary);
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-item-right .timeline-date {
  color: var(--accent-secondary);
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.2rem;
  display: block;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}

.timeline-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 20px;
}

.timeline-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 0.8rem;
}

.timeline-item-right .timeline-list li::before {
  color: var(--accent-secondary);
}

/* Mobile responsive timeline */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding: 20px 20px 20px 45px;
    text-align: left !important;
  }
  .timeline-item-left {
    left: 0;
  }
  .timeline-item-right {
    left: 0;
  }
  .timeline-dot {
    left: 10px !important;
  }
  .timeline-list {
    display: block;
  }
}

/* 10. Education Cards */
.edu-card {
  padding: 35px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  height: 100%;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.edu-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-lg);
}

.edu-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.edu-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.edu-card:hover .edu-icon-wrapper::after {
  opacity: 1;
}

.edu-card:hover .edu-icon-wrapper {
  color: var(--bg-primary);
  z-index: 1;
}

.edu-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.edu-degree {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.edu-college {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: auto;
}

/* 11. Technical Skills Layout */
.skills-filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3.5rem;
}

.filter-btn {
  font-family: var(--font-display);
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.skills-grid-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-pill {
  padding: 12px 24px;
  border-radius: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition-bounce);
  position: relative;
}

.skill-pill i {
  font-size: 1.15rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.skill-pill:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--accent-color);
  background: #ffffff;
  color: var(--accent-color);
  box-shadow: 0 10px 20px var(--accent-gradient-glow);
}

.skill-pill:hover i {
  color: var(--accent-color);
  transform: rotate(360deg);
  transition: transform 0.5s ease;
}

/* Dynamic highlight category states */
.skill-pill.dimmed {
  opacity: 0.25;
  transform: scale(0.92);
}

.skill-pill.highlighted {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-gradient-glow);
}

/* 12. Projects Showcase */
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(168,85,247,0.05) 100%);
  position: relative;
  transition: var(--transition-smooth);
}

.project-img-placeholder svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.9;
}

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

/* Overlaid Tech Stack in Image */
.project-card-overlay {
  position: absolute;
  bottom: 5px;
  left: 5px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-tech {
  background: rgba(240, 254, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.project-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.2rem;
}

.project-links {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-btn-details {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.project-btn-details:hover {
  color: var(--accent-color);
}

.project-btn-details i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.project-btn-details:hover i {
  transform: translateX(4px);
}

/* Project Detail Modal Styles */
.modal-premium {
  border-radius: 24px !important;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
}

.modal-premium-header {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 30px;
  background: var(--bg-secondary);
}

.modal-premium-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-premium-body {
  padding: 30px;
}

.modal-img-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 9;
}

.modal-img-container svg {
  width: 100%;
  height: 100%;
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.modal-tech-badge {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.modal-premium-footer {
  border-top: 1px solid var(--border-color);
  padding: 20px 30px;
  background: var(--bg-secondary);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* 13. Leadership & Soft Skills */
.soft-skills-card {
  padding: 30px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  height: 100%;
  transition: var(--transition-bounce);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.soft-skills-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-lg);
}

.soft-skill-icon {
  font-size: 2.2rem;
  color: var(--accent-secondary);
  margin-bottom: 1.2rem;
  transition: var(--transition-fast);
}

.soft-skills-card:hover .soft-skill-icon {
  transform: scale(1.15);
  color: var(--accent-color);
}

.soft-skill-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.soft-skill-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* 14. Achievements Counters Section */
.achievements-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

@media (max-width: 992px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

.achievement-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.achievement-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 15. Contact Section */
.contact-info-panel {
  padding: 40px;
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 2rem;
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-color);
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}

.contact-info-item:hover .contact-icon-box {
  background: var(--accent-color);
  color: var(--bg-primary);
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.contact-info-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-info-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-info-text a {
  color: var(--text-primary);
}

.contact-info-text a:hover {
  color: var(--accent-color);
}

/* Floating Labels Form */
.form-floating > .form-control:focus, 
.form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-control {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 14px 18px;
  transition: var(--transition-fast);
  box-shadow: none !important;
}

.form-control:focus {
  border-color: var(--accent-color);
  background-color: #ffffff;
}

.form-floating > label {
  padding: 14px 18px;
  color: var(--text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--accent-color);
}

/* Success visual animation */
.form-success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  animation: zoom-in-success 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoom-in-success {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 16. Footer Section */
.footer-section {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  padding: 6px 14px 6px 8px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 30px;
  margin-bottom: 1rem;
  transition: var(--transition-bounce);
}

.footer-logo:hover {
  transform: scale(1.05) rotate(-2deg);
  border-color: var(--accent-color);
  background: #ffffff;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition-bounce);
}

.social-link:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: translateY(-5px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

/* 17. Scroll Reveal Animation Engine */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up {
  transform: translateY(40px);
}

.reveal-fade-left {
  transform: translateX(-40px);
}

.reveal-fade-right {
  transform: translateX(40px);
}

.reveal-zoom-in {
  transform: scale(0.92);
}

/* Activated States */
.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger reveals */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* 18. Micro keyframes animations */
@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, -40px) rotate(180deg);
  }
  100% {
    transform: translate(-20px, 20px) rotate(360deg);
  }
}

@keyframes typing-blink {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-color); }
}

/* 19. Floating WhatsApp Button - Sleek Glassmorphic Pill */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  height: 50px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-bounce);
}

.whatsapp-btn i {
  color: #25D366;
  font-size: 1.5rem;
}

.whatsapp-btn .wa-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.wa-status-dot {
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.wa-status-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #25D366;
  border-radius: 50%;
  animation: wa-dot-pulse 1.8s infinite ease-in-out;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.12);
}

@keyframes wa-dot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@media print {
  .whatsapp-btn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    height: 44px;
    padding: 0 16px;
    gap: 8px;
  }
  .whatsapp-btn i {
    font-size: 1.3rem;
  }
  .whatsapp-btn .wa-text {
    font-size: 0.85rem;
  }
}

/* 20. Responsive Header Navigation (Mobiles & Tablets) */
@media (max-width: 991px) {
  .header-nav {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 20px;
    box-shadow: var(--shadow-sm);
  }

  .header-nav.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .header-nav .container-fluid {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .navbar-collapse {
    width: 100%;
    margin-top: 10px;
    background: transparent;
    padding-bottom: 5px;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    gap: 8px !important;
    padding-left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 10px 16px !important;
    border-radius: 12px;
    display: block;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(99, 102, 241, 0.06) !important;
    color: var(--accent-color) !important;
  }
}
