/* css/style.css */
/* ==========================================================================
   TABLE OF CONTENTS
   1. Design Tokens & Variables
   2. Reset & Global Styles
   3. Typography
   4. Glassmorphism & UI Components
   5. Sticky & Fixed Top Navigation (Yasir Awan Style Border)
   6. Hero Section
   7. About Section
   8. Education & Experience Timelines
   9. Skills & Progress Bars
   10. Services Section
   11. Portfolio Section
   12. Statistics Counter
   13. Testimonials Carousel
   14. Important Links
   15. Contact Section & Map
   16. Footer & Back To Top
   ========================================================================== */

/* 1. DESIGN TOKENS & VARIABLES */
:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  
  --bg-dark: #0f172a;
  --bg-dark-alt: #1e293b;
  --card-bg-dark: rgba(30, 41, 59, 0.7);
  --text-dark: #f8fafc;
  --text-dark-muted: #94a3b8;
  --border-dark: rgba(255, 255, 255, 0.08);

  --bg-light: #f8fafc;
  --bg-light-alt: #f1f5f9;
  --card-bg-light: rgba(255, 255, 255, 0.85);
  --text-light: #0f172a;
  --text-light-muted: #64748b;
  --border-light: rgba(0, 0, 0, 0.08);

  --bg-main: var(--bg-dark);
  --bg-alt: var(--bg-dark-alt);
  --card-bg: var(--card-bg-dark);
  --text-main: var(--text-dark);
  --text-muted: var(--text-dark-muted);
  --border-color: var(--border-dark);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.35);
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

body.light-theme {
  --bg-main: var(--bg-light);
  --bg-alt: var(--bg-light-alt);
  --card-bg: var(--card-bg-light);
  --text-main: var(--text-light);
  --text-muted: var(--text-light-muted);
  --border-color: var(--border-light);
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* 2. RESET & GLOBAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  position: relative;
  padding-top: 70px; /* Offset for fixed navbar */
}

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

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 15px;
}

.loader-text {
  font-family: var(--font-code);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
}

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

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: transform 0.05s ease-out;
}

/* Animated Blob Background */
.blob-background-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: rgba(59, 130, 246, 0.2);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: rgba(139, 92, 246, 0.2);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 35vw;
  height: 35vw;
  background: rgba(6, 182, 212, 0.15);
  animation-delay: -10s;
}

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

/* 3. TYPOGRAPHY & LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section.alt-bg {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-family: var(--font-code);
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 1rem auto 0;
  border-radius: var(--radius-full);
}

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

/* Glassmorphism Cards */
.glassmorphism {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glassmorphism:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

/* Section Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 5. STICKY & FIXED TOP NAVIGATION (Full-Width, Non-Floating) */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.85);
}

.navbar.scrolled {
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 4px 20px -5px rgba(59, 130, 246, 0.25);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav-logo {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.nav-logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: transparent;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  cursor: pointer;
}

.hamburger-btn .bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: all var(--transition-fast);
}

/* 6. HERO SECTION */
.hero-section {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
}

.hero-container {
  max-width: 1240px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin: 1.5rem 0 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.typing-cursor {
  color: var(--primary);
  animation: blink 0.7s infinite;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  padding: 1.5rem;
  border-radius: 30px;
}

.gradient-border-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-alt);
}



.floating-badge {
  position: absolute;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  animation: float 4s ease-in-out infinite alternate;
}

.floating-badge i {
  font-size: 1.75rem;
  color: var(--primary);
}

.floating-badge strong {
  display: block;
  font-size: 0.9rem;
}

.floating-badge p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-1 {
  top: -20px;
  left: -20px;
}

.badge-2 {
  bottom: -20px;
  right: -20px;
  animation-delay: -2s;
}

@keyframes float {
  to { transform: translateY(-12px); }
}

.scroll-down-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* 7. ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-card {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.about-avatar-svg {
  border-radius: var(--radius-md);
}

.experience-badge {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.exp-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.plus {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.exp-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-text-column h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-text-column p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.stat-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-block;
}

.stat-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* 8. EDUCATION & EXPERIENCE TIMELINES */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.column-header {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.95rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 10px var(--primary);
}

.timeline-content {
  padding: 1.5rem;
}

.timeline-date {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--primary);
}

.timeline-title {
  font-size: 1.1rem;
  margin: 0.25rem 0;
}

.timeline-institution {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Experience Full Width Timeline */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.exp-item {
  padding: 2rem;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.exp-role {
  font-size: 1.3rem;
}

.exp-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
}

.exp-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* 9. SKILLS SECTION */
.skills-circular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.circle-card {
  padding: 2rem 1rem;
  text-align: center;
}

.circle-progress {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  position: relative;
}

.circle-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-progress circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.circle-progress .bg {
  stroke: var(--border-color);
}

.circle-progress .meter {
  stroke: url(#skillGrad);
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 1.5s ease-in-out;
}

.percentage-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.circle-card h4 {
  font-size: 0.95rem;
}

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

.skill-group {
  padding: 2rem;
}

.skill-group h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.progress-item {
  margin-bottom: 1.25rem;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 1.5s ease-out;
}

/* 10. SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* 11. PORTFOLIO SECTION */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.mock-project-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  transition: transform var(--transition-slow);
}

.img-1 { background: linear-gradient(45deg, #1e3a8a, #3b82f6); }
.img-2 { background: linear-gradient(45deg, #4c1d95, #8b5cf6); }
.img-3 { background: linear-gradient(45deg, #065f46, #10b981); }
.img-4 { background: linear-gradient(45deg, #831843, #ec4899); }
.img-5 { background: linear-gradient(45deg, #1e293b, #475569); }
.img-6 { background: linear-gradient(45deg, #7c2d12, #f97316); }

.portfolio-card:hover .mock-project-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
  text-align: center;
}

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

.portfolio-overlay h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.portfolio-overlay p {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.portfolio-btns {
  display: flex;
  gap: 0.75rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background var(--transition-fast);
}

.btn-icon:hover {
  background: var(--primary);
}

/* 12. STATISTICS COUNTER */
.stats-counter-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  text-align: center;
}

.counter-box i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.counter-box .counter {
  font-size: 2.5rem;
  font-weight: 800;
}

.counter-box .plus {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

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

/* 13. TESTIMONIALS CAROUSEL */
.testimonial-carousel-container {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  min-width: 100%;
  padding: 3rem 2.5rem;
  position: relative;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.reviewer-info h4 {
  font-size: 1rem;
}

.reviewer-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  background: var(--primary);
  width: 25px;
  border-radius: var(--radius-full);
}

/* 14. IMPORTANT LINKS */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.link-card:hover {
  transform: translateY(-4px);
}

.link-card i:first-child {
  font-size: 1.75rem;
  color: var(--primary);
}

.link-info {
  flex-grow: 1;
}

.link-info h3 {
  font-size: 1rem;
}

.link-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.link-card:hover .link-arrow {
  color: var(--primary);
}

/* 15. CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}

.info-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.icon-box {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.info-item p {
  font-weight: 600;
}

.social-box {
  padding: 1.5rem 2rem;
}

.social-box h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.social-icons a:hover {
  background: var(--primary);
  color: #fff;
}

.contact-form {
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
}

.form-label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.75rem;
  background: var(--bg-main);
  padding: 0 0.4rem;
  color: var(--primary);
}

.error-msg {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

.form-group.invalid .error-msg {
  display: block;
}

.form-group.invalid .form-input {
  border-color: #ef4444;
}

.w-100 {
  width: 100%;
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.map-placeholder {
  height: 160px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative;
  overflow: hidden;
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map-overlay i {
  color: #ef4444;
}

/* 16. FOOTER & BACK TO TOP */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-code);
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-logo span {
  color: var(--primary);
}

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

.copyright {
  margin-top: 1.5rem;
  font-size: 0.8rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}