/* ============================================================
   ROOT VARIABLES & RESET
   ============================================================ */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --secondary: #7C3AED;
  --accent: #F59E0B;
  --success: #10B981;
  --dark: #0F172A;
  --text: #334155;
  --text-light: #64748B;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-alt2: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p { color: var(--text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-bg { background: var(--bg-alt); }
.section-bg2 { background: var(--bg-alt2); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .subtitle {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px;
  background: var(--primary-light); padding: 6px 16px; border-radius: 50px;
}
.section-header .subtitle i { font-size: 0.85rem; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.title-line {
  width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 16px auto 0; border-radius: 50px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.4); }
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-white {
  background: #fff; color: var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #DCFCE7; color: #16A34A; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-purple { background: #F3E8FF; color: var(--secondary); }

.tag {
  display: inline-block; padding: 4px 12px; background: var(--bg-alt2);
  border-radius: 50px; font-size: 0.8rem; color: var(--text-light);
  border: 1px solid var(--border); font-weight: 500; margin: 3px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 32px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 60px; height: 60px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem; color: var(--primary);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition); padding: 0;
}
#site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 24px; max-width: 1240px; margin: 0 auto;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: #fff; font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.logo-text span { display: block; }
.logo-text .logo-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  color: var(--dark); line-height: 1.1;
}
.logo-text .logo-sub { font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.5px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: 0.9rem;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.nav-link i { font-size: 0.7rem; transition: transform 0.2s; }
.nav-item:hover .nav-link i { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xl);
  min-width: 220px; padding: 8px 8px 8px 8px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: var(--transition);
  padding-top: 16px; /* bridge gap so mouse doesn't lose hover */
  margin-top: 0;
}
/* Invisible bridge between nav-link and dropdown */
.nav-item::after {
  content: ''; position: absolute; top: 100%; left: 0;
  width: 100%; height: 16px; background: transparent;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.875rem;
  font-weight: 500; transition: var(--transition);
}
.dropdown-link:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-link i { width: 18px; color: var(--primary); font-size: 0.875rem; }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 12px; }
.header-contact {
  display: flex; align-items: center; gap: 6px; font-size: 0.85rem;
  color: var(--text-light); font-weight: 500;
}
.header-contact i { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU — direct <body> child, full z-index authority
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 3px solid #2563EB;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.mobile-menu.open {
  display: block !important;
  animation: slideDown 0.22s ease forwards;
}

/* Nav link base */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav-link:hover,
.mobile-nav-link:active { color: #2563EB; background: #EFF6FF; }

/* Icon inside nav link */
.mob-icon {
  width: 20px; margin-right: 10px;
  color: #2563EB; font-size: 0.9rem;
  text-align: center;
}

/* Chevron */
.mob-chevron {
  font-size: 0.75rem;
  color: #94A3B8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.mob-chevron.rotated { transform: rotate(180deg); }

/* Accordion container */
.mob-accordion { border-bottom: 1px solid #E2E8F0; }
.mob-accordion .mobile-nav-link { border-bottom: none; }

/* Accordion body */
.mob-accordion-body {
  display: none;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}
.mob-accordion-body.open { display: block; animation: slideDown 0.2s ease; }

/* Dropdown links inside accordion */
.mob-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 32px;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.18s;
}
.mob-dropdown-link:last-child { border-bottom: none; }
.mob-dropdown-link i {
  width: 18px; text-align: center;
  color: #2563EB; font-size: 0.875rem; flex-shrink: 0;
}
.mob-dropdown-link:hover,
.mob-dropdown-link:active { color: #2563EB; background: #EFF6FF; padding-left: 38px; }

/* Menu footer (Contact btn + socials) */
.mob-menu-footer {
  padding: 20px;
  background: #F8FAFC;
  border-top: 2px solid #E2E8F0;
}
.mob-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mob-contact-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.4); }
.mob-social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.mob-social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #E2E8F0;
  display: flex; align-items: center; justify-content: center;
  color: #64748B; font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.mob-social-row a:hover { background: #2563EB; color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--dark); color: #94A3B8; padding: 80px 0 0;
}
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-brand .logo-text .logo-name { color: #fff; }
.footer-desc { font-size: 0.9rem; margin: 20px 0; line-height: 1.8; }
.footer-socials { display: flex; gap: 10px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #94A3B8;
  transition: var(--transition); font-size: 0.9rem;
}
.social-icon:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-col h4 {
  color: #fff; font-size: 1rem; margin-bottom: 20px; font-family: var(--font-heading);
  position: relative; padding-bottom: 12px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--primary); border-radius: 2px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #94A3B8; font-size: 0.875rem; display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); transform: translateX(4px); }
.footer-links a i { font-size: 0.75rem; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.footer-contact-icon {
  width: 36px; height: 36px; background: rgba(37,99,235,0.15);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0; font-size: 0.875rem;
}
.footer-contact-text strong { display: block; color: #fff; font-size: 0.875rem; margin-bottom: 2px; }
.footer-contact-text span { font-size: 0.8rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #94A3B8; font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ============================================================
   PAGE HERO / BANNER
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #1D4ED8 100%);
  padding: 130px 0 70px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 550px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 0.85rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* ============================================================
   HOME HERO
   ============================================================ */
.home-hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 40%, #1E3A8A 80%, #2563EB 100%);
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.15;
}
.hero-shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; animation: floatBig 8s ease-in-out infinite; }
.hero-shape-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -150px; left: -100px; animation: floatBig 10s ease-in-out infinite reverse; }
.hero-shape-3 { width: 250px; height: 250px; background: var(--accent); top: 50%; left: 40%; animation: floatBig 6s ease-in-out infinite; }

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-content { padding: 60px 0; }
.hero-available {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3); color: #34D399; padding: 8px 18px;
  border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 28px;
}
.hero-available .dot {
  width: 8px; height: 8px; background: #10B981; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero-name { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; margin-bottom: 16px; }
.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.4rem); color: rgba(255,255,255,0.7);
  margin-bottom: 24px; font-family: var(--font-heading);
}
.hero-title .typed-text { color: var(--accent); font-weight: 700; }
.hero-desc { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 480px; margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 30px; }
.hero-stat { }
.hero-stat .num {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800;
  color: #fff; line-height: 1;
}
.hero-stat .num span { color: var(--accent); }
.hero-stat .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* Hero Visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-avatar-wrapper {
  position: relative; width: 380px; height: 380px;
}
.hero-avatar-ring {
  position: absolute; inset: -20px; border-radius: 50%;
  border: 2px dashed rgba(37,99,235,0.3); animation: spin 20s linear infinite;
}
.hero-avatar-ring-2 {
  position: absolute; inset: -40px; border-radius: 50%;
  border: 1px dashed rgba(124,58,237,0.2); animation: spin 30s linear infinite reverse;
}
.hero-avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(124,58,237,0.3));
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,255,255,0.1); overflow: hidden; position: relative;
}
.hero-avatar-inner {
  font-size: 8rem; font-weight: 800; font-family: var(--font-heading);
  color: rgba(255,255,255,0.15); position: absolute;
}
.hero-avatar-icon {
  font-size: 7rem; color: rgba(255,255,255,0.8); position: relative; z-index: 1;
}

/* Floating tech cards */
.hero-tech-card {
  position: absolute; background: rgba(255,255,255,0.95); border-radius: var(--radius);
  padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.85rem; color: var(--dark);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
}
.hero-tech-card i { font-size: 1.1rem; }
.htc-1 { top: 10%; left: -30px; animation: floatCard 4s ease-in-out infinite; }
.htc-2 { bottom: 20%; left: -40px; animation: floatCard 5s ease-in-out infinite 1s; }
.htc-3 { top: 20%; right: -30px; animation: floatCard 4.5s ease-in-out infinite 0.5s; }
.htc-4 { bottom: 10%; right: -20px; animation: floatCard 5.5s ease-in-out infinite 1.5s; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--bg); border-bottom: 1px solid var(--border); }
.stats-bar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 30px 0;
}
.stat-item {
  text-align: center; padding: 20px; border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800;
  color: var(--dark); line-height: 1; margin-bottom: 6px;
}
.stat-num span { color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.stat-icon { font-size: 1.5rem; color: var(--primary-light); position: absolute; top: 16px; right: 20px; opacity: 0.5; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-visual { position: relative; }
.about-image-wrapper {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
}
.about-image-bg {
  width: 100%; height: 450px;
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF, #EDE9FE);
  border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-image-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.08;
}
.about-avatar { font-size: 10rem; color: rgba(37,99,235,0.3); }
.about-image-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.about-avatar-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; }
.about-exp-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius-lg); padding: 20px 24px;
  box-shadow: var(--shadow-lg); text-align: center; min-width: 130px; z-index: 2;
}
.about-exp-badge .years {
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; line-height: 1;
}
.about-exp-badge .exp-label { font-size: 0.8rem; opacity: 0.85; }
.about-floating-tag {
  position: absolute; background: #fff; border-radius: var(--radius);
  padding: 10px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.85rem; z-index: 2;
}
.atag-1 { top: 30px; left: -20px; color: var(--success); }
.atag-2 { top: 50%; right: -30px; color: var(--secondary); transform: translateY(-50%); }

.about-text { }
.about-text .badge { margin-bottom: 16px; }
.about-text h2 { margin-bottom: 20px; }
.about-text > p { margin-bottom: 24px; line-height: 1.9; }
.about-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.about-info-item { display: flex; flex-direction: column; gap: 2px; }
.about-info-item .label { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.about-info-item .value { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.about-info-item .value a:hover { color: var(--primary); }

/* Skills */
.skills-section { margin-top: 30px; }
.skill-item { margin-bottom: 18px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.skill-pct { font-size: 0.85rem; color: var(--primary); font-weight: 700; }
.skill-bar { height: 8px; background: var(--bg-alt2); border-radius: 50px; overflow: hidden; }
.skill-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 50px; width: 0; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 36px;
  border: 1px solid var(--border); transition: var(--transition);
  position: relative; overflow: hidden; cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transition: transform 0.3s ease; transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-icon {
  width: 66px; height: 66px; border-radius: var(--radius); margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--primary);
  font-weight: 600; font-size: 0.875rem;
}
.service-link:hover { gap: 10px; }
.service-number {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800;
  color: var(--border); line-height: 1; transition: var(--transition);
}
.service-card:hover .service-number { color: var(--primary-light); }

/* Service icon colors */
.si-blue { background: #EFF6FF; color: #2563EB; }
.si-purple { background: #F3E8FF; color: #7C3AED; }
.si-green { background: #DCFCE7; color: #16A34A; }
.si-amber { background: #FEF3C7; color: #D97706; }
.si-red { background: #FEE2E2; color: #DC2626; }
.si-cyan { background: #ECFEFF; color: #0891B2; }
.si-pink { background: #FDF2F8; color: #DB2777; }
.si-indigo { background: #EEF2FF; color: #4F46E5; }
.si-teal { background: #F0FDFA; color: #0D9488; }
.si-orange { background: #FFF7ED; color: #EA580C; }

/* ============================================================
   TECH STACK
   ============================================================ */
.tech-stack-section { }
.tech-category { margin-bottom: 40px; }
.tech-category-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-light); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.tech-category-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; font-size: 0.82rem; font-weight: 600; color: var(--text);
  transition: var(--transition); cursor: default;
}
.tech-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.tech-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-blue { background: #2563EB; }
.dot-purple { background: #7C3AED; }
.dot-green { background: #16A34A; }
.dot-amber { background: #D97706; }
.dot-red { background: #DC2626; }
.dot-cyan { background: #0891B2; }
.dot-pink { background: #DB2777; }
.dot-gray { background: #64748B; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 22px; border-radius: 50px; font-weight: 600; font-size: 0.875rem;
  border: 2px solid var(--border); color: var(--text-light); transition: var(--transition);
  cursor: pointer; background: var(--bg);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portfolio-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg);
  border: 1px solid var(--border); transition: var(--transition); group: true;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.portfolio-image {
  height: 220px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
  display: flex; align-items: center; justify-content: center;
}
.portfolio-image-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 4rem; color: var(--primary); opacity: 0.3; z-index: 0; }
.portfolio-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.92), rgba(124,58,237,0.92));
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: var(--transition); z-index: 2;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay a {
  width: 44px; height: 44px; background: rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 0.9rem; transition: var(--transition);
}
.portfolio-overlay a:hover { background: rgba(255,255,255,0.35); }
.portfolio-cat-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.95); color: var(--primary);
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px;
  box-shadow: var(--shadow); z-index: 2;
}
.portfolio-info { padding: 22px; }
.portfolio-info h3 { font-size: 1rem; margin-bottom: 6px; }
.portfolio-info h3 a:hover { color: var(--primary); }
.portfolio-info p { font-size: 0.83rem; color: var(--text-light); margin-bottom: 14px; }
.portfolio-meta { display: flex; align-items: center; justify-content: space-between; }
.portfolio-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.portfolio-tags .tag { padding: 3px 10px; font-size: 0.75rem; margin: 0; }
.portfolio-link { color: var(--primary); font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.portfolio-link:hover { gap: 8px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); transition: var(--transition); position: relative;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial-quote {
  font-size: 3rem; color: var(--primary); line-height: 1; margin-bottom: 16px;
  font-family: Georgia, serif;
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-stars i { color: var(--accent); font-size: 0.875rem; }
.testimonial-text { color: var(--text); font-size: 0.9rem; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.testimonial-info strong { display: block; font-size: 0.9rem; color: var(--dark); }
.testimonial-info span { font-size: 0.8rem; color: var(--text-light); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 38px; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); z-index: 0;
}
.process-step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 24px; box-shadow: 0 8px 20px rgba(37,99,235,0.35);
  position: relative; transition: var(--transition);
}
.process-step:hover .step-icon { transform: scale(1.1); }
.step-num {
  position: absolute; top: -5px; right: -5px;
  width: 26px; height: 26px; background: var(--accent);
  border-radius: 50%; font-size: 0.7rem; font-weight: 800; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
}
.process-step h3 { font-size: 1rem; margin-bottom: 10px; }
.process-step p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg);
  border: 1px solid var(--border); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-image {
  height: 200px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
  display: flex; align-items: center; justify-content: center;
}
.blog-image-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 3.5rem; color: var(--primary); opacity: 0.25; z-index: 0; }
.blog-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; z-index: 2;
}
.blog-info { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.blog-meta span { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-light); }
.blog-info h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.blog-info h3 a:hover { color: var(--primary); }
.blog-info p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.blog-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.blog-read-more { font-size: 0.85rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px; }
.blog-read-more:hover { gap: 8px; }
.blog-time { font-size: 0.78rem; color: var(--text-light); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.8fr; gap: 50px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-info-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; display: flex; align-items: flex-start; gap: 16px;
  transition: var(--transition);
}
.contact-info-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateX(5px); }
.contact-info-icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-info-text strong { display: block; color: var(--dark); font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-text a, .contact-info-text span { font-size: 0.875rem; color: var(--text-light); }
.contact-info-text a:hover { color: var(--primary); }

.contact-form-wrapper {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 44px;
}
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--dark); margin-bottom: 8px; }
.form-label span { color: #EF4444; }
.form-control {
  width: 100%; padding: 13px 16px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem; color: var(--dark);
  background: var(--bg); transition: var(--transition); outline: none;
  font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.form-control::placeholder { color: #CBD5E1; }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748B' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl); padding: 60px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; position: relative; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-search-wrap { max-width: 560px; margin: 0 auto 36px; position: relative; }
.faq-search-wrap i { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.95rem; }
.faq-search-input {
  width: 100%; padding: 17px 24px 17px 52px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--bg);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--dark);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.faq-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.faq-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt2);
  color: var(--text-light); align-items: center; justify-content: center; display: none; font-size: 0.75rem;
}
.faq-search-wrap.has-value .faq-search-clear { display: flex; }

.faq-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 50px; }
.faq-nav-pill {
  display: flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: 50px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 0.85rem; font-weight: 600; transition: var(--transition); cursor: pointer;
}
.faq-nav-pill i { font-size: 0.8rem; }
.faq-nav-pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.faq-nav-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.faq-categories { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.faq-category-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 110px; transition: var(--transition);
}
.faq-category-card.hidden { display: none; }
.faq-category-head { display: flex; align-items: center; gap: 14px; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.faq-category-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.05rem; flex-shrink: 0;
}
.faq-category-icon.icon-blue   { background: var(--primary-light); color: var(--primary); }
.faq-category-icon.icon-purple { background: #F3E8FF; color: var(--secondary); }
.faq-category-icon.icon-green  { background: #D1FAE5; color: var(--success); }
.faq-category-icon.icon-amber  { background: #FEF3C7; color: var(--accent); }
.faq-category-head h3 { font-size: 1.15rem; margin: 0; flex: 1; }
.faq-category-count { font-size: 0.72rem; font-weight: 700; color: var(--text-light); background: var(--bg-alt2); padding: 4px 12px; border-radius: 50px; white-space: nowrap; }

.faq-list { max-width: 100%; margin: 0; padding: 4px 28px; }
.faq-item { border-bottom: 1px solid var(--border); transition: var(--transition); }
.faq-item:last-child { border-bottom: none; }
.faq-item.hidden { display: none; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; cursor: pointer; gap: 20px; }
.faq-question h4 { font-size: 0.98rem; color: var(--dark); flex: 1; line-height: 1.4; font-weight: 600; transition: var(--transition-fast); }
.faq-item.open .faq-question h4 { color: var(--primary); }
.faq-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition); font-size: 0.8rem;
}
.faq-item.open .faq-icon { background: var(--primary); color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-answer p { color: var(--text-light); font-size: 0.9rem; line-height: 1.8; padding: 0 4px 22px; }
.faq-item.open .faq-answer { max-height: 300px; }

.faq-no-results { text-align: center; padding: 60px 20px; color: var(--text-light); display: none; max-width: 820px; margin: 0 auto; }
.faq-no-results.show { display: block; }
.faq-no-results i { font-size: 2.5rem; color: var(--border); margin-bottom: 16px; display: block; }

/* ============================================================
   RESOURCES
   ============================================================ */
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.resource-card {
  background: var(--bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden; transition: var(--transition);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: transparent; }
.resource-preview {
  height: 180px; background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--primary); opacity: 0.4; position: relative; overflow: hidden;
}
.resource-preview > i { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 0; }
.resource-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.resource-type-badge {
  position: absolute; top: 14px; right: 14px; padding: 4px 12px;
  background: rgba(255,255,255,0.9); border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; color: var(--primary); z-index: 2;
}
.resource-info { padding: 24px; }
.resource-info h3 { font-size: 1rem; margin-bottom: 8px; }
.resource-info p { font-size: 0.83rem; color: var(--text-light); margin-bottom: 16px; }
.resource-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.resource-stats { display: flex; gap: 14px; }
.resource-stats span { font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.resource-download {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: var(--primary); color: #fff; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; transition: var(--transition);
}
.resource-download:hover { background: var(--primary-dark); transform: translateY(-1px); }
.resource-download.is-contact { background: var(--secondary); }
.resource-download.is-contact:hover { background: #6D28D9; }

/* Resource detail sidebar option cards */
.resource-option-card {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; margin-top: 14px; text-align: center;
}
.resource-option-icon {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; margin: 0 auto 12px;
}
.resource-option-icon.icon-blue { background: var(--primary-light); color: var(--primary); }
.resource-option-icon.icon-green { background: #D1FAE5; color: var(--success); }
.resource-option-text h5 { font-size: 0.92rem; margin-bottom: 4px; }
.resource-option-text p { font-size: 0.78rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.6; }

/* ============================================================
   RESOURCE CONTACT MODAL
   ============================================================ */
.rmodal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(4px);
}
.rmodal-overlay.open { opacity: 1; visibility: visible; }
.rmodal {
  background: var(--bg); border-radius: var(--radius-lg); padding: 36px;
  max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); position: relative;
  transform: translateY(16px) scale(0.98); transition: transform 0.25s ease;
}
.rmodal-overlay.open .rmodal { transform: translateY(0) scale(1); }
.rmodal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-alt2); color: var(--text-light); display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem; transition: var(--transition);
}
.rmodal-close:hover { background: var(--primary); color: #fff; transform: rotate(90deg); }
.rmodal-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px;
}
.rmodal h3 { font-size: 1.3rem; margin-bottom: 8px; }
.rmodal-sub { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.rmodal-sub strong { color: var(--dark); }
#resourceContactForm .form-group { margin-bottom: 16px; }
#resourceContactForm textarea.form-control { min-height: 80px; }
.rmodal-thanks { text-align: center; padding: 10px 0; }
.rmodal-thanks-icon {
  width: 70px; height: 70px; border-radius: 50%; background: #D1FAE5; color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px;
}
.rmodal-thanks h3 { margin-bottom: 10px; }
.rmodal-thanks p { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; margin-bottom: 26px; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--primary), var(--secondary));
}
.timeline-item { display: flex; gap: 30px; margin-bottom: 36px; position: relative; }
.timeline-dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.85rem; box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  margin-top: 2px; z-index: 1;
}
.timeline-content {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; transition: var(--transition);
}
.timeline-content:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.timeline-date {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary); margin-bottom: 8px;
}
.timeline-content h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-content h5 { font-size: 0.875rem; color: var(--text-light); margin-bottom: 10px; font-weight: 500; }
.timeline-content p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); text-align: center; padding: 40px;
}
.not-found-inner { max-width: 600px; }
.not-found-code {
  font-family: var(--font-heading); font-size: 10rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0; animation: bounceSlow 3s ease-in-out infinite;
}
.not-found-inner h2 { font-size: 2rem; margin-bottom: 16px; }
.not-found-inner p { color: var(--text-light); margin-bottom: 36px; font-size: 1.1rem; }
.not-found-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h3 { font-size: 1.2rem; margin: 36px 0 12px; color: var(--dark); }
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { color: var(--text-light); line-height: 1.9; margin-bottom: 16px; }
.legal-content ul { margin: 12px 0 16px 20px; }
.legal-content ul li { color: var(--text-light); font-size: 0.9rem; line-height: 1.8; margin-bottom: 6px; list-style: disc; }
.legal-date { font-size: 0.85rem; color: var(--text-light); margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

/* ============================================================
   BLOG ARTICLE
   ============================================================ */
.blog-article { max-width: 780px; }
.article-header { margin-bottom: 36px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 16px 0; }
.article-meta span { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-light); }
.article-cover {
  height: 400px; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 40px;
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
  display: flex; align-items: center; justify-content: center;
}
.article-body h3 { margin: 32px 0 14px; }
.article-body p { margin-bottom: 20px; color: var(--text); line-height: 1.9; }
.article-body ul { margin: 14px 0 20px 24px; }
.article-body ul li { color: var(--text-light); margin-bottom: 8px; list-style: disc; line-height: 1.7; }
.article-body code {
  background: var(--bg-alt2); padding: 2px 8px; border-radius: 4px;
  font-size: 0.875em; color: var(--primary); font-family: monospace;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.author-box {
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px;
  display: flex; gap: 24px; align-items: flex-start; margin-top: 40px;
  border: 1px solid var(--border);
}
.author-box .author-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 1.8rem; font-weight: 700; flex-shrink: 0;
}
.author-box .author-info strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.author-box .author-info span { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.author-box .author-info p { font-size: 0.875rem; color: var(--text-light); margin: 10px 0 0; }

/* Blog Sidebar */
.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 24px;
}
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.category-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a { font-size: 0.875rem; color: var(--text); }
.category-list a:hover { color: var(--primary); }
.category-count { font-size: 0.78rem; background: var(--bg-alt2); padding: 2px 10px; border-radius: 50px; }
.recent-post { display: flex; gap: 14px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.recent-post:last-child { margin: 0; padding: 0; border: none; }
.recent-post-img {
  width: 70px; height: 60px; border-radius: 8px; background: var(--primary-light);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.recent-post-info h5 { font-size: 0.82rem; line-height: 1.4; margin-bottom: 4px; }
.recent-post-info h5 a:hover { color: var(--primary); }
.recent-post-info span { font-size: 0.75rem; color: var(--text-light); }

/* ============================================================
   PORTFOLIO DETAIL
   ============================================================ */
.project-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: start; }
.project-sidebar { position: sticky; top: 100px; }
.project-info-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
}
.project-info-box h4 { font-size: 1rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.project-info-item { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--border); }
.project-info-item:last-child { border-bottom: none; }
.project-info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); font-weight: 700; margin-bottom: 4px; }
.project-info-value { font-size: 0.9rem; color: var(--dark); font-weight: 600; }
.project-info-value a:hover { color: var(--primary); }
.project-cover {
  height: 420px; border-radius: var(--radius-xl); margin-bottom: 36px;
  background: linear-gradient(135deg, var(--primary-light), #E0E7FF);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 6rem; color: var(--primary); opacity: 0.35; }
.project-body h3 { margin: 28px 0 14px; }
.project-body p { color: var(--text-light); line-height: 1.9; margin-bottom: 16px; }
.tech-used-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes floatBig {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
@keyframes blink { 0%, 100% { border-color: transparent; } 50% { border-color: var(--accent); } }
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-up { animation: fadeInUp 0.7s ease both; }
.animate-zoom { animation: zoomIn 0.6s ease both; }

/* AOS overrides */
[data-aos] { will-change: transform; }

/* Blog details two-column layout */
.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Contact info section label fix */
.contact-section-header { text-align: left; margin-bottom: 36px; }
.contact-section-header .title-line { margin-left: 0; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 30px; right: 30px; z-index: 500;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.back-to-top {
  position: fixed; bottom: 30px; right: 96px; z-index: 500;
  width: 44px; height: 44px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem; box-shadow: var(--shadow-md);
  transition: var(--transition); opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE — Full Coverage All Breakpoints
   ============================================================ */

/* ── 1280px: Large tablets / small laptops ── */
@media (max-width: 1280px) {
  .container { max-width: 100%; padding: 0 32px; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
  .hero-avatar-wrapper { width: 320px; height: 320px; }
}

/* ── 1100px: Medium tablets ── */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-inner { gap: 36px; }
  .hero-avatar-wrapper { width: 280px; height: 280px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .process-steps::before { display: none; }
  .project-detail-grid { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .blog-detail-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static !important; }
}

/* ── 900px: Switch to mobile hamburger ── */
@media (max-width: 900px) {
  /* Header */
  .main-nav { display: none; }
  .header-contact { display: none; }
  .header-right .btn { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-available { margin: 0 auto 24px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; gap: 28px; }
  .hero-content { padding: 40px 0 50px; }
  .hero-desc { margin: 0 auto 30px; }

  /* About */
  .about-content { grid-template-columns: 1fr; }
  .about-visual { display: none; }

  /* Stats */
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── 768px: Tablet portrait ── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 44px 0; }
  .section-header { margin-bottom: 44px; }

  /* Page hero */
  .page-hero { padding: 110px 0 48px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 0.95rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 26px 22px; }
  .service-number { font-size: 2.5rem; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-filters { gap: 8px; }
  .filter-btn { padding: 7px 16px; font-size: 0.8rem; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-cover { height: 200px; border-radius: 12px; }
  .article-meta { flex-wrap: wrap; gap: 8px; }
  .author-box { flex-direction: column; gap: 14px; padding: 22px 18px; }
  .author-box .author-avatar { width: 58px; height: 58px; font-size: 1.3rem; }

  /* Contact */
  .contact-form-wrapper { padding: 28px 22px; }
  .contact-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-info-card { flex-direction: column; padding: 16px; }
  .contact-info-icon { width: 42px; height: 42px; font-size: 1rem; margin-bottom: 8px; }

  /* Process page */
  .process-steps { grid-template-columns: 1fr; }

  /* Resources */
  .resources-grid { grid-template-columns: 1fr; }

  /* Grid adjustments */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Stats bar */
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }

  /* CTA */
  .cta-banner { padding: 44px 24px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  #site-footer { padding: 56px 0 0; }

  /* Timeline */
  .timeline::before { left: 16px; }
  .timeline-dot { width: 34px; height: 34px; font-size: 0.75rem; }
  .timeline-item { gap: 18px; }
  .timeline-content { padding: 18px; }

  /* Project detail */
  .project-cover { height: 200px; border-radius: 12px; }
  .project-body h3 { font-size: 1.1rem; }

  /* Not found */
  .not-found-code { font-size: 7rem; }
  .not-found-links { flex-direction: column; align-items: center; }

  /* Sidebar */
  .blog-sidebar { position: static !important; margin-top: 36px; }
  .sidebar-widget { padding: 22px 18px; margin-bottom: 18px; }
}

/* ── 480px: Mobile phones ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }

  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }

  /* Header */
  .logo-text .logo-name { font-size: 0.9rem; }
  .logo-text .logo-sub { font-size: 0.65rem; }
  .logo-icon { width: 36px; height: 36px; font-size: 0.95rem; }
  .header-inner { height: 64px; padding: 0 16px; }
  .mobile-menu { top: 64px; }

  /* Hero */
  .hero-content { padding: 30px 0 40px; }
  .hero-name { font-size: 1.8rem; }
  .hero-available { font-size: 0.75rem; padding: 6px 12px; }
  .hero-desc { font-size: 0.9rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; justify-items: center; }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-stat .lbl { font-size: 0.72rem; }

  /* Page hero */
  .page-hero { padding: 96px 0 40px; }
  .page-hero h1 { font-size: 1.5rem; }
  .breadcrumb { font-size: 0.78rem; }

  /* Stats bar */
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.75rem; }

  /* Cards */
  .card { padding: 22px 18px; }

  /* Services */
  .service-card { padding: 22px 18px; }
  .service-icon { width: 52px; height: 52px; font-size: 1.4rem; }
  .service-card h3 { font-size: 1.05rem; }

  /* Portfolio */
  .portfolio-image { height: 180px; }
  .portfolio-info { padding: 16px; }
  .portfolio-info h3 { font-size: 0.9rem; }

  /* Blog */
  .blog-image { height: 170px; }
  .blog-info { padding: 18px 16px; }
  .blog-info h3 { font-size: 0.95rem; }
  .blog-meta span { font-size: 0.72rem; }

  /* Blog details */
  .blog-article { padding: 0; }
  .article-cover { height: 170px; }
  .article-body p { font-size: 0.9rem; line-height: 1.8; }
  .article-body h3 { font-size: 1rem; margin-top: 24px; }
  .article-tags { flex-wrap: wrap; gap: 6px; padding: 18px 0; }
  .author-box { padding: 18px 14px; }
  .recent-post-img { width: 52px; height: 46px; }
  .sidebar-widget { padding: 18px 14px; }

  /* Contact */
  .contact-info-cards { grid-template-columns: 1fr; gap: 10px; }
  .contact-info-card { flex-direction: row; padding: 14px; }
  .contact-form-wrapper { padding: 22px 16px; }
  .contact-form-wrapper h3 { font-size: 1.1rem; }
  .form-label { font-size: 0.82rem; }
  .form-control { padding: 11px 14px; font-size: 0.875rem; }

  /* Testimonials */
  .testimonial-card { padding: 22px 16px; }
  .testimonials-grid { gap: 16px; }

  /* Resources */
  .resource-preview { height: 150px; }
  .resource-info { padding: 18px 16px; }

  /* Process */
  .process-steps { gap: 20px; }
  .step-icon { width: 60px; height: 60px; font-size: 1.3rem; }
  .process-step h3 { font-size: 0.95rem; }
  .process-step p { font-size: 0.8rem; }

  /* Timeline */
  .timeline-content h4 { font-size: 0.95rem; }
  .timeline-content h5 { font-size: 0.82rem; }

  /* CTA */
  .cta-banner { padding: 36px 16px; border-radius: 16px; }
  .cta-banner h2 { font-size: 1.3rem; }
  .cta-banner p { font-size: 0.9rem; }
  .cta-banner .btn-group .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-desc { font-size: 0.85rem; }
  .footer-links a { font-size: 0.82rem; }
  .footer-contact-text strong { font-size: 0.82rem; }
  .footer-contact-text span { font-size: 0.76rem; }
  .footer-bottom p { font-size: 0.78rem; }
  .footer-bottom-links a { font-size: 0.76rem; }

  /* Tech pills */
  .tech-pills { gap: 7px; }
  .tech-pill { font-size: 0.75rem; padding: 6px 12px; }
  .tech-category-title { font-size: 0.72rem; }

  /* Section headers */
  .section-header { margin-bottom: 34px; }
  .section-header p { font-size: 0.9rem; }
  .section-header .subtitle { font-size: 0.78rem; }

  /* About info */
  .about-info-grid { grid-template-columns: 1fr; gap: 10px; }
  .about-info-item .label { font-size: 0.72rem; }
  .about-info-item .value { font-size: 0.85rem; }

  /* Skill bars */
  .skill-name { font-size: 0.82rem; }
  .skill-pct { font-size: 0.78rem; }

  /* Grid */
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* FAQ */
  .faq-question h4 { font-size: 0.9rem; }
  .faq-answer p { font-size: 0.85rem; }
  .faq-category-head { padding: 20px; }
  .faq-list { padding: 4px 20px; }
  .faq-nav-pill { padding: 9px 16px; font-size: 0.8rem; }

  /* Not found */
  .not-found-code { font-size: 5.5rem; }
  .not-found-inner h2 { font-size: 1.4rem; }
  .not-found-links { flex-direction: column; align-items: center; }
  .not-found-links .btn { width: 100%; justify-content: center; }

  /* Tags */
  .tag { font-size: 0.72rem; padding: 3px 10px; }
  .badge { font-size: 0.75rem; }

  /* Float buttons */
  .whatsapp-float { width: 48px; height: 48px; font-size: 1.3rem; right: 16px; bottom: 20px; }
  .back-to-top { width: 38px; height: 38px; right: 76px; bottom: 20px; }
}

/* ── 360px: Small phones ── */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero-name { font-size: 1.55rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.4rem; }
  .filter-btn { padding: 6px 12px; font-size: 0.75rem; }
  .hero-btns .btn { font-size: 0.85rem; padding: 11px 20px; }
}

/* ============================================================
   DARK MODE THEME (toggled via .dark class on <html>)
   ============================================================ */
html.dark {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: rgba(59,130,246,0.12);
  --secondary: #8B5CF6;
  --accent: #F59E0B;
  --success: #10B981;
  --dark: #F1F5F9;
  --text: #CBD5E1;
  --text-light: #94A3B8;
  --border: #1E293B;
  --bg: #0F172A;
  --bg-alt: #0B1120;
  --bg-alt2: #161F32;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.6);
}
html.dark body { background: #0F172A; color: #CBD5E1; }
html.dark h1,html.dark h2,html.dark h3,html.dark h4,html.dark h5,html.dark h6 { color: #F1F5F9; }
html.dark p { color: #CBD5E1; }
html.dark #site-header { background: rgba(15,23,42,0.97) !important; border-bottom-color: #1E293B; }
html.dark .nav-link { color: #CBD5E1 !important; }
html.dark .dropdown-menu { background: #0F172A !important; border-color: #1E293B; }
html.dark .dropdown-link { color: #CBD5E1 !important; }
html.dark .mobile-menu { background: #0F172A; border-top-color: #2563EB; }
html.dark .mobile-nav-link { background: #0F172A; color: #F1F5F9; border-bottom-color: #1E293B; }
html.dark .mobile-nav-link:hover { background: #1E293B; }
html.dark .mob-accordion-body { background: #080E1A; border-top-color: #1E293B; }
html.dark .mob-dropdown-link { color: #CBD5E1; border-bottom-color: #1E293B; }
html.dark .mob-dropdown-link:hover { background: #1E293B; color: #3B82F6; }
html.dark .mob-menu-footer { background: #080E1A; border-top-color: #1E293B; }
html.dark .mob-social-row a { background: #1E293B; color: #94A3B8; }
html.dark .stats-bar { background: #0B1120; border-bottom-color: #1E293B; }
html.dark .stat-item { border-right-color: #1E293B; }
html.dark .about-image-bg { background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(124,58,237,0.15)); }
html.dark .about-floating-tag { background: #0F172A; }
html.dark .card, html.dark .service-card, html.dark .portfolio-card, html.dark .blog-card,
html.dark .testimonial-card, html.dark .contact-info-card, html.dark .contact-form-wrapper,
html.dark .resource-card, html.dark .timeline-content, html.dark .project-info-box,
html.dark .sidebar-widget, html.dark .author-box, html.dark .article-cover { background: #0F172A; border-color: #1E293B; }
html.dark .portfolio-cat-badge { background: rgba(255,255,255,0.1); color: #93C5FD; }
html.dark .portfolio-image, html.dark .blog-image, html.dark .project-cover, html.dark .recent-post-img { background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(124,58,237,0.2)); }
html.dark .blog-footer, html.dark .faq-item, html.dark .project-info-item, html.dark .category-list li, html.dark .recent-post, html.dark .legal-date { border-color: #1E293B; }
html.dark .form-control { background: #1E293B; border-color: #334155; color: #F1F5F9; }
html.dark .form-control:focus { border-color: #3B82F6; }
html.dark .form-control::placeholder { color: #475569; }
html.dark select.form-control { background-color: #1E293B; color: #F1F5F9; }
html.dark .faq-question h4, html.dark .category-list a, html.dark .recent-post-info h5 a { color: #F1F5F9; }
html.dark .faq-icon { background: rgba(59,130,246,0.15); }
html.dark .faq-category-card { background: #0F172A; border-color: #1E293B; }
html.dark .faq-category-head { border-color: #1E293B; }
html.dark .faq-category-count { background: #1E293B; color: #94A3B8; }
html.dark .faq-search-input { background: #0F172A; border-color: #1E293B; color: #F1F5F9; }
html.dark .faq-search-clear { background: #1E293B; color: #94A3B8; }
html.dark .faq-nav-pill { background: #0F172A; border-color: #1E293B; color: #CBD5E1; }
html.dark .faq-nav-pill:hover { color: #3B82F6; }
html.dark .faq-nav-pill.active { color: #fff; }
html.dark .resource-preview { background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(124,58,237,0.2)); }
html.dark .resource-option-card { background: #0B1120; border-color: #1E293B; }
html.dark .rmodal { background: #0F172A; }
html.dark .rmodal-close { background: #1E293B; color: #94A3B8; }
html.dark .rmodal-sub strong { color: #F1F5F9; }
html.dark .resource-type-badge { background: rgba(15,23,42,0.95); }
html.dark .tag { background: #1E293B; border-color: #334155; color: #94A3B8; }
html.dark .tech-pill { background: #0F172A; border-color: #1E293B; color: #CBD5E1; }
html.dark .testimonial-text { color: #CBD5E1; }
html.dark .btn-outline { border-color: #3B82F6; color: #3B82F6; }
html.dark .btn-outline:hover { background: #3B82F6; color: #fff; }
html.dark .legal-content h3 { color: #F1F5F9; }
html.dark .filter-btn { background: #0F172A; border-color: #1E293B; color: #94A3B8; }
html.dark .filter-btn.active, html.dark .filter-btn:hover { background: #2563EB; color: #fff; border-color: #2563EB; }
html.dark .back-to-top { background: #2563EB; }
html.dark #site-footer { background: #060D1A; }
html.dark .footer-col h4 { color: #F1F5F9; }
html.dark .footer-bottom { border-top-color: rgba(255,255,255,0.05); }
html.dark .skill-bar { background: #1E293B; }
html.dark .about-info-item .label { color: #64748B; }
html.dark .about-info-item .value { color: #F1F5F9; }
html.dark .service-number { color: #1E293B; }
html.dark .page-hero { background: linear-gradient(135deg, #060D1A 0%, #0B1120 50%, #0F172A 100%); }
html.dark .cta-section { background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%); }

/* ── Theme Toggle Button ── */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-light); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 0.95rem;
  transition: var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
html.dark .theme-toggle { border-color: #334155; color: #94A3B8; }
html.dark .theme-toggle:hover { border-color: #3B82F6; color: #3B82F6; }

/* ============================================================
   AOS FIX — Prevent blank page on load
   The AOS library sets opacity:0 via inline style BEFORE the
   JS runs. We override that so content is always visible.
   Animations only kick in when .aos-animate is added.
   ============================================================ */

/* Step 1: Make all AOS elements visible by default (no flash) */
[data-aos]:not(.aos-animate) {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Step 2: Only hide + animate AFTER JS marks them as aos-init */
.aos-init[data-aos="fade-up"]:not(.aos-animate) {
  opacity: 0 !important;
  transform: translateY(28px) !important;
  transition: opacity 0.65s ease, transform 0.65s ease !important;
}
.aos-init[data-aos="fade-right"]:not(.aos-animate) {
  opacity: 0 !important;
  transform: translateX(-28px) !important;
  transition: opacity 0.65s ease, transform 0.65s ease !important;
}
.aos-init[data-aos="fade-left"]:not(.aos-animate) {
  opacity: 0 !important;
  transform: translateX(28px) !important;
  transition: opacity 0.65s ease, transform 0.65s ease !important;
}
.aos-init[data-aos="zoom-in"]:not(.aos-animate) {
  opacity: 0 !important;
  transform: scale(0.9) !important;
  transition: opacity 0.65s ease, transform 0.65s ease !important;
}
.aos-init[data-aos="fade-up"].aos-animate,
.aos-init[data-aos="fade-right"].aos-animate,
.aos-init[data-aos="fade-left"].aos-animate,
.aos-init[data-aos="zoom-in"].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* Step 3: Hero content ALWAYS visible — never animate above-fold */
.home-hero, .home-hero > *, .home-hero > * > *,
.page-hero, .page-hero > *, .page-hero > * > *,
#site-header, #site-header * {
  opacity: 1 !important;
  transform: none !important;
  transition-property: color, background-color, border-color, box-shadow !important;
}

/* Company badge in portfolio card */
.company-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600; color: var(--primary);
  background: var(--primary-light); border-radius: 50px;
  padding: 3px 8px; margin-top: 8px;
}
html.dark .company-badge { background: rgba(59,130,246,0.15); color: #93C5FD; }

/* Fix project detail grid for portfolio-details */
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.project-cover {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.12));
  border-radius: 20px; height: 260px; display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 32px; border: 1px solid var(--border);
}
html.dark .project-cover { background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(124,58,237,0.2)); border-color: #1E293B; }
.project-body h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 14px; color: var(--dark); }
.project-body p { font-size: 0.975rem; line-height: 1.9; color: var(--text-light); margin-bottom: 12px; }
.project-sidebar { display: flex; flex-direction: column; gap: 0; }
@media (max-width: 900px) {
  .project-detail-grid { grid-template-columns: 1fr; }
}

/* Blog detail layout */
.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.article-cover {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.12));
  border-radius: 16px; height: 200px; display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 28px; border: 1px solid var(--border);
}
html.dark .article-cover { background: linear-gradient(135deg, rgba(37,99,235,0.15), rgba(124,58,237,0.2)); border-color: #1E293B; }
.article-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 12px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.84rem; color: var(--text-light); padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta i { color: var(--primary); }
.article-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.article-body p { font-size: 0.92rem; line-height: 1.9; color: var(--text-light); margin-bottom: 14px; }
.article-body code { background: var(--bg-alt); border: 1px solid var(--border); padding: 2px 7px; border-radius: 5px; font-size: 0.82em; font-family: monospace; color: var(--primary); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.author-box { display: flex; gap: 16px; background: var(--bg-alt); border-radius: 16px; padding: 22px; margin-top: 24px; border: 1px solid var(--border); }
.author-avatar { width: 54px; height: 54px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem; color: #fff; flex-shrink: 0; }
.author-info strong { display: block; font-size: 0.95rem; color: var(--dark); margin-bottom: 2px; }
.author-info > span { display: block; font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 7px; }
.author-info p { font-size: 0.84rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.blog-sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar-widget { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.sidebar-widget h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--dark); }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a { font-size: 0.875rem; color: var(--text-light); text-decoration: none; font-weight: 500; }
.category-list a:hover { color: var(--primary); }
.category-count { background: var(--bg-alt); border-radius: 50px; font-size: 0.73rem; font-weight: 700; padding: 2px 8px; color: var(--text-light); }
.recent-post { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.recent-post:last-child { border-bottom: none; }
.recent-post-img { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.recent-post-info h5 { font-size: 0.8rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.recent-post-info h5 a { color: var(--dark); text-decoration: none; }
.recent-post-info h5 a:hover { color: var(--primary); }
.recent-post-info span { font-size: 0.74rem; color: var(--text-light); }
@media (max-width: 900px) { .blog-detail-layout { grid-template-columns: 1fr; } }

/* btn-white helper */
.btn-white { background: #fff !important; color: var(--primary) !important; border: none !important; }
.btn-white:hover { background: #f0f4ff !important; }


/* ============================================================
   COMPANY TAG — Beautiful design like reference image
   ============================================================ */
.company-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 50px;
  padding: 4px 10px;
  margin-top: 6px;
  white-space: nowrap;
}
.company-tag i { font-size: 0.68rem; }
html.dark .company-tag { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.25); color: #93C5FD; }

/* Portfolio card footer row: Details + Company side by side */
.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================================
   LIGHT THEME — Fix text visibility (was showing dark text on dark bg)
   ============================================================ */
/* Ensure all text is readable in light mode */
body { color: var(--text) !important; }
p { color: var(--text-light); }
h1, h2, h3, h4, h5, h6 { color: var(--dark); }
.section-title { color: var(--dark) !important; }
.section-subtitle { color: var(--text-light) !important; }

/* Stats bar text */
.stat-number { color: var(--dark) !important; }
.stat-label { color: var(--text-light) !important; }

/* Service cards */
.service-card h3, .service-card h4 { color: var(--dark) !important; }
.service-card p { color: var(--text-light) !important; }
.service-desc { color: var(--text-light) !important; }

/* Portfolio cards */
.portfolio-title { color: var(--dark) !important; }
.portfolio-desc { color: var(--text-light) !important; }

/* Blog cards */
.blog-title { color: var(--dark) !important; }
.blog-excerpt { color: var(--text-light) !important; }
.blog-date, .blog-read-time { color: var(--text-light) !important; }

/* About section */
.about-text p { color: var(--text-light) !important; }
.about-info-item .label { color: var(--text-light) !important; }
.about-info-item .value { color: var(--dark) !important; }

/* Testimonials */
.testimonial-text { color: var(--text) !important; }
.client-name { color: var(--dark) !important; }
.client-role { color: var(--text-light) !important; }

/* Contact info */
.contact-info-title { color: var(--dark) !important; }
.contact-info-text { color: var(--text-light) !important; }
.contact-info-card h3 { color: var(--dark) !important; }

/* Timeline */
.timeline-date { color: var(--text-light) !important; }
.timeline-content h4 { color: var(--dark) !important; }
.timeline-content p { color: var(--text-light) !important; }

/* FAQ */
.faq-question h4 { color: var(--dark) !important; }
.faq-answer p { color: var(--text-light) !important; }

/* Footer — background is always dark navy (see #site-footer), so these colors
   must stay fixed and NOT follow the light/dark theme variables, otherwise
   text becomes invisible in light mode (dark-on-dark). */
.footer-desc { color: #94A3B8 !important; }
.footer-links a { color: #94A3B8 !important; }
.footer-links a:hover { color: var(--primary) !important; }
.footer-contact-text strong { color: #fff !important; }
.footer-contact-text span { color: #94A3B8 !important; }
.footer-bottom p { color: #94A3B8 !important; }
.footer-bottom-links a { color: #94A3B8 !important; }

/* Process steps */
.process-title { color: var(--dark) !important; }
.process-desc { color: var(--text-light) !important; }
.step-title { color: var(--dark) !important; }
.step-desc { color: var(--text-light) !important; }

/* Resource cards */
.resource-title { color: var(--dark) !important; }
.resource-desc { color: var(--text-light) !important; }

/* Tag styles */
.tag { color: var(--text-light) !important; background: var(--bg-alt) !important; border-color: var(--border) !important; }

/* Project info box (light mode) */
.project-info-label { color: var(--text-light) !important; font-size: 0.78rem; letter-spacing: 0.03em; text-transform: uppercase; }
.project-info-value { color: var(--dark) !important; }

/* Skill labels */
.skill-name { color: var(--dark) !important; }
.skill-percent { color: var(--primary) !important; }

/* CTA Section text */
.cta-title { color: #fff !important; }
.cta-desc { color: rgba(255,255,255,0.85) !important; }

/* Hero text always white on dark bg */
.home-hero .hero-title { color: #fff !important; }
.home-hero .hero-subtitle { color: rgba(255,255,255,0.9) !important; }
.home-hero .hero-desc { color: rgba(255,255,255,0.75) !important; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7) !important; }
.page-hero .breadcrumb .current { color: var(--accent) !important; }
.page-hero h1 { color: #fff !important; }
.page-hero p { color: rgba(255,255,255,0.8) !important; }

/* ============================================================
   DROPDOWN FIX — Hover bridge prevents menu from disappearing
   when moving mouse between trigger and menu
   ============================================================ */
.nav-item { position: relative; }
.nav-item > .nav-link { display: flex; align-items: center; gap: 4px; }
.nav-item .nav-arrow { font-size: 0.68rem; transition: transform 0.2s; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* The dropdown sits directly below — no gap to cross */
.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  padding-top: 12px !important;
  margin-top: 0 !important;
}
/* Transparent overlap so mouse doesn't lose hover target */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.nav-item:hover .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* ============================================================
   FILTER BUTTON — Active & hover states
   ============================================================ */
/* filter-btn styles consolidated below */

/* ============================================================
   BLOG PAGE — Filter group spacing
   ============================================================ */
.blog-page .filter-group,
.resources-page .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

/* ============================================================
   PROJECT DETAIL GRID
   ============================================================ */
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.project-sidebar { display: flex; flex-direction: column; }
.project-cover {
  background: linear-gradient(135deg, #EFF6FF, #EDE9FE40);
  border-radius: 20px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  overflow: hidden;
}
html.dark .project-cover { background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.18)); border-color: #1E293B; }
.project-info-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.project-info-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.project-info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
@media (max-width: 900px) {
  .project-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG DETAIL LAYOUT
   ============================================================ */
.blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 12px 0; color: var(--dark); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.84rem; color: var(--text-light); padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta i { color: var(--primary); }
.article-cover { background: linear-gradient(135deg, #EFF6FF, #EDE9FE30); border-radius: 16px; height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; border: 1px solid var(--border); }
html.dark .article-cover { background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.18)); border-color: #1E293B; }
.article-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.article-body p { font-size: 0.92rem; line-height: 1.9; color: var(--text-light); margin-bottom: 14px; }
.article-body code { background: var(--bg-alt); border: 1px solid var(--border); padding: 2px 7px; border-radius: 5px; font-size: 0.82em; font-family: monospace; color: var(--primary); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.author-box { display: flex; gap: 16px; background: var(--bg-alt); border-radius: 16px; padding: 22px; margin-top: 24px; border: 1px solid var(--border); }
.author-avatar { width: 54px; height: 54px; min-width: 54px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; color: #fff; }
.author-info strong { display: block; font-size: 0.95rem; color: var(--dark); margin-bottom: 2px; }
.author-info > span { display: block; font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.author-info p { font-size: 0.84rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.sidebar-widget h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--dark); }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.category-list li:last-child { border-bottom: none; }
.category-list a { font-size: 0.875rem; color: var(--text-light); text-decoration: none; font-weight: 500; }
.category-list a:hover { color: var(--primary); }
.category-count { background: var(--bg-alt); border-radius: 50px; font-size: 0.73rem; font-weight: 700; padding: 2px 8px; color: var(--text-light); }
.recent-post { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.recent-post:last-child { border-bottom: none; }
.recent-post-img { width: 42px; height: 42px; min-width: 42px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.recent-post-info h5 { font-size: 0.8rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.recent-post-info h5 a { color: var(--dark); text-decoration: none; }
.recent-post-info h5 a:hover { color: var(--primary); }
.recent-post-info span { font-size: 0.74rem; color: var(--text-light); }
@media (max-width: 900px) { .blog-detail-layout { grid-template-columns: 1fr; } }


/* ============================================================
   CRITICAL FIX: Portfolio/Blog/Resource cards — AOS must not
   hide them. These cards are below the fold but the filter
   needs to show/hide them freely. Force visible always.
   ============================================================ */
.portfolio-card,
.blog-card,
.resource-card {
  opacity: 1 !important;
  transform: none !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.35s ease !important;
}

/* Override any AOS initial hidden state on cards */
.portfolio-card[data-aos]:not(.aos-animate),
.blog-card[data-aos]:not(.aos-animate),
.resource-card[data-aos]:not(.aos-animate) {
  opacity: 1 !important;
  transform: none !important;
}

/* Keep hover lift working */
.portfolio-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-xl) !important;
}
.blog-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-xl) !important;
}
.resource-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-xl) !important;
}

/* ============================================================
   BLOG FILTER — Centered like portfolio page
   ============================================================ */
.blog-page .filter-group,
#blogGrid ~ * .filter-group,
.filter-group {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: center !important;
}

/* ============================================================
   PORTFOLIO FILTER — Also centered
   ============================================================ */
.portfolio-filters,
.portfolio-page .filter-group {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
}

/* ============================================================
   FILTER BUTTON — Healthcare second button blank bug fix
   Ensure ALL filter-btn text is always visible
   ============================================================ */
.filter-btn {
  color: var(--text-light) !important;
  background: transparent !important;
  border: 1.5px solid var(--border) !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  min-width: 80px !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.filter-btn:hover:not(.active) {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: var(--primary-light) !important;
}
.filter-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3) !important;
}

/* Dark mode filter buttons */
html.dark .filter-btn {
  color: #94A3B8 !important;
  border-color: #1E293B !important;
  background: transparent !important;
}
html.dark .filter-btn:hover:not(.active) {
  border-color: #3B82F6 !important;
  color: #3B82F6 !important;
  background: rgba(59,130,246,0.1) !important;
}
html.dark .filter-btn.active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #fff !important;
}


/* ============================================================
   FINAL OVERRIDE BLOCK — Placed last to win all conflicts
   ============================================================ */

/* 1. Ensure ALL cards are visible at all times (never hidden by AOS) */
.portfolio-card,
.blog-card,
.resource-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}
.portfolio-card[data-aos],
.blog-card[data-aos],
.resource-card[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* 2. Hover lift — still works */
.portfolio-card:hover { transform: translateY(-5px) !important; }
.blog-card:hover      { transform: translateY(-5px) !important; }
.resource-card:hover  { transform: translateY(-5px) !important; }

/* 3. Filter buttons — definitive styles, no conflicting dark values */
.filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  border: 1.5px solid var(--border) !important;
  background: transparent !important;
  color: var(--text-light) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  min-width: 90px !important;
  line-height: 1 !important;
}
.filter-btn:hover:not(.active) {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: var(--primary-light) !important;
}
.filter-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

/* 4. Dark mode filter buttons */
html.dark .filter-btn {
  border-color: #2D3748 !important;
  color: #94A3B8 !important;
  background: transparent !important;
}
html.dark .filter-btn:hover:not(.active) {
  border-color: #3B82F6 !important;
  color: #60A5FA !important;
  background: rgba(59, 130, 246, 0.1) !important;
}
html.dark .filter-btn.active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #fff !important;
}

/* 5. Filter group centering — ALL pages */
.filter-group,
.portfolio-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 40px !important;
}

/* 6. Ensure text is ALWAYS visible in light mode on every element */
body { color: var(--text); background: var(--bg-alt2); }
.portfolio-card,
.blog-card,
.resource-card,
.service-card,
.testimonial-card,
.contact-info-card,
.timeline-content,
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
}
.portfolio-card h3,
.blog-card h3,
.blog-card .blog-title,
.resource-card h3,
.service-card h3,
.service-card h4 { color: var(--dark) !important; }

.portfolio-card p,
.blog-card p,
.blog-card .blog-excerpt,
.resource-card p,
.service-card p,
.service-card .service-desc { color: var(--text-light) !important; }

/* 7. Portfolio card footer row */
.portfolio-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding-top: 12px !important;
  margin-top: 10px !important;
  border-top: 1px solid var(--border) !important;
}

/* 8. Company tag pill design */
.company-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.73rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  background: var(--primary-light) !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 50px !important;
  padding: 4px 10px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
html.dark .company-tag {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  color: #93C5FD !important;
}

/* ============================================================
   BLOG / RESOURCE IMAGES (with icon fallback via onerror)
   ============================================================ */
.blog-image img, .article-cover img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.blog-image { overflow: hidden; }
.article-cover { overflow: hidden; }
.article-cover-fallback { width: 100%; height: 100%; align-items: center; justify-content: center; }


/* ============================================================
   CUSTOMER ACCOUNTS: header link, login / register, dashboard
   ============================================================ */
/* Header (uses its own classes, not .btn, so it stays visible on phones where header buttons are hidden) */
.hdr-login, .hdr-account { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text); padding: 7px 12px; border-radius: 50px; border: 1px solid var(--border); transition: var(--transition-fast); }
.hdr-login:hover, .hdr-account:hover { border-color: var(--primary); color: var(--primary); }
.hdr-login i { color: var(--primary); font-size: 0.85rem; }
.hdr-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.hdr-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hdr-account-name, .hdr-login span { display: none; } .hdr-login, .hdr-account { padding: 7px 9px; } }

/* Mobile menu buttons */
.mob-auth-row { display: flex; gap: 10px; margin-bottom: 10px; }
.mob-account-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--primary); color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.mob-auth-row .mob-account-btn { margin-bottom: 0; }
.mob-account-btn-alt { background: var(--primary-light); }

/* Auth card */
.auth-card { max-width: 460px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; }
.auth-submit { width: 100%; justify-content: center; display: flex; gap: 8px; margin-top: 6px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -6px 0 18px; flex-wrap: wrap; }
.auth-link { color: var(--primary); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-light); }
.form-check { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; color: var(--text); cursor: pointer; }
.form-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.auth-consent { margin: 4px 0 18px; line-height: 1.5; }
.form-label small, .acc-hint { color: var(--text-light); font-weight: 400; font-size: 0.78rem; }
.acc-hint { display: block; margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--text-light); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { color: var(--primary); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 18px; line-height: 1.5; }
.auth-alert i { margin-top: 3px; }
.auth-alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.auth-alert-ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.auth-done { text-align: center; }
.auth-done h3 { margin-bottom: 8px; }
.auth-done p { color: var(--text-light); margin-bottom: 22px; font-size: 0.95rem; }
.auth-done-icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: #D1FAE5; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.auth-done-warn { background: #FEF3C7; color: #D97706; }

/* Dashboard layout */
.page-hero-compact { padding-bottom: 36px; }
.account-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-side { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: 96px; box-shadow: var(--shadow-sm); }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; min-width: 0; }
.acc-user > div:last-child { min-width: 0; }
.acc-user strong { display: block; color: var(--dark); font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-user span { display: block; font-size: 0.78rem; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; }
.acc-nav a, .acc-logout { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text); font-size: 0.92rem; font-weight: 500; border: 0; background: transparent; cursor: pointer; text-align: left; font-family: inherit; width: 100%; }
.acc-nav a i, .acc-logout i { width: 18px; text-align: center; color: var(--text-light); }
.acc-nav a:hover, .acc-logout:hover { background: var(--bg-alt2); }
.acc-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.acc-nav a.active i { color: var(--primary); }
.acc-logout { margin-top: 8px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; padding-top: 14px; }

.acc-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.acc-head h2 { font-size: 1.35rem; margin-bottom: 20px; }
.acc-welcome h2 { margin-bottom: 6px; }
.acc-muted { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }
.acc-todo { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.acc-todo a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 50px; background: var(--primary-light); color: var(--primary); font-size: 0.85rem; font-weight: 600; }
.acc-tiles, .acc-support { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.acc-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); color: var(--text); }
.acc-tile:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.acc-tile strong { color: var(--dark); display: flex; align-items: center; gap: 8px; }
.acc-tile span { font-size: 0.83rem; color: var(--text-light); }
.acc-tile-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 6px; }
.acc-pill { display: inline-block; font-size: 0.68rem; font-weight: 700; font-style: normal; letter-spacing: 0.3px; text-transform: uppercase; padding: 3px 9px; border-radius: 50px; background: var(--bg-alt2); color: var(--text-light); margin-left: 8px; vertical-align: middle; }
.acc-pill-ok { background: #D1FAE5; color: #047857; }
.acc-pill-warn { background: #FEF3C7; color: #B45309; }
.acc-empty { text-align: center; padding: 36px 10px; }
.acc-empty > i { font-size: 2.4rem; color: var(--border); margin-bottom: 14px; }
.acc-empty h3 { margin-bottom: 6px; }
.acc-empty p { color: var(--text-light); max-width: 420px; margin: 0 auto 20px; font-size: 0.92rem; }
.acc-block { padding: 22px 0; border-top: 1px solid var(--border); }
.acc-block:first-of-type { border-top: 0; padding-top: 0; }
.acc-block h3 { font-size: 1.05rem; margin-bottom: 10px; display: flex; align-items: center; flex-wrap: wrap; }
.acc-block .acc-pill { margin-left: 10px; }
.acc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.acc-photo { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.acc-photo-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-btn-ghost { background: transparent; color: var(--text-light); border: 1px solid var(--border); }
.acc-btn-danger { background: #DC2626; color: #fff; border: 0; }
.acc-btn-danger:hover { background: #B91C1C; }
.acc-danger h3 { color: #DC2626; }
.acc-delete-form { max-width: 380px; margin-top: 14px; }
.acc-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.acc-toggle:last-of-type { border-bottom: 0; }
.acc-toggle strong { display: block; font-size: 0.95rem; color: var(--dark); }
.acc-toggle span { font-size: 0.83rem; color: var(--text-light); }
.acc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.acc-switch { width: 44px; height: 25px; border-radius: 50px; background: #CBD5E1; position: relative; flex-shrink: 0; transition: var(--transition-fast); }
.acc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: var(--transition-fast); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.acc-toggle input:checked + .acc-switch { background: var(--primary); }
.acc-toggle input:checked + .acc-switch::after { transform: translateX(19px); }
.acc-toggle input:focus-visible + .acc-switch { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; padding: 14px; }
  .acc-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .acc-nav a, .acc-logout { width: auto; white-space: nowrap; padding: 9px 13px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50px; margin: 0; }
  .acc-logout { border-top: 1px solid var(--border); }
  .acc-form-grid { grid-template-columns: 1fr; }
  .acc-card { padding: 20px; }
}
@media (max-width: 520px) { .auth-card { padding: 26px 20px; } .acc-photo { flex-direction: column; align-items: flex-start; } }

/* Dark mode */
html.dark .auth-card, html.dark .account-side, html.dark .acc-card, html.dark .acc-tile { background: #111C33; }
html.dark .auth-alert-error { background: rgba(220,38,38,.12); color: #FCA5A5; border-color: rgba(220,38,38,.35); }
html.dark .auth-alert-ok { background: rgba(16,185,129,.12); color: #6EE7B7; border-color: rgba(16,185,129,.35); }
html.dark .auth-done-icon { background: rgba(16,185,129,.15); }
html.dark .auth-done-warn { background: rgba(245,158,11,.15); }
html.dark .acc-pill-ok { background: rgba(16,185,129,.18); color: #6EE7B7; }
html.dark .acc-pill-warn { background: rgba(245,158,11,.18); color: #FCD34D; }
html.dark .acc-switch { background: #334155; }
html.dark .hdr-login, html.dark .hdr-account { color: #CBD5E1; }


/* ============================================================
   SHOP: cart, wishlist, price, gallery, reviews (Phase 2)
   ============================================================ */
/* Cart icons */
.hdr-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--text); transition: var(--transition-fast); }
.hdr-cart:hover { border-color: var(--primary); color: var(--primary); }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 50px; background: #EF4444; color: #fff; font-size: 0.68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.float-cart { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 500; width: 52px; height: 52px; background: var(--primary); color: #fff; border-radius: 14px 0 0 14px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; box-shadow: var(--shadow-lg); transition: var(--transition-fast); }
.float-cart:hover { width: 60px; background: var(--primary-dark); }
.float-cart .cart-badge { top: 4px; right: 6px; border: 2px solid var(--primary); box-sizing: content-box; }
@media (max-width: 900px) { .hdr-cart { width: 36px; height: 36px; } .float-cart { width: 46px; height: 46px; top: auto; bottom: 100px; transform: none; } }

/* Heart buttons */
.wish-btn { border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.95); color: #64748B; transition: var(--transition-fast); }
.wish-btn:hover { color: #EF4444; transform: scale(1.08); }
.wish-btn.is-on { color: #EF4444; }
.wish-card { position: absolute; top: 12px; left: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; box-shadow: var(--shadow-md); }
.resource-card { position: relative; }
.wish-lg { border: 1px solid var(--border); background: var(--bg); border-radius: 50px; padding: 9px 18px; font-size: 0.88rem; font-weight: 600; flex-shrink: 0; }
html.dark .wish-btn:not(.wish-lg) { background: rgba(15,23,42,.92); }

/* Card extras */
.res-price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.price-chip { display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; background: #D1FAE5; color: #047857; }
.price-paid { background: var(--primary-light); color: var(--primary); }
.price-contact { background: #EDE9FE; color: #6D28D9; }
.card-rating { font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.card-rating i { color: #F59E0B; }
.card-rating small { color: var(--text-light); font-weight: 400; }

/* Detail page */
.res-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 8px; flex-wrap: wrap; }
.res-titlebar h2 { font-size: 1.7rem; margin: 0; }
.res-rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--text); font-size: 0.9rem; }
.stars { color: #F59E0B; letter-spacing: 1px; white-space: nowrap; }
.res-h3 { font-size: 1.2rem; margin: 34px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.res-desc { color: var(--text-light); line-height: 1.9; }
.res-richtext { color: var(--text); line-height: 1.85; }
.res-richtext img { max-width: 100%; border-radius: 12px; }
.res-richtext h2, .res-richtext h3 { margin: 22px 0 10px; }
.res-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.res-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.res-check i { color: var(--success); margin-top: 4px; }
.res-list { padding-left: 20px; color: var(--text); line-height: 1.9; }
.res-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.res-tags span { padding: 6px 14px; border-radius: 50px; background: var(--primary-light); color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.res-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--text-light); font-size: 0.875rem; font-weight: 500; }
.res-buybox { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.res-price strong { display: block; font-size: 2rem; color: var(--dark); line-height: 1.1; }
.res-price span { font-size: 0.82rem; color: var(--text-light); }
.res-btn { width: 100%; justify-content: center; display: flex; gap: 8px; border-radius: 12px; }
.buy-buttons { display: flex; flex-direction: column; gap: 10px; }
.buy-err { color: #B91C1C; font-size: 0.8rem; }
.res-custom { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 16px; padding: 22px; text-align: center; margin-top: 14px; }
.res-custom h4 { color: #fff; margin-bottom: 8px; font-size: 0.95rem; }
.res-custom p { color: rgba(255,255,255,.82); font-size: 0.83rem; margin-bottom: 14px; }
@media (max-width: 1024px) { .project-detail-grid { grid-template-columns: 1fr; } .project-sidebar { position: static; } }
@media (max-width: 600px) { .res-checks { grid-template-columns: 1fr; } .res-titlebar h2 { font-size: 1.35rem; } }

/* Gallery */
.gallery { margin-bottom: 8px; }
.gal-stage { position: relative; background: #0F172A; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.gal-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gal-video, .gal-embed { width: 100%; height: 100%; border: 0; background: #000; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #0F172A; cursor: pointer; z-index: 3; box-shadow: var(--shadow-md); }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-zoom { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(15,23,42,.65); color: #fff; cursor: pointer; z-index: 3; }
.gal-caption { text-align: center; color: var(--text-light); font-size: 0.85rem; margin: 10px 0 0; }
.gal-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumb { position: relative; flex: 0 0 96px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-alt2); cursor: pointer; }
.gal-thumb.active { border-color: var(--primary); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--text-light); font-size: 1.3rem; }
.gal-play { position: absolute; right: 6px; bottom: 6px; font-size: 0.6rem; background: rgba(15,23,42,.75); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gal-lightbox { position: fixed; inset: 0; z-index: 10001; background: rgba(2,6,23,.92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.gal-big { max-width: 100%; max-height: 100%; border-radius: 8px; }
.gal-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; font-size: 1.1rem; }

/* Reviews */
.res-reviews { scroll-margin-top: 100px; }
.rev-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.rev-score { font-size: 2.6rem; font-weight: 700; color: var(--dark); line-height: 1; }
.rev-count { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }
.rev-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.rev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rev-item p { margin: 4px 0 8px; line-height: 1.7; white-space: pre-wrap; }
.rev-item small { color: var(--text-light); }
.rev-verified { color: var(--success); font-weight: 600; }
.review-note { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); border: 1px dashed var(--border); color: var(--text-light); font-size: 0.9rem; margin-top: 18px; }
.review-form { margin-top: 24px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-alt); }
.review-form h4 { margin-bottom: 12px; display: flex; align-items: center; }
.star-input { display: flex; gap: 4px; margin-bottom: 14px; }
.star-input button { border: 0; background: transparent; font-size: 1.7rem; color: #CBD5E1; cursor: pointer; padding: 2px; }
.star-input button.on { color: #F59E0B; }

/* Cart / wishlist lists */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.list-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; }
.list-thumb { position: relative; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--primary-light), #E0E7FF); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.list-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list-title { font-weight: 600; color: var(--dark); }
.list-sub { font-size: 0.82rem; color: var(--text-light); }
.list-price { color: var(--dark); white-space: nowrap; }
.list-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.list-actions a, .list-actions button { border: 0; background: transparent; padding: 0; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--primary); cursor: pointer; }
.list-loading { text-align: center; padding: 50px; color: var(--text-light); }
.cart-summary { position: sticky; top: 100px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.cart-summary h3 { margin-bottom: 16px; font-size: 1.1rem; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.92rem; }
.sum-muted { color: var(--text-light); font-size: 0.85rem; }
.sum-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; margin-bottom: 16px; font-weight: 700; font-size: 1.05rem; color: var(--dark); }
.sum-note { font-size: 0.78rem; color: var(--text-light); margin-top: 12px; line-height: 1.6; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 18px; }
.acc-card .list-row { margin-bottom: 12px; }
.recent-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.recent-item { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--dark); font-weight: 600; }
.recent-item .list-thumb { width: 100%; height: 90px; }
.recent-item em { font-style: normal; font-weight: 500; color: var(--text-light); font-size: 0.78rem; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } .wish-grid { grid-template-columns: 1fr; } }

/* Contact modal: security question + dark mode */
html.dark .res-buybox, html.dark .cart-summary, html.dark .list-row { background: #111C33; }
html.dark .review-form, html.dark .review-note { background: #0B1120; }
html.dark .price-chip { background: rgba(16,185,129,.18); color: #6EE7B7; }
html.dark .price-paid { background: rgba(37,99,235,.2); color: #93C5FD; }
html.dark .price-contact { background: rgba(124,58,237,.2); color: #C4B5FD; }

/* Header: Login / Account / Contact / Cart are all the same round icon buttons */
.hdr-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--border); color: var(--text); font-size: 0.95rem; flex-shrink: 0; transition: var(--transition-fast); }
.hdr-icon:hover { border-color: var(--primary); color: var(--primary); }
.hdr-login i { color: var(--primary); font-size: 0.95rem; }
.hdr-contact { background: var(--primary); border-color: var(--primary); color: #fff; }
.hdr-contact:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.hdr-account { overflow: hidden; }
.hdr-account .hdr-avatar { width: 100%; height: 100%; font-size: 0.9rem; }
@media (max-width: 900px) { .hdr-icon { width: 36px; height: 36px; } .hdr-contact { display: none; } }

/* ============================================================
   CHECKOUT, ORDERS, DOWNLOADS (Phase 3)
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.checkout-main .acc-card { margin-bottom: 22px; }
.checkout-sub { font-size: 1rem; margin: 10px 0 14px; }
.gw-list { display: flex; flex-direction: column; gap: 10px; }
.gw-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: var(--transition-fast); }
.gw-option.active { border-color: var(--primary); background: var(--primary-light); }
.gw-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.gw-option > i { font-size: 1.4rem; color: var(--primary); width: 28px; text-align: center; }
.gw-option div { flex: 1; } .gw-option strong { display: block; color: var(--dark); }
.gw-option span { font-size: 0.8rem; color: var(--text-light); }
.order-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; color: var(--text); transition: var(--transition-fast); }
.order-row:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.order-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-row-main strong { color: var(--dark); } .order-row-main span { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row-main small { color: var(--text-light); }
.order-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-head h2 { margin-bottom: 4px; }
.order-totals { margin: 18px 0 6px; max-width: 360px; margin-left: auto; }
.order-totals > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.order-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px !important; font-weight: 700; color: var(--dark); font-size: 1.05rem !important; }
.order-buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.order-meta small { color: var(--text-light); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.5px; font-weight: 700; }
.order-meta p { margin: 6px 0 0; line-height: 1.7; font-size: 0.92rem; word-break: break-word; }
.update-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: #B45309; background: #FEF3C7; padding: 4px 10px; border-radius: 50px; width: fit-content; }
.dl-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 230px; text-align: right; }
.acc-pill-bad { background: #FEE2E2; color: #B91C1C; }
@media (max-width: 960px) { .checkout-layout { grid-template-columns: 1fr; } }
html.dark .gw-option.active { background: rgba(37,99,235,.15); }
html.dark .update-badge { background: rgba(245,158,11,.18); color: #FCD34D; }
html.dark .acc-pill-bad { background: rgba(220,38,38,.2); color: #FCA5A5; }

/* Coupons, points, rewards (Phase 4) */
.promo-box { margin: 14px 0 4px; padding-top: 14px; border-top: 1px dashed var(--border); }
.promo-row { display: flex; gap: 8px; } .promo-row .form-control { min-width: 0; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: #ECFDF5; color: #047857; font-size: 0.9rem; }
.promo-applied button { border: 0; background: transparent; color: #B91C1C; font-weight: 600; cursor: pointer; font: inherit; font-size: 0.82rem; }
.sum-lines { margin-top: 10px; transition: opacity .2s; } .sum-lines.is-loading { opacity: .55; }
.sum-discount { color: #047857; font-size: 0.9rem; }
.order-discount { color: #047857; }
.rw-balance { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; margin-bottom: 18px; flex-wrap: wrap; }
.rw-balance strong { font-size: 2.4rem; line-height: 1; } .rw-balance span { opacity: .9; font-size: 0.9rem; }
.rw-balance .rw-worth { margin-left: auto; text-align: right; }
.coupon-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border: 2px dashed var(--primary); border-radius: 12px; margin-bottom: 12px; background: var(--primary-light); }
.coupon-card code { font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; color: var(--primary); }
.coupon-card p { margin: 2px 0 0; font-size: 0.82rem; color: var(--text-light); }
.copy-box { display: flex; gap: 8px; margin: 10px 0; } .copy-box input { flex: 1; min-width: 0; font-size: 0.85rem; }
.pts-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.pts-row small { display: block; color: var(--text-light); }
.pts-plus { color: #047857; font-weight: 700; white-space: nowrap; } .pts-minus { color: #B91C1C; font-weight: 700; white-space: nowrap; }
.rw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.rw-steps div { padding: 14px; border-radius: 12px; background: var(--bg-alt); font-size: 0.85rem; } .rw-steps b { display: block; color: var(--dark); margin-bottom: 4px; }
html.dark .promo-applied { background: rgba(16,185,129,.15); color: #6EE7B7; }
html.dark .coupon-card, html.dark .rw-steps div { background: rgba(37,99,235,.12); }
html.dark .sum-discount, html.dark .order-discount { color: #6EE7B7; }

/* Cart badge: on the outer corner, never on top of the icon */
.float-cart .cart-badge { top: -9px; left: -9px; right: auto; border: 2px solid var(--bg); box-sizing: border-box; min-width: 22px; height: 22px; font-size: 0.72rem; }
.hdr-cart .cart-badge { top: -6px; right: -6px; border: 2px solid var(--bg); box-sizing: border-box; min-width: 20px; height: 20px; }
html.dark .float-cart .cart-badge, html.dark .hdr-cart .cart-badge { border-color: #0F172A; }

/* Portfolio filters (technology + category) */
.pf { max-width: 1000px; margin: 0 auto 40px; padding: 22px 26px; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.pf-row { display: flex; align-items: flex-start; gap: 18px; padding: 10px 0; }
.pf-row + .pf-row { border-top: 1px dashed var(--border); }
.pf-label { flex: 0 0 130px; font-size: 0.78rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-light); padding-top: 9px; }
.pf-label i { color: var(--primary); margin-right: 6px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.pf-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 50px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.86rem; font-weight: 500; transition: var(--transition-fast); }
.pf-chip small { font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 50px; background: var(--bg-alt2); color: var(--text-light); }
a.pf-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.pf-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.28); }
.pf-chip.active small { background: rgba(255,255,255,.25); color: #fff; }
.pf-chip.is-empty { opacity: .45; cursor: not-allowed; }
.pf-more { flex-basis: 100%; }
.pf-more summary { cursor: pointer; color: var(--primary); font-size: 0.85rem; font-weight: 600; padding: 8px 4px; list-style: none; width: fit-content; }
.pf-more summary::-webkit-details-marker { display: none; }
.pf-more[open] summary { margin-bottom: 4px; }
.pf-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-light); }
.pf-status b { color: var(--dark); }
.pf-clear { color: #DC2626; font-weight: 600; font-size: 0.85rem; }
.pf-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 2px dashed var(--border); border-radius: 18px; }
.pf-empty > i { font-size: 2.6rem; color: var(--border); margin-bottom: 14px; display: block; }
.pf-empty p { color: var(--text-light); margin: 6px 0 18px; }
@media (max-width: 720px) { .pf { padding: 16px; border-radius: 14px; } .pf-row { flex-direction: column; gap: 8px; } .pf-label { flex: none; padding-top: 0; } .pf-chip { padding: 7px 12px; font-size: 0.82rem; } }
html.dark .pf, html.dark .pf-chip { background: #111C33; }
html.dark .pf-chip.active { background: var(--primary); }
html.dark .pf-status b { color: #F1F5F9; }

/* FAQ page (explorer) */
.faqx { max-width: 1100px; margin: 0 auto; }
.faqx-search { position: relative; max-width: 640px; margin: 0 auto 34px; }
.faqx-search > i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.faqx-search input { width: 100%; box-sizing: border-box; padding: 17px 52px 17px 54px; border: 2px solid var(--border); border-radius: 60px; background: var(--bg); font-size: 1rem; font-family: inherit; color: var(--text); box-shadow: var(--shadow-md); transition: var(--transition-fast); }
.faqx-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-light); }
.faqx-search button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg-alt2); color: var(--text-light); cursor: pointer; }
.faqx-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; align-items: start; }
.faqx-side { position: sticky; top: 96px; }
.faqx-side-title { font-size: 0.74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; padding-left: 6px; }
.faqx-topics { display: flex; flex-direction: column; gap: 6px; }
.faqx-topics button { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.93rem; font-weight: 500; cursor: pointer; text-align: left; transition: var(--transition-fast); }
.faqx-topics button i { width: 20px; text-align: center; color: var(--primary); }
.faqx-topics button span { flex: 1; }
.faqx-topics button em { font-style: normal; font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 50px; background: var(--bg-alt2); color: var(--text-light); }
.faqx-topics button:hover { border-color: var(--primary); transform: translateX(3px); }
.faqx-topics button.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.faqx-topics button.active i { color: #fff; } .faqx-topics button.active em { background: rgba(255,255,255,.25); color: #fff; }
.faqx-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 0.9rem; color: var(--text-light); }
.faqx-bar button { border: 0; background: transparent; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.faqx-group { margin-bottom: 30px; }
.faqx-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.faqx-group-head h3 { margin: 0; font-size: 1.2rem; flex: 1; }
.faqx-group-head small { font-size: 0.75rem; font-weight: 700; color: var(--text-light); background: var(--bg-alt2); padding: 3px 10px; border-radius: 50px; }
.faqx-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); }
.faqx-ico.icon-purple { background: #F3E8FF; color: var(--secondary); } .faqx-ico.icon-green { background: #D1FAE5; color: var(--success); } .faqx-ico.icon-amber { background: #FEF3C7; color: var(--accent); }
.faqx-item { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; overflow: hidden; }
.faqx-item:hover { border-color: #CBD5E1; }
.faqx-item.open { border-color: var(--primary); box-shadow: 0 8px 24px rgba(37,99,235,.10); }
.faqx-item h4 { margin: 0; }
.faqx-item h4 button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border: 0; background: transparent; font: inherit; font-size: 1.02rem; font-weight: 600; color: var(--dark); text-align: left; cursor: pointer; line-height: 1.45; }
.faqx-item h4 button i { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt2); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: transform .3s, background .2s, color .2s; }
.faqx-item.open h4 button { color: var(--primary); }
.faqx-item.open h4 button i { transform: rotate(135deg); background: var(--primary); color: #fff; }
.faqx-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faqx-item.open .faqx-answer { grid-template-rows: 1fr; }
.faqx-answer > div { overflow: hidden; }
.faqx-answer p { margin: 0; padding: 0 22px 22px; color: var(--text-light); line-height: 1.85; white-space: pre-line; }
.faqx mark { background: #FEF08A; color: inherit; padding: 0 2px; border-radius: 3px; }
.faqx-empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--border); border-radius: 18px; }
.faqx-empty i { font-size: 2.6rem; color: var(--border); display: block; margin-bottom: 12px; } .faqx-empty p { color: var(--text-light); margin: 6px 0 16px; }
.faqx-cta { margin: 70px auto 0; max-width: 1000px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: 34px 38px; border-radius: 24px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 20px 40px rgba(37,99,235,.25); }
.faqx-cta-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; }
.faqx-cta-text { flex: 1; min-width: 240px; } .faqx-cta-text h3 { color: #fff; margin: 0 0 6px; font-size: 1.4rem; } .faqx-cta-text p { margin: 0; color: rgba(255,255,255,.88); line-height: 1.7; }
.faqx-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .faqx-layout { grid-template-columns: 1fr; gap: 22px; }
  .faqx-side { position: static; }
  .faqx-side-title { display: none; }
  .faqx-topics { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .faqx-topics button { flex-shrink: 0; padding: 10px 16px; border-radius: 50px; }
  .faqx-topics button:hover { transform: none; }
  .faqx-topics button em { display: none; }
}
@media (max-width: 560px) { .faqx-item h4 button { padding: 16px; font-size: 0.97rem; } .faqx-answer p { padding: 0 16px 18px; } .faqx-cta { padding: 26px 22px; } .faqx-search input { padding: 15px 46px 15px 48px; } }
html.dark .faqx-item, html.dark .faqx-topics button, html.dark .faqx-search input { background: #111C33; }
html.dark .faqx-item h4 button { color: #F1F5F9; } html.dark .faqx-item.open h4 button { color: #93C5FD; }
html.dark .faqx mark { background: #854D0E; color: #FEF3C7; }

/* FAQ: never wider than the screen. A "1fr" grid column can't shrink below its content, so the sideways-scrolling topic strip
   used to stretch the whole page on phones; minmax(0,1fr) + min-width:0 lets it scroll inside itself instead. */
.faqx, .faqx-layout > *, .faqx-main, .faqx-side, .faqx-group, .faqx-item { min-width: 0; max-width: 100%; box-sizing: border-box; }
.faqx-item h4 button span, .faqx-answer p, .faqx-group-head h3 { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .faqx-layout { grid-template-columns: minmax(0, 1fr); }
  .faqx-topics { max-width: 100%; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -2px; padding: 2px 2px 8px; }
  .faqx-topics::-webkit-scrollbar { display: none; }
  .faqx-topics button { scroll-snap-align: start; }
  .faqx-bar { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 560px) {
  .faqx-search { margin-bottom: 22px; }
  .faqx-group-head { gap: 10px; } .faqx-ico { width: 36px; height: 36px; border-radius: 10px; }
  .faqx-group-head h3 { font-size: 1.05rem; }
  .faqx-item { border-radius: 14px; }
  .faqx-item h4 button i { width: 28px; height: 28px; }
  .faqx-cta { flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; border-radius: 20px; }
  .faqx-cta-btns { width: 100%; } .faqx-cta-btns .btn { flex: 1 1 100%; justify-content: center; }
}

/* Responsive safety: single-column grids may shrink below their content, and animated (AOS) elements that start off to the side
   must never create a sideways scrollbar. */
html, body { max-width: 100%; overflow-x: clip; }
.contact-wrapper > *, .contact-info-card, .contact-info-text { min-width: 0; }
.contact-info-text, .contact-info-text a, .contact-info-text p, .contact-info-text span { overflow-wrap: anywhere; }
.contact-form-wrapper input, .contact-form-wrapper textarea, .contact-form-wrapper select { max-width: 100%; box-sizing: border-box; }
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: minmax(0, 1fr); } }
/* FAQ topics: wrap on tablets (plenty of room), scroll sideways only on phones */
@media (min-width: 561px) and (max-width: 900px) { .faqx-topics { flex-wrap: wrap; overflow-x: visible; } .faqx-topics button em { display: inline-block; } }

/* Checkout: choose which cart items to buy now */
.co-select-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; font-size: 0.85rem; }
.co-select-head small { color: var(--text-light); }
.co-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); transition: opacity .2s; }
.co-item .form-check { flex: 1; min-width: 0; align-items: center; }
.co-title { font-size: 0.92rem; line-height: 1.4; overflow-wrap: anywhere; }
.co-price { font-weight: 600; color: var(--dark); white-space: nowrap; font-size: 0.92rem; }
.co-item.is-off { opacity: .5; } .co-item.is-off .co-title { text-decoration: line-through; } .co-item.is-off .co-price { text-decoration: line-through; }
.co-remove { border: 0; background: transparent; color: var(--text-light); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.co-remove:hover { background: #FEE2E2; color: #B91C1C; }
html.dark .co-price { color: #F1F5F9; }

/* "Contact to download" pop-up: compact two-column form; if it still has to scroll (small screens) the scrollbar is hidden */
.rmodal { max-height: 94vh; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.rmodal::-webkit-scrollbar { width: 0; height: 0; display: none; }
.rmodal .rm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.rmodal .form-group { margin-bottom: 14px; }
.rmodal h3 { margin-bottom: 4px; } .rmodal .rmodal-sub { margin-bottom: 18px; }
.rmodal .rmodal-icon { margin-bottom: 10px; }
@media (max-width: 560px) { .rmodal .rm-grid { grid-template-columns: 1fr; } .rmodal { max-height: 96vh; border-radius: 20px; } }

/* Contact page + header + floating buttons on small screens */
.contact-social { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-social .btn { justify-content: center; }
@media (max-width: 560px) {
  .contact-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }   /* LinkedIn + GitHub side by side, WhatsApp full width underneath */
  .contact-social .contact-wa { grid-column: 1 / -1; padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 600px) {
  .logo-text { min-width: 0; } .logo { min-width: 0; flex: 1 1 auto; }
  .logo-text .logo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; font-size: 0.95rem; }
  .logo-text .logo-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
  .whatsapp-float { width: 46px !important; height: 46px !important; font-size: 1.35rem !important; right: 12px !important; bottom: 14px !important; }
  .back-to-top { width: 38px !important; height: 38px !important; right: 17px !important; bottom: 68px !important; font-size: 0.85rem; }
  .float-cart { width: 40px !important; height: 40px !important; bottom: 118px !important; font-size: 1rem; }
}
@media (max-width: 380px) { .logo-text .logo-sub { display: none; } .logo-text .logo-name { max-width: 130px; } }

/* ===== Content filters (portfolio): search + category tabs + technology picker ===== */
.cf-bar { position: sticky; top: 84px; z-index: 60; display: flex; gap: 12px; align-items: center; max-width: 1000px; margin: 0 auto 18px; padding: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md); }
.cf-search { position: relative; flex: 1; min-width: 0; }
.cf-search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.9rem; pointer-events: none; }
.cf-search input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 44px 0 42px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; font-size: 0.95rem; color: var(--text); transition: var(--transition-fast); }
.cf-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.cf-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--bg-alt2); color: var(--text-light); cursor: pointer; }
.cf-tech { position: relative; flex-shrink: 0; }
.cf-btn { height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: var(--transition-fast); }
.cf-btn:hover, .cf-btn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.cf-btn.has { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.cf-btn b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 50px; background: var(--primary); color: #fff; font-size: 0.74rem; display: inline-flex; align-items: center; justify-content: center; }
.cf-chev { font-size: 0.7rem; opacity: .7; }
.cf-filters-btn { display: none; }
.cf-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-width: calc(100vw - 32px); background: var(--bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-xl, 0 20px 50px rgba(15,23,42,.18)); padding: 14px; z-index: 70; }
.cf-tsearch { position: relative; margin-bottom: 8px; }
.cf-tsearch i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.8rem; }
.cf-tsearch input { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px 0 36px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg); font: inherit; font-size: 0.88rem; color: var(--text); }
.cf-tsearch input:focus { outline: none; border-color: var(--primary); }
.cf-tlist { max-height: 280px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.cf-opt { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 9px; cursor: pointer; font-size: 0.92rem; transition: background .12s; }
.cf-opt:hover { background: var(--bg-alt2); } .cf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cf-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #CBD5E1; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 0.65rem; flex-shrink: 0; transition: var(--transition-fast); }
.cf-opt.on .cf-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.cf-opt input:focus-visible + .cf-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.cf-opt-label { flex: 1; min-width: 0; overflow-wrap: anywhere; } .cf-opt.on .cf-opt-label { font-weight: 600; color: var(--primary); }
.cf-opt em { font-style: normal; font-size: 0.74rem; font-weight: 700; color: var(--text-light); background: var(--bg-alt2); padding: 2px 8px; border-radius: 50px; }
.cf-opt.off { opacity: .4; cursor: not-allowed; }
.cf-none { padding: 14px 6px; color: var(--text-light); font-size: 0.88rem; margin: 0; }
.cf-pop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-light); }
.cf-pop-foot button { border: 0; background: transparent; color: #DC2626; font: inherit; font-weight: 600; cursor: pointer; }
.cf-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 1000px; margin: 0 auto 14px; }
.cf-cat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 50px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.86rem; font-weight: 500; cursor: pointer; transition: var(--transition-fast); }
.cf-cat em { font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 50px; background: var(--bg-alt2); color: var(--text-light); }
.cf-cat:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.cf-cat.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.cf-cat.active em { background: rgba(255,255,255,.25); color: #fff; }
.cf-cat:disabled { opacity: .4; cursor: not-allowed; }
.cf-meta { max-width: 1000px; margin: 0 auto 30px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; min-height: 34px; }
.cf-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cf-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 13px; border-radius: 50px; background: var(--primary-light); color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.cf-pill i:first-child { font-size: 0.72rem; opacity: .8; }
.cf-pill button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(37,99,235,.15); color: var(--primary); cursor: pointer; font-size: 0.62rem; display: inline-flex; align-items: center; justify-content: center; }
.cf-pill button:hover { background: var(--primary); color: #fff; }
.cf-clear { border: 0; background: transparent; color: #DC2626; font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; padding: 6px 4px; }
.cf-count { margin: 0 0 0 auto; font-size: 0.9rem; color: var(--text-light); display: inline-block; }
.cf-count b { color: var(--dark); } .cf-count.is-pending { opacity: .7; }
.cf-sheet-wrap { display: none; }
@media (max-width: 720px) {
  .cf-bar { top: 70px; margin-bottom: 14px; padding: 10px; border-radius: 16px; gap: 10px; }
  .cf-tech, .cf-cats { display: none; }
  .cf-filters-btn { display: inline-flex; }
  .cf-search input { height: 44px; } .cf-btn { height: 44px; padding: 0 14px; }
  .cf-meta { margin-bottom: 22px; } .cf-count { margin-left: 0; width: 100%; }
  .cf-sheet-wrap { display: flex; position: fixed; inset: 0; z-index: 10000; background: rgba(2,6,23,.55); align-items: flex-end; }
  .cf-sheet { width: 100%; max-height: 88vh; background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: cfUp .28s ease; }
  .cf-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
  .cf-sheet-head h3 { margin: 0; font-size: 1.1rem; }
  .cf-sheet-head button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-alt2); color: var(--text); cursor: pointer; }
  .cf-sheet-body { padding: 14px 20px; overflow-y: auto; flex: 1; scrollbar-width: none; }
  .cf-sheet-body::-webkit-scrollbar { display: none; }
  .cf-sheet-body h4 { margin: 14px 0 10px; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); }
  .cf-sheet-cats { display: flex; flex-wrap: wrap; gap: 8px; }
  .cf-sheet .cf-tlist { max-height: none; overflow: visible; }
  .cf-sheet-foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
  .cf-sheet-foot .btn { flex: 1; justify-content: center; }
}
@keyframes cfUp { from { transform: translateY(100%); } to { transform: none; } }
html.dark .cf-bar { background: rgba(17,28,51,.92); } html.dark .cf-search input, html.dark .cf-btn, html.dark .cf-cat, html.dark .cf-pop, html.dark .cf-tsearch input { background: #111C33; }
html.dark .cf-count b { color: #F1F5F9; } html.dark .cf-sheet { background: #0F172A; }
