/* =============================================================
   Irfan Ali — Site-wide dark theme + animated background.
   Matches the hero design and applies it across the whole page.
   Accent stays #F5A623. Loaded LAST. Remove this file to revert.
   ============================================================= */

:root { --accent: #F5A623; }

html { background: #0b0b12; }
body { background: #0b0b12 !important; color: #c7c7d1; }

/* ---- Fixed animated glow + grid behind the entire page ---- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(245,166,35,.16), transparent 34%),
    radial-gradient(circle at 85% 42%, rgba(245,166,35,.10), transparent 36%),
    radial-gradient(circle at 55% 88%, rgba(120,90,255,.10), transparent 38%);
  animation: bgGlow 24s ease-in-out infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 8%, transparent 72%);
}
@keyframes bgGlow {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -2%) scale(1.06); }
  100% { transform: translate(-2%, 2%) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* keep all content above the fixed background layers */
nav, section, footer, #ftco-loader, #resume-modal { position: relative; z-index: 1; }
#ftco-navbar { z-index: 1001; }
#ftco-loader { background: #0b0b12 !important; }

/* make sections transparent so the animated bg shows through */
.ftco-section, section, footer.ftco-footer,
.ftco-counter, .ftco-hireme { background: transparent !important; }
.ftco-hireme.img, .ftco-counter.img { background-image: none !important; }

/* ---- Typography on dark ---- */
.heading-section h2 { color: #ffffff !important; }
.heading-section .big, .heading-section .big-2 { color: rgba(255,255,255,.055) !important; }
.heading-section p, .ftco-section p { color: #a7a7b2 !important; }
h2, h3, h4 { color: #ececf1; }

/* About */
.ftco-about p { color: #a7a7b2 !important; }
.about-info li span { color: #cfcfd6 !important; }
.about-info li span:first-child { color: var(--accent) !important; }
.counter-wrap .number, .counter-wrap .text strong { color: var(--accent) !important; }
.counter-wrap .text span { color: #b8b8c0 !important; }

/* Services cards -> glass */
.services-1 {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; box-shadow: none;
  transition: transform .3s ease, border-color .3s ease;
}
.services-1:hover { transform: translateY(-6px); border-color: rgba(245,166,35,.5); }
.services-1 h3 { color: #ececf1 !important; }
.services-1 .icon i { color: var(--accent); }

/* Resume / timeline cards -> glass */
.resume-wrap {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.resume-wrap h2 { color: #ffffff !important; font-size: 21px !important; }
.resume-wrap .position { color: #bdbdc6 !important; font-size: 12px !important; }
.resume-wrap p { color: #a7a7b2 !important; font-size: 15px !important; line-height: 1.65 !important; }
.resume-wrap .date { color: var(--accent) !important; font-size: 18px !important; }

/* ---- Skills: subtle frosted-glass cards with icon badges ---- */
#skills-section .skill-card {
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018)) !important;
  border: 1px solid rgba(245,166,35,.18) !important;
  border-radius: 18px !important;
  padding: 26px 24px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.35) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}
#skills-section .skill-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(245,166,35,.55) !important;
  box-shadow: 0 18px 46px rgba(245,166,35,.18) !important;
}
#skills-section .skill-card h3 {
  color: #ffffff !important;
  display: flex; align-items: center; gap: 12px;
}
#skills-section .skill-card h3 .cat-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245,166,35,.14);
  border: 1px solid rgba(245,166,35,.38);
  color: var(--accent); font-size: 17px;
  transition: background .3s ease, transform .3s ease;
}
#skills-section .skill-card:hover h3 .cat-ico { background: var(--accent); color: #1a1a1a; transform: scale(1.08); }
#skills-section .skill-pill {
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.40);
  color: #ecdcbf;
}
#skills-section .skill-pill:hover { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }

/* Projects: keep yellow subheadings & dark enterprise cards; lift image cards */
#projects-section .project { border-radius: 12px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
#projects-section .project:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.45); }

/* Contact */
/* Clean circular-icon style — no card box behind each item */
.contact-info .box {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.contact-info .box .icon {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.07);
  transition: background .3s ease, transform .3s ease;
}
.contact-info .box:hover .icon { background: rgba(245,166,35,.16) !important; transform: translateY(-4px); }
.contact-info .box .icon span { color: var(--accent) !important; }
.contact-info .box h3 { color: #ffffff !important; }
.contact-info .box p, .contact-info .box a { color: #a7a7b2 !important; }
.contact-form.bg-light, form.contact-form { background: rgba(255,255,255,.04) !important; }
.contact-form .form-control {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #eaeaef;
}
.contact-form .form-control::placeholder { color: #8a8a95; }
.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}

/* Footer */
.ftco-footer { border-top: 1px solid rgba(255,255,255,.06); }
.ftco-footer .ftco-heading-2 { color: #ffffff; }
.ftco-footer a, .ftco-footer p, .ftco-footer .text, .ftco-footer li { color: #a7a7b2 !important; }
.ftco-footer a:hover { color: var(--accent) !important; }

/* Buttons: outline button readable on dark */
.btn.btn-white.btn-outline-white { color: #fff !important; border-color: rgba(255,255,255,.55) !important; }
.btn.btn-white.btn-outline-white:hover { background: rgba(255,255,255,.12) !important; }

/* =================  UX polish  ================= */

/* Smooth in-page scrolling, offset so sections clear the fixed navbar */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

/* Frosted navbar once you scroll past the hero */
#ftco-navbar { transition: background-color .35s ease, box-shadow .35s ease, padding .3s ease; }
#ftco-navbar.scrolled {
  background: rgba(11,11,18,.82) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 6px 26px rgba(0,0,0,.45);
}
/* Animated underline on nav links + active section */
#ftco-navbar .nav-link span { position: relative; }
#ftco-navbar .nav-link span::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s ease;
}
#ftco-navbar .nav-link:hover span::after,
#ftco-navbar .nav-item.active .nav-link span::after { width: 100%; }
#ftco-navbar .nav-item.active .nav-link span { color: var(--accent) !important; }

/* Gradient underline accent under centered section titles */
.heading-section.text-center h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 16px auto 0;
  border-radius: 3px; background: linear-gradient(90deg, #F5A623, #ffca5f);
}

/* Project image cards: tidy borders + legible captions on dark */
#projects-section .project { border: 1px solid rgba(255,255,255,.06); }
#projects-section .project .text h3 { color: #fff; }
#projects-section .project .overlay { transition: opacity .35s ease; }

/* LeetCode icon: its near-black part is invisible on dark — lighten it */
#leetcode path[fill="#070706"] { fill: #e8e8ea; }

/* Footer social icons bounce on hover */
.ftco-footer-social li a { display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.ftco-footer-social li a:hover { transform: translateY(-4px) scale(1.12); }

/* Hire-me banner readability on dark */
.ftco-hireme h2 { color: #fff !important; }

/* Back-to-top button */
#to-top {
  position: fixed; left: 24px; bottom: 24px; z-index: 9997;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #F5A623, #ffca5f); color: #1a1a1a; font-size: 20px; line-height: 1;
  box-shadow: 0 8px 20px rgba(245,166,35,.45);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, filter .2s ease;
}
#to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#to-top:hover { transform: translateY(-3px); filter: brightness(1.06); }

@media (max-width: 575px) { #to-top { left: 16px; bottom: 84px; } }

/* =================  Enterprise project cards (glass, matches Skills)  ================= */
#projects-section .ent-card {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(245,166,35,.18);
  border-radius: 18px; padding: 26px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
#projects-section .ent-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245,166,35,.55);
  box-shadow: 0 20px 46px rgba(245,166,35,.18);
}
#projects-section .ent-title {
  display: flex; align-items: center; gap: 12px;
  color: #ffffff !important; font-size: 20px; font-weight: 700; margin-bottom: 6px;
}
#projects-section .ent-ico {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245,166,35,.14); border: 1px solid rgba(245,166,35,.38);
  font-size: 21px; transition: transform .3s ease, background .3s ease;
}
#projects-section .ent-card:hover .ent-ico { transform: scale(1.08); background: rgba(245,166,35,.22); }
#projects-section .ent-sub { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .3px; }
#projects-section .ent-desc { color: #a7a7b2 !important; font-size: 13.5px; line-height: 1.65; margin: 14px 0 16px; flex: 1; }
#projects-section .ent-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
#projects-section .ent-tags span {
  font-size: 11.5px; color: #ecdcbf; padding: 4px 11px; border-radius: 16px;
  background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.35);
}
