/* ═══════════════════════════════════════════════════════════════════
   ANIL KUMAR SANIYAL — PROFESSIONAL PORTFOLIO
   Production-Ready CSS | Inter + Poppins Typography
   ═══════════════════════════════════════════════════════════════════ */

/* ─── GOOGLE FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

/* ─── CSS CUSTOM PROPERTIES (LIGHT MODE) ─── */
:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-secondary: #1e293b;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-on-dark: #f1f5f9;
  --text-on-dark-muted: rgba(255, 255, 255, 0.6);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: rgba(37, 99, 235, 0.1);
  --gold: #d4a726;
  --gold-light: #f0d060;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(248, 249, 250, 0.92);
  --card-bg: #ffffff;
}

/* ─── DARK MODE OVERRIDES ─── */
body.dark-mode {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-dark: #020617;
  --bg-dark-secondary: #0f172a;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-on-dark: #f1f5f9;
  --text-on-dark-muted: rgba(255, 255, 255, 0.6);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59, 130, 246, 0.15);
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(15, 23, 42, 0.92);
  --card-bg: #1e293b;
}

/* ─── GLOBAL RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.2;
}

h1, h2, h3 { font-weight: 700; }
h4, h5, h6 { font-weight: 600; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* ─── SELECTION ─── */
::selection {
  background: var(--accent);
  color: #ffffff;
}

/* ─── VISUALLY HIDDEN (Accessibility) ─── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

/* ─── FOCUS STYLES (Accessibility) ─── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
  animation: slideDown 0.8s ease forwards;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px var(--shadow);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

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

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

/* ─── DARK MODE TOGGLE ─── */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }

body.dark-mode .theme-icon-light { display: none; }
body.dark-mode .theme-icon-dark { display: block; }

/* ─── HAMBURGER MENU ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── MOBILE NAV OVERLAY ─── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-content {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5rem 5rem 7rem;
  position: relative;
  overflow: hidden;
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}

.hero-name span {
  color: var(--accent);
  display: block;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.8s forwards;
  min-height: 1.8em;
}

/* ─── TYPING EFFECT ─── */
.typing-text {
  display: inline;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-on-dark-muted);
  margin-top: 1.5rem;
  max-width: 420px;
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 1.2s forwards;
}

/* ─── CTA BUTTONS ─── */
.btn-primary {
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-outline {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-on-dark);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── HERO IMAGE SIDE ─── */
.hero-image {
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 3rem;
}

.hero-img-frame {
  position: relative;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.8s forwards;
}

.hero-img-frame::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: 8px;
  z-index: 0;
  transition: transform 0.4s ease;
}

.hero-img-frame:hover::before {
  transform: translate(4px, 4px);
}

.hero-img-frame img {
  width: 320px;
  height: 400px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.hero-img-frame:hover img {
  filter: brightness(1.05);
}

.hero-badge {
  position: absolute;
  bottom: -12px;
  left: -20px;
  background: var(--accent);
  color: #ffffff;
  padding: 1rem 1.4rem;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.hero-badge .num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.hero-badge .num sup {
  font-size: 0.8rem;
}

.hero-badge .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-floats {
  position: absolute;
  top: 6rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}

.hero-float-item {
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 4px;
  box-shadow: 0 2px 12px var(--shadow);
}

/* ═══════════════════════════════════════════════════════════════════
   GOLD DIVIDER
   ═══════════════════════════════════════════════════════════════════ */
.gold-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hover), var(--accent), transparent);
}

/* ═══════════════════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════════════════ */
.section {
  padding: 6rem 7rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent);
  max-width: 40px;
}

.section-label-dark {
  color: rgba(37, 99, 235, 0.7);
}

body.dark-mode .section-label-dark {
  color: rgba(59, 130, 246, 0.7);
}

.section-label-center {
  justify-content: center;
}

.section-label-center::after {
  display: none;
}

.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-heading em,
.section-heading span {
  color: var(--accent);
  font-style: italic;
}

.section-heading-center {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
  background: var(--bg-primary);
}

.about-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.about-heading em {
  color: var(--accent);
  font-style: italic;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.about-text p:first-child {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  display: block;
}

.stat-num sup {
  font-size: 1rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════════ */
.services {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: 'SERVICES';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  font-size: 16rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.services-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-on-dark);
  max-width: 420px;
  line-height: 1.2;
}

.services-heading span {
  color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255, 255, 255, 0.06);
}

.service-card {
  background: var(--bg-dark);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}

.service-card:hover::before {
  width: 100%;
}

.service-card:hover {
  background: var(--bg-dark-secondary);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
}

.service-num {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(37, 99, 235, 0.1);
  line-height: 1;
  transition: color 0.3s ease;
}

.service-card:hover .service-num {
  color: rgba(37, 99, 235, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   EXPERTISE / SKILLS SECTION
   ═══════════════════════════════════════════════════════════════════ */
.expertise {
  background: var(--bg-primary);
}

.expertise-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.expertise-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* ─── SKILL BARS ─── */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.skill-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.skill-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.skill-bar-fill.animate {
  width: var(--pct);
}

/* ─── EXPERTISE CARDS ─── */
.expertise-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.exp-card {
  background: var(--card-bg);
  padding: 1.8rem;
  border-radius: 8px;
  border-bottom: 3px solid transparent;
  transition: all 0.35s ease;
  box-shadow: 0 2px 12px var(--shadow);
}

.exp-card:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-lg);
}

.exp-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: block;
}

.exp-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.exp-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   KANGRA HUB SECTION
   ═══════════════════════════════════════════════════════════════════ */
.kangra-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.kangra-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.kangra-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kangra-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.kangra-heading span {
  color: var(--accent);
}

.kangra-desc {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-on-dark-muted);
  margin-bottom: 2rem;
}

.kangra-desc-sub {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.kangra-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 2.2rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  margin-top: 1.5rem;
}

.kangra-visit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.kangra-visit-btn:hover::before {
  transform: scaleX(1);
}

.kangra-visit-btn:hover {
  color: #ffffff;
}

.kangra-visit-btn span,
.kangra-visit-btn svg {
  position: relative;
  z-index: 1;
}

.kangra-visit-btn svg {
  transition: transform 0.3s ease;
}

.kangra-visit-btn:hover svg {
  transform: translateX(4px);
}

.kangra-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.kangra-logo-wrap {
  width: 180px;
  height: 180px;
  border: 2px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  position: relative;
  transition: all 0.4s ease;
}

.kangra-logo-wrap::before,
.kangra-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
}

.kangra-logo-wrap::after {
  inset: -12px;
  border-color: rgba(37, 99, 235, 0.08);
  border-radius: 16px;
}

.kangra-logo-wrap:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.kangra-logo-wrap img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.kangra-tagline {
  font-style: italic;
  color: var(--text-on-dark-muted);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
   ═══════════════════════════════════════════════════════════════════ */
.testimonials {
  background: var(--bg-primary);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.test-card {
  background: var(--card-bg);
  padding: 2.2rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.35s ease;
  box-shadow: 0 2px 12px var(--shadow);
}

.test-card::before {
  content: '\201C';
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  color: var(--accent-light);
  position: absolute;
  top: 0.3rem;
  left: 1.2rem;
  line-height: 1;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow-lg);
}

.test-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: 1.8rem;
  margin-bottom: 1.2rem;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.test-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.test-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.test-stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-left: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════════ */
.contact {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
  z-index: 1;
}

.contact-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.15;
  margin: 1rem 0 1.5rem;
}

.contact-heading span {
  color: var(--accent);
}

.contact-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-on-dark-muted);
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--accent);
  border-radius: 6px;
}

.contact-item-text .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.contact-item-text .value {
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
}

/* ─── CONTACT FORM ─── */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group textarea {
  min-height: 120px;
}

/* ─── FORM VALIDATION ─── */
.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.2rem;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

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

/* ─── FORM SUCCESS ─── */
.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success svg {
  color: #22c55e;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

/* ─── SUBMIT BUTTON ─── */
.btn-submit {
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer {
  background: #080c14;
  padding: 2rem 7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.footer-brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--text-on-dark-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copy span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

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

/* ═══════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ═══════════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

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

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════ */

/* ─── 1440px ─── */
@media (max-width: 1440px) {
  .section { padding: 5rem 5rem; }
  .nav-container { padding: 0.9rem 3rem; }
  .hero-content { padding: 8rem 4rem 5rem 5rem; }
  footer { padding: 2rem 5rem; }
}

/* ─── 1024px ─── */
@media (max-width: 1024px) {
  .section { padding: 4rem 3rem; }
  .nav-container { padding: 0.9rem 2rem; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 7rem 3rem 4rem;
  }

  .hero-image {
    padding: 3rem;
  }

  .hero-img-frame img {
    width: 260px;
    height: 320px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .kangra-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .kangra-logo-box {
    align-items: flex-start;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  footer {
    padding: 2rem 3rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ─── 768px (Mobile Navigation) ─── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    z-index: 999;
    box-shadow: -4px 0 20px var(--shadow);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .nav-links a::after {
    bottom: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .expertise-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}

/* ─── 480px ─── */
@media (max-width: 480px) {
  .section { padding: 3rem 1.5rem; }

  .hero-content {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-image {
    padding: 2rem 1.5rem 3rem;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-floats {
    display: none;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .kangra-visit-btn {
    width: 100%;
    justify-content: center;
  }

  footer {
    padding: 1.5rem 1rem;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ─── 320px ─── */
@media (max-width: 320px) {
  .section { padding: 2.5rem 1rem; }

  .hero-content {
    padding: 5.5rem 1rem 2.5rem;
  }

  .hero-name {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
  }

  .stat-num {
    font-size: 2rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .exp-card {
    padding: 1.2rem;
  }

  .test-card {
    padding: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════ */
@media print {
  .navbar,
  .hamburger,
  .hero-floats,
  .hero-badge,
  .theme-toggle,
  .mobile-nav-overlay,
  .skip-link,
  .gold-divider {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
  }

  .section {
    padding: 2rem 1rem;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
