/* ============================================
   Vista – Pure HTML/CSS/jQuery Portfolio
   Exact design colors + glass + dark/light
============================================ */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --header: #121213;
  --card: #141415;
  --border: #202021;
  --primary: #00b894;
  --primary-hover: #00d9a8;
  --menu-active: #111f1e;
  --icon-box: #112c28;
  --text: #e8e8e8;
  --text-muted: #a1a1aa;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  --font: 'Vazirmatn', system-ui, sans-serif;
  --container: 1360px;
  --grid: rgba(0, 184, 148, 0.05);
  --glass: rgba(18, 18, 19, 0.72);
  --glass-border: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Light mode */
[data-theme="light"] {
  --bg: #f4f5f7;
  --header: #ffffff;
  --card: #ffffff;
  --border: #e2e4e8;
  --primary: #00a884;
  --primary-hover: #009970;
  --menu-active: #e6f7f2;
  --icon-box: #e0f5ef;
  --text: #1a1a1c;
  --text-muted: #6b6b76;
  --white: #0a0a0b;
  --grid: rgba(0, 168, 132, 0.06);
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 0.35s, color 0.35s;
}

a { color: var(--primary); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-weight: 700; color: var(--white); line-height: 1.3; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== LOADING BAR ========== */
#ajax-loader {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#ajax-loader.active { opacity: 1; }
#ajax-loader .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.3s ease;
}

/* ========== HEADER – modern glass ========== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
  will-change: transform, opacity;
}
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.72);
}

/* scrolled state – stronger glass + border */
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.82);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}
[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* hide when scrolling down */
.site-header.is-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.25rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: opacity 0.25s;
}
.brand:hover { opacity: 0.9; color: var(--white); }
.brand-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0, 184, 148, 0.2), rgba(0, 184, 148, 0.05));
  border: 1px solid rgba(0, 184, 148, 0.35);
  color: var(--primary);
  transition: transform 0.3s, box-shadow 0.3s;
}
.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 0 20px rgba(0, 184, 148, 0.25);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text {
  background: linear-gradient(120deg, var(--white) 40%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}
[data-theme="light"] .nav-list {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: var(--primary);
  background: var(--menu-active);
}
.nav-list > li > a.active {
  box-shadow: inset 0 0 0 1px rgba(0, 184, 148, 0.25);
}

/* Dropdown (keep existing behavior, refine look) */
.has-dropdown { position: relative; }
.dropdown-toggle i {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.25s;
}
.has-dropdown.open > .dropdown-toggle i,
.has-dropdown:hover > .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 50%;
  transform: translateX(50%) translateY(8px);
  min-width: 230px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 100;
}
[data-theme="light"] .dropdown-menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}
.has-dropdown.open > .dropdown-menu,
.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.875rem;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: var(--menu-active);
  color: var(--primary);
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #00d9a8);
  color: #0a0a0b !important;
  box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 184, 148, 0.4);
  color: #0a0a0b !important;
}
.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #0a0a0b !important;
}
.btn-resume i { font-size: 0.95rem; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.25s;
}
[data-theme="light"] .icon-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
.icon-btn:hover {
  color: var(--primary);
  border-color: rgba(0, 184, 148, 0.4);
  background: var(--icon-box);
}

/* Hamburger */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* offset body content for fixed header */
body { padding-top: 72px; }

/* ========== MAIN CONTENT ========== */
#page-content {
  min-height: calc(100vh - 72px - 220px);
  opacity: 1;
  transition: opacity 0.25s ease;
}
#page-content.fade-out { opacity: 0; }

/* ========== HERO ========== */
.hero {
  padding: 4.5rem 0 3.5rem;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  flex-shrink: 0;
  overflow: visible !important;
}
.hero-image img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  background: var(--card);
}
.hero-badge {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.hero-content { flex: 1; min-width: 260px; }
.hero-greeting { color: var(--primary); font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; }
.hero-name { font-size: 2.4rem; font-weight: 800; margin-bottom: 0.3rem; color: var(--white); }
.hero-role {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  min-height: 1.6em;
}
.hero-role .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--primary);
  margin-right: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 1.6rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ========== SECTIONS ========== */
.section { padding: 3.5rem 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.75rem;
}
.section-title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.9rem;
}
.skill-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 0.6rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.skill-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.skill-icon {
  width: 38px; height: 38px;
  margin: 0 auto 0.5rem;
  background: var(--icon-box);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--primary);
}
.skill-name { font-size: 0.78rem; font-weight: 600; color: var(--white); margin-bottom: 0.2rem; }
.skill-level { font-size: 0.62rem; color: var(--primary); font-weight: 600; letter-spacing: 0.02em; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--primary); transform: translateY(-4px); }
.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--header);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.1rem; }
.card-title { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.35rem; }
.card-title a { color: var(--white); }
.card:hover .card-title a { color: var(--primary); }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.4rem;
}
.card-excerpt { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.card-link { font-size: 0.8rem; font-weight: 600; color: var(--primary); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
@media (max-width: 800px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.service-icon {
  width: 46px; height: 46px;
  background: var(--icon-box);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--primary); margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--white); }
.service-card p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 1.1rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.4rem;
  text-align: center;
  position: relative;
  transition: border-color 0.3s;
}
.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
  z-index: 1;
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.pricing-card .badge {
  position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: #0a0a0b;
  font-size: 0.68rem; font-weight: 700;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
}
.pricing-card .price {
  font-size: 1.85rem; font-weight: 800;
  color: var(--white); margin: 0.9rem 0 0.2rem;
}
.pricing-card .price span { font-size: 0.82rem; font-weight: 500; color: var(--text-muted); }
.pricing-card .plan-name { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.pricing-card ul { text-align: right; margin: 1.35rem 0; }
.pricing-card li {
  padding: 0.4rem 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-card li::before {
  content: '✓';
  color: var(--primary);
  margin-left: 0.45rem;
  font-weight: 700;
}

/* Testimonials */
.testimonial-wrap { position: relative; overflow: hidden; max-width: 640px; margin: 0 auto; }
.testimonial-track { display: flex; transition: transform 0.4s ease; }
.testimonial-item { flex: 0 0 100%; padding: 0 0.4rem; }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.testimonial-card .quote {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  line-height: 1.8;
}
.testimonial-card .author { display: flex; align-items: center; gap: 0.7rem; }
.testimonial-card .author img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--header);
}
.testimonial-card .author-name { font-weight: 600; font-size: 0.88rem; color: var(--white); }
.testimonial-card .author-role { font-size: 0.72rem; color: var(--text-muted); }
.slider-dots {
  display: flex; justify-content: center; gap: 0.45rem; margin-top: 1.35rem;
}
.slider-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: var(--border); cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.slider-dots button.active { background: var(--primary); transform: scale(1.2); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
}
.stat-card.highlight {
  background: var(--primary);
  border-color: var(--primary);
}
.stat-card.highlight .stat-num,
.stat-card.highlight .stat-label { color: #0a0a0b; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--primary); margin-bottom: 0.3rem; }
.stat-label { font-size: 0.84rem; color: var(--text-muted); }

/* CTA */
.cta-banner {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 2.75rem 1.75rem;
  text-align: center;
}
.cta-banner h2 { color: #0a0a0b; font-size: 1.5rem; margin-bottom: 0.65rem; }
.cta-banner p { color: rgba(10,10,11,0.8); margin-bottom: 1.35rem; font-size: 0.95rem; }
.cta-banner .btn { background: #0a0a0b; color: #fff !important; }
.cta-banner .btn:hover { background: #1a1a1b; }

/* Page header */
.page-header {
  padding: 2.25rem 0 1.35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}
.page-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.85rem;
}
.page-header h1 {
  font-size: 1.5rem;
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--white);
}
.breadcrumb { font-size: 0.78rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.page-count {
  font-size: 0.78rem; color: var(--text-muted);
  background: var(--card); border: 1px solid var(--border);
  padding: 0.3rem 0.75rem; border-radius: var(--radius-full);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.35rem;
}
.contact-info-item .icon {
  width: 42px; height: 42px;
  background: var(--icon-box);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0; font-size: 1.1rem;
}
.contact-info-item .label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.contact-info-item .value { font-weight: 600; color: var(--white); font-size: 0.92rem; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.social-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  text-align: center;
  transition: border-color 0.3s;
  color: var(--text);
}
.social-card:hover { border-color: var(--primary); color: var(--primary); }
.social-card .s-icon { font-size: 1.2rem; margin-bottom: 0.3rem; color: var(--primary); }
.social-card .s-name { font-size: 0.78rem; font-weight: 600; }

/* Single post / project */
.single-wrap { max-width: 820px; margin: 0 auto; }
.single-meta {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  font-size: 0.84rem; color: var(--text-muted); margin-bottom: 1.35rem;
}
.single-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--card);
}
.single-featured img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.entry-content h2, .entry-content h3 { margin-top: 1.75rem; margin-bottom: 0.65rem; color: var(--white); }
.entry-content p { color: var(--text-muted); margin-bottom: 1.1rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.75rem 0; }
.entry-tags a {
  background: var(--card); border: 1px solid var(--border);
  padding: 0.28rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.78rem; color: var(--text-muted);
}
.entry-tags a:hover { border-color: var(--primary); color: var(--primary); }
.author-box {
  display: flex; gap: 1.15rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem; margin: 2.25rem 0;
}
.author-box img {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--header);
}
.author-box .a-name { font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.author-box .a-bio { font-size: 0.86rem; color: var(--text-muted); }

/* Project gallery */
.project-gallery { margin-bottom: 1.75rem; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--card);
  margin-bottom: 0.9rem;
}
.gallery-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-counter {
  position: absolute;
  bottom: 0.9rem; left: 0.9rem;
  background: rgba(10,10,11,0.82);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.gallery-thumbs {
  display: flex; gap: 0.55rem; overflow-x: auto;
}
.gallery-thumbs img {
  width: 90px; height: 60px; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7; transition: all 0.25s; flex-shrink: 0;
}
.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  border-color: var(--primary); opacity: 1;
}
.project-meta-bar {
  display: flex; flex-wrap: wrap; gap: 1.35rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.95rem 1.15rem;
  margin-bottom: 1.75rem; font-size: 0.84rem;
}
.project-meta-bar .meta-item span {
  color: var(--text-muted); display: block; font-size: 0.72rem; margin-bottom: 0.12rem;
}
.project-meta-bar .meta-item strong { color: var(--white); }

/* 404 */
.error-404 { text-align: center; padding: 5.5rem 0; }
.error-404 .code {
  font-size: 6.5rem; font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary);
  line-height: 1; margin-bottom: 0.9rem;
  position: relative;
}
.error-404 .code::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  top: 15%; left: 58%;
  animation: spin 3s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-404 h1 { font-size: 1.4rem; margin-bottom: 0.65rem; color: var(--white); }
.error-404 p { color: var(--text-muted); margin-bottom: 1.75rem; }
.error-404 .actions { display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 1.35rem;
  margin-top: 3.5rem;
  text-align: center;
}
.footer-logo { margin-bottom: 0.9rem; }
.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 500px;
  margin: 0 auto 1.35rem;
}
.footer-social {
  display: flex; justify-content: center; gap: 0.65rem; margin-bottom: 1.35rem;
}
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.75rem; font-weight: 600;
  transition: all 0.25s;
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.15rem; margin-top: 1.35rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.85rem;
  font-size: 0.78rem; color: #666;
}
[data-theme="light"] .footer-bottom { color: #999; }
.footer-status { display: flex; align-items: center; gap: 0.45rem; }
.footer-status .dot {
  width: 8px; height: 8px;
  background: var(--primary); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
#live-clock { font-variant-numeric: tabular-nums; direction: ltr; }

/* Form message */
.form-msg {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  display: none;
}
.form-msg.success { display: block; background: rgba(0,184,148,0.15); color: var(--primary); border: 1px solid var(--primary); }
.form-msg.error { display: block; background: rgba(220,50,50,0.12); color: #e74c3c; border: 1px solid #e74c3c; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.75rem; }
.mb-2 { margin-bottom: 1.75rem; }

/* Mobile */
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .btn-resume span { display: none; }
  .btn-resume { padding: 0.6rem 0.85rem; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
  [data-theme="light"] .main-nav {
    background: rgba(255, 255, 255, 0.96);
  }
  .main-nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .nav-list > li > a {
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 0.75rem;
    display: none;
    min-width: 0;
  }
  .has-dropdown.open > .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 0.55rem 1rem; font-size: 0.85rem; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-name { font-size: 1.9rem; }
  .hero-image { margin: 0 auto; }
}

/* ========== Enhanced Glassmorphism ========== */
.glass {
  background: rgba(18, 18, 19, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.glass-card {
  background: rgba(20, 20, 21, 0.6);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  border-color: rgba(0, 184, 148, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 184, 148, 0.15);
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .glass-card:hover {
  border-color: rgba(0, 168, 132, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.glass-badge {
  background: rgba(18, 18, 19, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 184, 148, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.site-header {
  background: rgba(18, 18, 19, 0.65) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.75) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.skill-item, .service-card, .pricing-card, .stat-card, .testimonial-card, .social-card, .card {
  background: rgba(20, 20, 21, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="light"] .skill-item,
[data-theme="light"] .service-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .social-card,
[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.cta-banner {
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 184, 148, 0.25);
}

.project-meta-bar, .author-box {
  background: rgba(20, 20, 21, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
[data-theme="light"] .project-meta-bar,
[data-theme="light"] .author-box {
  background: rgba(255, 255, 255, 0.75);
}

.footer-social a {
  background: rgba(20, 20, 21, 0.55);
  backdrop-filter: blur(10px);
}

/* ========== Dropdown Menu ========== */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}
.dropdown-toggle i { font-size: 0.85rem; transition: transform 0.25s; }
.has-dropdown.open > .dropdown-toggle i,
.has-dropdown:hover > .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 100;
}
.has-dropdown.open > .dropdown-menu,
.has-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.1rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: var(--menu-active);
  color: var(--primary);
}

/* ========== Image Hover White Gradient Sweep ========== */
.img-hover-gradient {
  position: relative;
  overflow: hidden;
  display: block;
}
.img-hover-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: right 0.6s ease;
  pointer-events: none;
  z-index: 2;
}
.img-hover-gradient:hover::after {
  right: 120%;
}
.img-hover-gradient img {
  transition: transform 0.45s ease;
}
.img-hover-gradient:hover img {
  transform: scale(1.04);
}

/* Hero image also gets sweep */
.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-image.img-hover-gradient::after { border-radius: inherit; }

/* ========== Skills Icons ========== */
.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
}
.skill-icon i { line-height: 1; }

/* ========== Service Icons ========== */
.service-icon {
  font-size: 1.6rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon i { line-height: 1; }

/* ========== Footer Social Icons ========== */
.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.15rem;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}
.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--icon-box);
  transform: translateY(-3px);
}
.footer-social a i { line-height: 1; }

/* ========== Testimonial Nav Buttons ========== */
.testimonial-wrap {
  position: relative;
  padding: 0 3rem;
}
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 5;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.testimonial-nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.testimonial-nav.prev { right: 0; }
.testimonial-nav.next { left: 0; }

/* ========== Project Tabs ========== */
.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}
.tab-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
}
.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ========== Progress Bars ========== */
.progress-section { margin-top: 3rem; }
.progress-list {
  display: grid;
  gap: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}
.progress-item { }
.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}
.progress-bar {
  height: 10px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: inherit;
  transition: width 1s ease;
  animation: progressIn 1.2s ease forwards;
}
@keyframes progressIn {
  from { width: 0; }
}

/* ========== AJAX Loading for projects ========== */
.ajax-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem;
  color: var(--text-muted);
}
.ajax-loading[hidden] { display: none; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.projects-ajax-area.is-loading { opacity: 0.4; pointer-events: none; transition: opacity 0.25s; }

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.25s;
  background: var(--card);
}
.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.page-dots { color: var(--text-muted); padding: 0 0.25rem; }

/* ========== Card Meta Icons ========== */
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-meta i { font-size: 0.85rem; opacity: 0.8; }
.single-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.single-meta i { font-size: 0.9rem; color: var(--primary); }

/* ========== Post Rating ========== */
.post-rating {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.rating-title { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--white); }
.stars {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--text-muted);
  padding: 0.2rem;
  transition: color 0.2s, transform 0.2s;
}
.star:hover,
.star.hover,
.star.active {
  color: #f5c518;
  transform: scale(1.15);
}
.rating-result { font-size: 0.9rem; color: var(--text-muted); }

/* ========== Comments ========== */
.comments-section { margin: 2.5rem 0; }
.comment-count { font-weight: 400; color: var(--text-muted); font-size: 0.95rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.comment-meta span { color: var(--text-muted); font-size: 0.8rem; }
.comment-body p { font-size: 0.95rem; color: var(--text); line-height: 1.6; }
.comment-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.comment-form h4 { margin-bottom: 1rem; color: var(--white); }
.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.25s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.comment-form .form-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.comment-form .form-msg.success { color: var(--primary); }

@media (max-width: 768px) {
  .testimonial-wrap { padding: 0 2.5rem; }
  .testimonial-nav { width: 36px; height: 36px; font-size: 0.95rem; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    display: none;
  }
  .has-dropdown.open > .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 0.5rem 1.5rem; font-size: 0.85rem; }
}

/* ========== Nested Comment Replies ========== */
.comment-replies {
  margin-top: 1rem;
  padding-right: 1rem;
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.comment-item.reply {
  background: var(--bg);
  border-color: transparent;
  padding: 0.85rem;
}
.comment-item.reply .comment-avatar {
  width: 40px;
  height: 40px;
}
.reply-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0;
  transition: opacity 0.2s;
}
.reply-btn:hover { opacity: 0.75; }
.author-badge {
  background: var(--icon-box);
  color: var(--primary);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.replying-to {
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: var(--icon-box);
  border-radius: var(--radius-sm);
}
.comment-form .form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ========== Contact Icons ========== */
.contact-info-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--icon-box);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--primary);
}
.contact-info-item .icon i { line-height: 1; }
.social-card .s-icon {
  font-size: 1.4rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-card .s-icon i { line-height: 1; }

/* Ensure hero photo has NO hover gradient */
.hero-image:not(.img-hover-gradient)::after { display: none !important; }
.hero-image img { transform: none !important; }
.hero-image:hover img { transform: none !important; }

/* ============================================
   FEATURE ENHANCEMENTS – Mega, Skeleton, Toast,
   Stagger, 4-col, Borderless cards, Back-to-top
============================================ */

/* ---- 4-column grids ---- */
.cards-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem;
}
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 800px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .cards-grid { grid-template-columns: 1fr !important; }
}

.services-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr !important; }
}

/* ---- Modern borderless cards ---- */
.card {
  border: none !important;
  background: rgba(20, 20, 21, 0.55) !important;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  border-radius: 18px !important;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.card:hover {
  border-color: transparent !important;
  transform: translateY(-6px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 184, 148, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
[data-theme="light"] .card:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 168, 132, 0.25);
}

.service-card,
.skill-item,
.stat-card,
.pricing-card,
.testimonial-card,
.social-card {
  border: none !important;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.service-card:hover,
.skill-item:hover,
.stat-card:hover {
  border-color: transparent !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 184, 148, 0.22);
}

/* Soft image radius inside card */
.card-img {
  border-radius: 14px 14px 0 0;
}
.card-body { padding: 1.15rem 1.2rem 1.25rem; }

/* ---- Mega menu ---- */
.has-mega { position: static; }
.mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  background: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.mega-toggle:hover,
.mega-toggle[aria-expanded="true"] {
  color: var(--primary);
  background: var(--menu-active);
}
.mega-toggle i {
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.25s;
}
.mega-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.mega-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}
.mega-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
  z-index: 950;
  pointer-events: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 18, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
[data-theme="light"] .mega-menu {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 1.5rem 1.75rem 1.75rem;
}
.mega-col {
  padding: 0.5rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.mega-col:last-child { border-left: none; }
[data-theme="light"] .mega-col {
  border-left-color: rgba(0, 0, 0, 0.06);
}
.mega-col-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
}
.mega-col-title i { font-size: 0.95rem; }
.mega-col ul { list-style: none; }
.mega-col li { margin-bottom: 0.15rem; }
.mega-col a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  font-size: 0.875rem;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.mega-col a i {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
  flex-shrink: 0;
}
.mega-col a:hover {
  background: var(--menu-active);
  color: var(--primary);
}
.mega-col a:hover i { color: var(--primary); }

.mega-col-cta .mega-cta {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.12), rgba(0, 184, 148, 0.04));
  border: 1px solid rgba(0, 184, 148, 0.2);
  text-align: center;
}
.mega-col-cta .mega-cta p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}
.btn-block { width: 100%; justify-content: center; }

.nav-cta-link {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

@media (max-width: 980px) {
  .mega-menu {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    max-width: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    border-radius: 0 0 16px 16px;
  }
  .mega-menu-inner {
    grid-template-columns: 1fr 1fr;
    padding: 1.25rem;
  }
  .mega-col { border-left: none; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 0.75rem 0.5rem; }
  .mega-col:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 560px) {
  .mega-menu-inner { grid-template-columns: 1fr; }
  .mega-col { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .mega-col:last-child { border-bottom: none; }
}

/* ---- Skeleton loading ---- */
.skeleton-card {
  pointer-events: none;
  user-select: none;
}
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.04) 80%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
[data-theme="light"] .skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0.04) 80%
  );
  background-size: 200% 100%;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.skeleton-img {
  aspect-ratio: 16/10;
  width: 100%;
  border-radius: 0;
}
.skeleton-line {
  height: 12px;
  margin-bottom: 0.55rem;
}
.skeleton-line:last-child { margin-bottom: 0; }

/* ---- Stagger reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Toast notifications ---- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 2rem));
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(18, 18, 19, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 0.9rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast i:first-child {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.toast-success i:first-child { color: var(--primary); }
.toast-error i:first-child { color: #ff6b6b; }
.toast-info i:first-child { color: #74b9ff; }
.toast span { flex: 1; line-height: 1.4; }
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.toast-close:hover { opacity: 1; }
[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 19, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 184, 148, 0.4);
}
[data-theme="light"] .back-to-top {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
}

/* ---- Request callback page ---- */
.callback-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .callback-wrap { grid-template-columns: 1fr; }
}
.callback-intro {
  padding: 2rem 1.75rem;
  border-radius: 18px;
}
.callback-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--icon-box);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.callback-intro h2 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--white);
}
.callback-intro > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.35rem;
  line-height: 1.7;
}
.callback-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.callback-benefits li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text);
}
.callback-benefits i { color: var(--primary); font-size: 1rem; }

.callback-form-card {
  padding: 2rem 1.75rem;
  border-radius: 18px;
}
.callback-form .form-group {
  margin-bottom: 1.15rem;
}
.callback-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.callback-form .req { color: #ff6b6b; }
.callback-form input,
.callback-form select,
.callback-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
[data-theme="light"] .callback-form input,
[data-theme="light"] .callback-form select,
[data-theme="light"] .callback-form textarea {
  background: rgba(255, 255, 255, 0.9);
}
.callback-form input:focus,
.callback-form select:focus,
.callback-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.15);
}
.callback-form input.is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}
.field-error {
  display: block;
  font-size: 0.8rem;
  color: #ff6b6b;
  margin-top: 0.35rem;
}
.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.form-msg {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
}
.form-msg.success {
  display: block;
  background: rgba(0, 184, 148, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 184, 148, 0.25);
}
.form-msg.error {
  display: block;
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.25);
}

/* Stronger progress bar glow */
#ajax-loader .bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #00e6b0, var(--primary));
  background-size: 200% 100%;
  animation: progressGlow 1.2s linear infinite;
  box-shadow: 0 0 12px var(--primary), 0 0 4px var(--primary);
}
@keyframes progressGlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Hide old hover dropdown open when mega is used - keep network dropdown hover on desktop */
@media (min-width: 981px) {
  .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
}

/* body lock optional when mega open */
body.mega-open { overflow: hidden; }
@media (min-width: 981px) {
  body.mega-open { overflow: auto; }
}

/* Mega menu anchored to header */
.site-header { position: fixed; }
.site-header .header-inner { position: relative; }
.has-mega { position: static; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(12px);
  width: min(var(--container), calc(100vw - 2rem));
  max-width: var(--container);
}
.mega-menu.open {
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 980px) {
  .mega-menu {
    left: 0;
    right: 0;
    transform: translateY(12px);
    width: 100%;
    max-width: none;
  }
  .mega-menu.open {
    transform: translateY(0);
  }
}

/* WP Theme extras */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 44px; width: auto; }
.brand-wrap { flex-shrink: 0; }
.entry-title { color: var(--white); }
.entry-content { color: var(--text); line-height: 1.8; }
.entry-content h2, .entry-content h3 { margin: 1.5rem 0 0.75rem; color: var(--white); }
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: var(--primary); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.entry-tags a {
  padding: 0.3rem 0.75rem; border-radius: 9999px; font-size: 0.8rem;
  background: var(--icon-box); color: var(--primary); border: 1px solid transparent;
}
.entry-tags a:hover { border-color: var(--primary); }
.author-avatar { border-radius: 50%; }
.search-form { display: flex; gap: 0.5rem; max-width: 480px; }
.search-form input[type="search"] {
  flex: 1; padding: 0.7rem 1rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-family: var(--font);
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed; top: 72px; right: 0; left: 0;
    background: var(--header); max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease; z-index: 999;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav .menu {
    flex-direction: column; align-items: stretch; padding: 1rem;
  }
  .main-nav .menu > li > a { border-radius: 10px; padding: 0.75rem 1rem; }
}
