/* ============================================================
   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: calc(100% + 8px); left: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xl);
  min-width: 220px; padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-10px); transition: var(--transition);
}
.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-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;
}
.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;
}
.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 { font-size: 4rem; color: var(--primary); opacity: 0.3; }
.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);
}
.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);
}
.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 { font-size: 3.5rem; color: var(--primary); opacity: 0.25; }
.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;
}
.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-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; cursor: pointer; gap: 20px;
}
.faq-question h4 { font-size: 1rem; color: var(--dark); flex: 1; line-height: 1.4; }
.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-bottom: 20px; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ============================================================
   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;
}
.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);
}
.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); }

/* ============================================================
   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-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; }

  /* 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 .resource-preview { background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(124,58,237,0.2)); }
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; }
