/* ============================================================
   FMJ Electrical Engineering LTD — Main Stylesheet
   ============================================================ */

/* ── Font Awesome Global Icon Styles ── */
.footer-contact-item i {
  width: 16px;
  text-align: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-info-icon i {
  color: var(--white);
  font-size: 1rem;
}
.cert-icon i {
  font-size: 1.3rem;
  color: var(--orange);
}
.exp-icon i {
  font-size: 1.2rem;
}
.intro-feature-icon i {
  font-size: 1.2rem;
}
.skill-preview-icon i {
  font-size: 2rem;
  color: rgba(255,255,255,.85);
}
.hero-float-icon i { font-size: 1.1rem; }
.intro-card-icon i  { font-size: 2rem; display: block; }
.project-link i     { transition: transform var(--transition); }
.project-link:hover i { transform: translateX(4px); }

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #0a1f44;
  --navy-light:  #112960;
  --navy-dark:   #060f22;
  --orange:      #f57c00;
  --orange-light:#ff9800;
  --orange-dark: #e65100;
  --white:       #ffffff;
  --off-white:   #f8f9fc;
  --light-gray:  #eef0f5;
  --mid-gray:    #8a9ab5;
  --dark-gray:   #3d4f6e;
  --text-dark:   #0d1b35;
  --text-body:   #444f66;
  --shadow-sm:   0 2px 8px rgba(10,31,68,.08);
  --shadow-md:   0 6px 24px rgba(10,31,68,.12);
  --shadow-lg:   0 12px 40px rgba(10,31,68,.18);
  --radius:      10px;
  --radius-lg:   18px;
  --transition:  0.28s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  min-width: 0;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5 {
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: 1rem; color: var(--text-body); }

/* ── Utility ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; width: 100%; }
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-orange { color: var(--orange); }
.bg-navy     { background: var(--navy); }
.bg-off      { background: var(--off-white); }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 560px;
  margin: 0 auto 50px;
}
.divider {
  width: 52px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 14px 0 20px;
}
.divider.center { margin: 14px auto 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: .4px;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,124,0,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  transition: all var(--transition);
}
#navbar.scrolled {
  background: rgba(10,31,68,.97);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text span:first-child {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .5px;
}
.nav-logo-text span:last-child {
  font-size: .65rem;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
  letter-spacing: .3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  left: 16px;
  right: 16px;
}
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  border-radius: 8px;
  padding: 9px 22px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-dark); }
.nav-cta::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.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");
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 80px 0;
  width: 100%;
  min-width: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,124,0,.15);
  border: 1px solid rgba(245,124,0,.3);
  color: var(--orange-light);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-content { min-width: 0; width: 100%; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--orange);
}
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 2px;
  white-space: nowrap;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero-img-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 8px;
  backdrop-filter: blur(6px);
}
.hero-img-card img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  height: 340px;
}
.hero-float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.hero-float-badge.top-left { top: -24px; left: -24px; }
.hero-float-badge.bottom-right { bottom: -20px; right: -24px; }
.hero-float-icon {
  width: 38px; height: 38px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hero-float-badge .badge-label {
  font-size: .72rem;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-float-badge .badge-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ── Intro Section ── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.intro-features { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.intro-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.intro-feature-icon {
  width: 44px; height: 44px;
  background: rgba(245,124,0,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--orange);
}
.intro-feature h4 { font-size: .95rem; color: var(--navy); margin-bottom: 3px; }
.intro-feature p  { font-size: .875rem; color: var(--mid-gray); }

.intro-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.intro-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.intro-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.intro-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.intro-card p { font-size: .83rem; color: var(--mid-gray); }

/* ── Featured Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 28px;
  justify-items: center;
}
.projects-grid .project-card {
  width: 100%;
  max-width: 480px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.project-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.06); }
.project-card-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
}
.project-card-body { padding: 24px; flex-grow: 1; }
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--navy); }
.project-card-body p  { font-size: .875rem; color: var(--mid-gray); line-height: 1.6; }
.project-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.project-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--transition);
}
.project-link:hover { gap: 10px; }

/* ── Skills Preview ── */
.skills-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 24px;
  justify-items: center;
}
.skills-preview-grid .skill-preview-card { width: 100%; }
.skill-preview-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.skill-preview-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(245,124,0,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.skill-preview-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(245,124,0,.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.skill-preview-card:hover::before {
  opacity: 1;
}
.skill-preview-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.skill-preview-card h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}
.skill-preview-card p {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
}
.skill-bar-wrap { margin-top: 14px; }
.skill-bar-bg {
  height: 5px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width 1.2s ease;
  width: 0;
}

/* ── Premium Skill Cards (Redesign) ── */
.skills-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}
.skill-card-premium {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}
.skill-card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(245,124,0,0.03) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.skill-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(10,31,68,.12);
  border-color: rgba(245,124,0,0.3);
}
.skill-card-premium:hover::before { opacity: 1; }

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.skill-card-icon {
  width: 48px; height: 48px;
  background: rgba(245,124,0,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--orange);
  transition: all 0.4s ease;
}
.skill-card-premium:hover .skill-card-icon {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.05) rotate(-5deg);
  box-shadow: 0 4px 14px rgba(245,124,0,.35);
}
.skill-card-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.skill-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
}
.skill-card-percent-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.skill-card-percent-text span {
  font-size: 1rem;
  color: var(--orange);
}

.skill-card-track {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--light-gray);
  overflow: hidden;
}
.skill-card-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--orange) 100%);
  width: 0; /* Dynamic width set via JS */
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.skill-card-premium:hover .skill-card-fill {
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
  box-shadow: 0 0 8px var(--orange);
}

/* ── About Page ── */
.about-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 140px 0 70px;
  text-align: center;
}
.page-hero-title { color: var(--white); }
.page-hero-sub   { color: rgba(255,255,255,.65); margin: 12px auto 0; max-width: 520px; font-size: 1.05rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  align-items: start;
}
.about-photo-wrap { position: relative; }
.about-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
}
.about-photo-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-photo-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-photo-badge .badge-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-photo-badge .badge-text { font-size: .75rem; opacity: .85; margin-top: 2px; }

.experience-list { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }
.exp-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  transition: all var(--transition);
}
.exp-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.exp-icon {
  width: 46px; height: 46px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.exp-period {
  font-size: .75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.exp-item h4 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.exp-item p  { font-size: .85rem; color: var(--mid-gray); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.cert-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cert-icon {
  width: 46px; height: 46px;
  background: rgba(245,124,0,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cert-card h4 { font-size: .9rem; color: var(--navy); font-weight: 700; margin-bottom: 2px; }
.cert-card p  { font-size: .78rem; color: var(--mid-gray); }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-info-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--white);
}
.contact-info-item h4 { font-size: .85rem; color: var(--mid-gray); margin-bottom: 2px; }
.contact-info-item p  { font-size: .95rem; font-weight: 600; color: var(--navy); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  margin-top: 28px;
  transition: all var(--transition);
}
.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,.3);
}

/* ── Contact Form ── */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: .3px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(245,124,0,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: #f0faf4;
  border: 1.5px solid #34c46a;
  border-radius: var(--radius);
  color: #1a7a40;
  font-weight: 600;
  margin-top: 16px;
}

/* ── Admin Login ── */
.admin-page {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.admin-page::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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  position: relative;
  z-index: 1;
}
.admin-logo-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.admin-logo-wrap img { height: 60px; margin: 0 auto 12px; }
.admin-logo-wrap h2 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.admin-logo-wrap p { font-size: .83rem; color: var(--mid-gray); }
.admin-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 24px 0;
}
.input-icon-wrap { position: relative; }
.input-icon-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--mid-gray);
}
.input-icon-wrap input { padding-left: 42px; }
.admin-card .btn { width: 100%; justify-content: center; margin-top: 8px; font-size: 1rem; padding: 15px; }
.admin-footer {
  text-align: center;
  margin-top: 24px;
  font-size: .8rem;
  color: var(--mid-gray);
}
.login-alert {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.login-alert.error { background: #fff0f0; border: 1px solid #f5c0c0; color: #c0392b; }
.login-alert.success { background: #f0faf4; border: 1px solid #34c46a; color: #1a7a40; }

/* ── Footer ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 48px; margin-bottom: 14px; }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 260px; }
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.footer-contact-item span { font-size: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--orange); }

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 130px 0 70px;
  text-align: center;
}
.page-hero .container { display: flex; flex-direction: column; align-items: center; }
.page-hero h1 { color: var(--white); text-align: center; width: 100%; }
.page-hero p  { color: rgba(255,255,255,.65); margin: 14px auto 0; max-width: 540px; text-align: center; width: 100%; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--orange); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ── Animate on Scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Nav Menu ── */
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: 12px 24px; width: 100%; text-align: center; }
  .nav-links a::after { display: none; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 100px; }
  .hero-visual { display: none; }
  .hero-stats  { gap: 24px; }

  /* Intro */
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-cards { order: -1; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { max-width: 380px; margin: 0 auto; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }

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

  /* Skills page — collapse 2-col grid */
  .skills-main-grid { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Service areas / why choose us inline grids — center single items */
  [style*="repeat(auto"] {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)) !important;
  }

  /* Ensure text-center applies inside these grids */
  .skills-preview-grid,
  .skill-preview-card { text-align: center; }
}

@media (max-width: 560px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .intro-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-card { padding: 36px 24px; }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* prevent absolute-positioned badge from causing overflow */
  .about-photo-badge { position: static; margin-top: 16px; display: inline-block; border-radius: var(--radius); }
  .page-hero { padding: 110px 0 50px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Ultra-small screens (< 360px) ── */
@media (max-width: 360px) {
  html { font-size: 14px; }
  .container { padding: 0 12px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .btn { padding: 12px 20px; font-size: .875rem; }
  .hero-badge { font-size: .68rem; padding: 5px 12px; }
  .hero-float-badge { display: none; }
  .nav-logo-text span:last-child { display: none; }
  .projects-grid { gap: 18px; }
  .filter-bar { gap: 7px; }
  .filter-btn { padding: 7px 14px; font-size: .78rem; }
}

/* ── Skeleton Loading Animation ── */
.skeleton {
  background: #eef0f5;
  background: linear-gradient(90deg, #eef0f5 25%, #f6f8fb 50%, #eef0f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius);
}
.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}
.skeleton-title {
  height: 1.5rem;
  margin-bottom: 1rem;
  width: 70%;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
