/* ============================================================
   WEBFOOTPRINT — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --navy:       #0f1f3d;
  --navy-light: #1a3260;
  --blue:       #1e4de0;
  --blue-bright:#2e5ff5;
  --orange:     #f05a28;
  --white:      #ffffff;
  --off-white:  #f5f6fa;
  --text:       #2c3554;
  --muted:      #6b7499;
  --border:     #e2e6f3;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(15,31,61,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.35); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.logo-box {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  box-shadow: 0 4px 16px rgba(30,77,224,.5);
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--white); letter-spacing: .04em;
}
.logo-text span { color: var(--orange); }

.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: .55rem 1rem; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: .55rem 1.3rem !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #d44d20 !important; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.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); }

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--navy); padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: 1rem; font-weight: 500; padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu a:last-child { border: none; color: var(--orange); font-weight: 600; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 70px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(30,77,224,.18) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 10% 80%, rgba(240,90,40,.12) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 4rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,77,224,.2); border: 1px solid rgba(30,77,224,.4);
  color: #a0b4ff; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  padding: .4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.badge-dot { width: 6px; height: 6px; background: var(--blue-bright); border-radius: 50%; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  color: var(--white); margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--orange); }
.hero p {
  color: rgba(255,255,255,.65); font-size: 1.05rem;
  line-height: 1.75; margin-bottom: 2.5rem; max-width: 480px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--blue-bright);
  color: #fff; font-weight: 600; font-size: .95rem;
  padding: .85rem 2rem; border-radius: 10px; border: none;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(46,95,245,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { background: #1a44d0; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(46,95,245,.5); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.8); font-weight: 600; font-size: .95rem;
  padding: .85rem 2rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }

.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 2rem;
  backdrop-filter: blur(10px);
  width: 100%; max-width: 420px;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 1.25rem;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; color: var(--white);
}
.stat-num.orange { color: var(--orange); }
.stat-lbl { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .3rem; font-weight: 500; }
.hero-card-title {
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.5);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem;
}

/* ── SECTION SHARED ── */
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: rgba(30,77,224,.08); color: var(--blue);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .4rem 1rem; border-radius: 100px;
  border: 1px solid rgba(30,77,224,.15); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; color: var(--navy); line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 580px; }

/* ── ABOUT ── */
.about { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.about-list li {
  display: flex; align-items: center; gap: .75rem;
  font-size: .95rem; color: var(--text); font-weight: 500;
}
.about-list li::before {
  content: '✓'; width: 24px; height: 24px;
  background: var(--blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; flex-shrink: 0;
}
.about-img-wrap { position: relative; }
.about-img-placeholder {
  width: 100%; aspect-ratio: 4/3;
 background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  color: rgba(255,255,255,.3); font-size: .85rem;
}
.about-badge-float {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--orange); color: #fff;
  border-radius: 14px; padding: 1rem 1.5rem;
  box-shadow: 0 8px 30px rgba(240,90,40,.35);
}
.about-badge-float .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 900;
}
.about-badge-float .lbl { font-size: .78rem; font-weight: 600; opacity: .85; }

/* ── SERVICES ── */
.services-head { text-align: center; margin-bottom: 3.5rem; }
.services-head .section-sub { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  opacity: 0; transition: opacity .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(15,31,61,.1); border-color: rgba(30,77,224,.2); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(30,77,224,.08);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; color: var(--navy); }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ── PORTFOLIO ── */
#portfolio { background: var(--navy); }
#portfolio .section-label { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.15); }
#portfolio .section-title { color: #fff; }
#portfolio .section-sub { color: rgba(255,255,255,.5); margin: 0 auto; }

.portfolio-filter {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center; margin: 2rem 0 2.5rem;
}
.filter-btn {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: .5rem 1.4rem;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  transition: all .22s;
  font-family: 'DM Sans', sans-serif;
}
.filter-btn:hover {
  background: rgba(240,90,40,.2);
  color: #fff;
  border-color: var(--orange);
}
.filter-btn.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(240,90,40,.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.portfolio-item {
  position: relative; border-radius: 14px; overflow: hidden;
  cursor: pointer; aspect-ratio: 4/4;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s, box-shadow .3s;
  display: block;
}
.portfolio-item.hidden {
  display: none !important;
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }

.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform .5s;
}
.portfolio-item:hover img { transform: scale(1.04); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,50,.92) 0%, rgba(10,20,50,.3) 50%, transparent 100%);
  opacity: 0; transition: opacity .3s;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.portfolio-overlay span { color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 500; }

.portfolio-zoom {
  position: absolute; top: 1rem; right: 1rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; opacity: 0; transform: scale(.7);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.portfolio-item:hover .portfolio-zoom { opacity: 1; transform: scale(1); }

/* ── LIGHTBOX ── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,10,25,.96); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }

.lightbox-wrap {
  position: relative; max-width: 880px; width: 92%;
  display: flex; flex-direction: column;
  transform: scale(.92); transition: transform .35s;
}
.lightbox-overlay.active .lightbox-wrap { transform: scale(1); }

.lightbox-img-box {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0a1020;
  max-height: 76vh;
  overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center;
}
.lightbox-img-box img {
  width: 100%; display: block;
}

.lightbox-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0 0;
}
.lightbox-title { color: #fff; font-size: 1rem; font-weight: 700; }
.lightbox-cat { color: rgba(255,255,255,.5); font-size: .82rem; margin-top: .2rem; }
.lightbox-counter { color: rgba(255,255,255,.4); font-size: .82rem; font-weight: 600; }

.lightbox-close {
  position: absolute; top: -3rem; right: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: background .2s;
}
.lightbox-close:hover { background: var(--orange); border-color: var(--orange); }

.lightbox-nav {
  position: absolute; top: 40%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
  transition: background .2s, border-color .2s;
  z-index: 10;
}
.lightbox-nav:hover { background: var(--orange); border-color: var(--orange); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-dots {
  display: flex; gap: .5rem; justify-content: center; margin-top: 1rem;
}
.lightbox-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.25); cursor: pointer;
  transition: background .2s, transform .2s; border: none;
}
.lightbox-dot.active { background: var(--orange); transform: scale(1.3); }

/* ── STATS ── */
.stats-section { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.stat-box { text-align: center; padding: 2rem 1rem; }
.stat-big {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 900; color: var(--orange); line-height: 1;
}
.stat-box p { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: .5rem; font-weight: 500; }

/* ── DESIGN ── */
.design { background: var(--off-white); }
.design-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.design-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  transition: box-shadow .2s;
}
.design-item:hover { box-shadow: 0 8px 30px rgba(15,31,61,.08); }
.design-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; color: rgba(30,77,224,.15); line-height: 1; flex-shrink: 0;
}
.design-item h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; color: var(--navy); }
.design-item p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── SECURITY ── */
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.security-cards { display: flex; flex-direction: column; gap: 1rem; }
.sec-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem;
  border-left: 4px solid var(--blue);
  transition: border-color .2s, box-shadow .2s;
}
.sec-card:hover { border-left-color: var(--orange); box-shadow: 0 4px 20px rgba(15,31,61,.07); }
.sec-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--navy); }
.sec-card p { font-size: .87rem; color: var(--muted); line-height: 1.6; }

.seo-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; margin-top: 1.5rem; }
.seo-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .93rem; color: var(--text); line-height: 1.5;
}
.seo-list li::before { content: '→'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(46,95,245,.2) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem;
}
.cta-section p { color: rgba(255,255,255,.65); font-size: 1rem; margin-bottom: 2.5rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-features {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
  margin-top: 3.5rem; padding-top: 3.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.cta-feat { text-align: center; }
.cta-feat-icon { font-size: 1.75rem; margin-bottom: .6rem; }
.cta-feat h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.cta-feat p { font-size: .83rem; color: rgba(255,255,255,.5); }

/* ── FOOTER ── */
footer {
  background: #080f22; color: rgba(255,255,255,.5);
  text-align: center; padding: 2rem; font-size: .85rem;
}
footer span { color: var(--orange); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp .7s ease both; }
.hero-content > *:nth-child(1) { animation-delay: .1s; }
.hero-content > *:nth-child(2) { animation-delay: .25s; }
.hero-content > *:nth-child(3) { animation-delay: .4s; }
.hero-content > *:nth-child(4) { animation-delay: .55s; }
.hero-visual { animation: fadeUp .9s .3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid, .security-grid { grid-template-columns: 1fr; }
  .about-img-wrap { order: -1; }
  .about-badge-float { bottom: -1rem; left: 1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero p { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .design-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: -44px; }
  .lightbox-next { right: -44px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 3.5rem 1.25rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev, .lightbox-next { display: none; }
}
@media (max-width: 480px) {
  .hero-inner { padding: 2.5rem 1.25rem; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
