/* ==========================================================================
   Selgoniq — Premium IT Company Website
   Global stylesheet
   ========================================================================== */

:root {
  --primary: #1D4ED8;
  --royal: #2563EB;
  --bright: #3B82F6;
  --light-blue: #60A5FA;
  --navy: #0B1026;
  --navy-2: #111634;
  --white: #FFFFFF;
  --light-gray: #F8FAFC;
  --soft-gray: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --border: #E5E7EB;

  --gradient-primary: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 50%, #60A5FA 100%);
  --gradient-hero: radial-gradient(1200px 600px at 10% -10%, rgba(59,130,246,.35), transparent 60%),
                    radial-gradient(900px 500px at 90% 0%, rgba(96,165,250,.28), transparent 60%),
                    linear-gradient(180deg, #0B1026 0%, #0B1026 60%, #111634 100%);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 12px 30px -12px rgba(29,78,216,.25);
  --shadow-lg: 0 30px 60px -20px rgba(29,78,216,.35);
  --radius: 16px;
  --radius-lg: 24px;

  --font-primary: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-secondary: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-secondary);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p  { color: var(--muted); font-size: 1.02rem; }

a { color: var(--royal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }

section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--royal);
  padding: 6px 14px;
  border: 1px solid rgba(37,99,235,.2);
  background: rgba(59,130,246,.08);
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.section-title p { font-size: 1.1rem; }

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------ Page Loader ------------ */
#page-loader{
  position:fixed; inset:0; background:var(--navy); z-index:9999;
  display:flex; align-items:center; justify-content:center;
  transition:opacity .5s ease, visibility .5s ease;
}
#page-loader.hidden{ opacity:0; visibility:hidden; }
.loader-ring{
  width:56px; height:56px; border-radius:50%;
  border:3px solid rgba(255,255,255,.15);
  border-top-color: var(--bright);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------ Scroll progress ------------ */
#scroll-progress{
  position: fixed; top:0; left:0; height:3px; width:0;
  background: var(--gradient-primary); z-index: 1080;
  transition: width .1s linear;
}

/* ------------ Navbar ------------ */
.navbar-selgoniq{
  position: fixed; top:0; left:0; right:0; z-index: 1050;
  padding: 18px 0;
  transition: all .35s ease;
  background: transparent;
}
.navbar-selgoniq.scrolled{
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px rgba(15,23,42,.06);
  padding: 12px 0;
}
.navbar-selgoniq .navbar-brand{
  font-family: var(--font-primary); font-weight: 800; font-size: 1.4rem;
  color: var(--white); letter-spacing:-.02em;
}
.navbar-selgoniq.scrolled .navbar-brand{ color: var(--navy); }
.navbar-selgoniq .brand-dot{
  display:inline-block; width:10px; height:10px; border-radius:50%;
  background: var(--gradient-primary); margin-right:8px;
  box-shadow: 0 0 12px rgba(59,130,246,.6);
}
.navbar-selgoniq .nav-link{
  color: rgba(255,255,255,.85); font-weight: 500;
  padding: 8px 14px !important; position: relative;
}
.navbar-selgoniq .nav-link:hover,
.navbar-selgoniq .nav-link.active{ color: var(--white); }
.navbar-selgoniq.scrolled .nav-link{ color: var(--text); }
.navbar-selgoniq.scrolled .nav-link:hover,
.navbar-selgoniq.scrolled .nav-link.active{ color: var(--primary); }
.navbar-selgoniq .nav-link.active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:2px;
  height:2px; background: var(--gradient-primary); border-radius: 2px;
}
.navbar-toggler{ border:none; color:#fff; }
.navbar-selgoniq.scrolled .navbar-toggler{ color: var(--navy); }
.navbar-toggler:focus{ box-shadow:none; }

/* On non-home pages navbar has solid style from the start */
.navbar-solid{
  background: rgba(255,255,255,.9) !important;
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 6px 24px rgba(15,23,42,.06);
}
.navbar-solid .navbar-brand,
.navbar-solid .nav-link{ color: var(--navy) !important; }
.navbar-solid .nav-link.active{ color: var(--primary) !important; }
.navbar-solid .navbar-toggler{ color: var(--navy); }

/* ------------ Buttons ------------ */
.btn{
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary-gradient{
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37,99,235,.6);
}
.btn-primary-gradient:hover{
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 18px 40px -10px rgba(37,99,235,.7);
}
.btn-ghost{
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover{ background: rgba(255,255,255,.15); color:#fff; transform: translateY(-2px);}
.btn-outline-navy{
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover{ background: var(--navy); color:#fff; transform: translateY(-2px);}
.btn-lg{ padding: 15px 32px; font-size: 1rem; }

/* Ripple */
.btn.ripple::after{
  content:""; position:absolute; inset:0; background:rgba(255,255,255,.25);
  transform: scale(0); border-radius:50%; opacity:0; transition: transform .6s ease, opacity .8s ease;
}
.btn.ripple:active::after{ transform: scale(2.5); opacity: 1; transition:0s; }

/* ------------ Hero ------------ */
.hero{
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero);
  color: #fff;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero .eyebrow{
  color: #93c5fd;
  background: rgba(59,130,246,.15);
  border-color: rgba(147,197,253,.35);
}
.hero h1{ color:#fff; }
.hero p.lead{ color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 620px; }
.hero .hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 28px; }

.hero-visual{
  position: relative;
  aspect-ratio: 1/1;
  max-width: 520px;
  margin: 0 auto;
}
.hero-orb{
  position:absolute; inset:10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(147,197,253,.55), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(37,99,235,.75), transparent 55%),
    linear-gradient(135deg, #1D4ED8, #3B82F6);
  box-shadow: 0 60px 120px -30px rgba(37,99,235,.7), inset 0 0 60px rgba(255,255,255,.1);
  animation: floaty 8s ease-in-out infinite;
}
.hero-card{
  position:absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 18px;
  border-radius: 14px;
  color:#fff;
  min-width: 190px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.35);
  animation: floaty 6s ease-in-out infinite;
}
.hero-card small{ color: rgba(255,255,255,.7); }
.hero-card .metric{ font-family: var(--font-primary); font-weight:700; font-size: 1.4rem; }
.hero-card.c1{ top:8%; left:-10%; }
.hero-card.c2{ bottom:12%; right:-8%; animation-delay: -3s; }
.hero-card.c3{ bottom: -4%; left: 12%; animation-delay: -1.5s; }

@keyframes floaty {
  0%,100%{ transform: translateY(0);}
  50%{ transform: translateY(-14px);}
}

/* Floating background shapes */
.shape{
  position:absolute; border-radius:50%; filter: blur(60px); opacity:.5; pointer-events:none;
}
.shape.s1{ width: 380px; height:380px; background: #3B82F6; top:-80px; left:-80px; }
.shape.s2{ width: 300px; height:300px; background: #60A5FA; bottom:-100px; right:-60px; opacity:.35;}

/* ------------ Inner page hero ------------ */
.page-hero{
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  color:#fff;
  position: relative;
  overflow: hidden;
}
.page-hero h1{ color:#fff; }
.page-hero p{ color: rgba(255,255,255,.78); max-width: 720px; }
.breadcrumb-selgoniq{
  background: transparent; padding: 0; margin-bottom: 20px;
}
.breadcrumb-selgoniq .breadcrumb-item,
.breadcrumb-selgoniq .breadcrumb-item a{ color: rgba(255,255,255,.7); font-size: .9rem; }
.breadcrumb-selgoniq .breadcrumb-item.active{ color: #fff; }
.breadcrumb-selgoniq .breadcrumb-item + .breadcrumb-item::before{ color: rgba(255,255,255,.4); }

/* ------------ Cards / feature blocks ------------ */
.feature-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59,130,246,.35);
}
.feature-card .icon-wrap{
  display: inline-flex; align-items:center; justify-content:center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-primary);
  color:#fff; font-size: 1.4rem;
  margin-bottom: 20px;
  box-shadow: 0 14px 24px -10px rgba(37,99,235,.6);
}
.feature-card h3{ margin-bottom: 10px; }
.feature-card p{ margin-bottom: 0; }
.feature-card .card-link{
  display:inline-flex; align-items:center; gap: 6px; margin-top:16px;
  font-weight:600; color: var(--royal);
}
.feature-card .card-link i{ transition: transform .25s ease; }
.feature-card:hover .card-link i{ transform: translateX(4px); }

.glass-card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ------------ Stats ------------ */
.stat{
  padding: 24px;
  text-align:center;
}
.stat .num{
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label{ color: var(--muted); font-weight: 500; margin-top:4px; }

/* ------------ Trusted logos ------------ */
.logo-row{
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items:center;
  opacity: .8;
}
.logo-row .logo-item{
  font-family: var(--font-primary); font-weight: 700; letter-spacing:.05em;
  color: var(--muted); text-align:center; font-size: 1rem;
  padding: 12px; border-radius: 10px; border:1px dashed var(--border);
}
@media (max-width: 992px){ .logo-row{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 576px){ .logo-row{ grid-template-columns: repeat(2,1fr);} }

/* ------------ Process timeline ------------ */
.timeline{ position: relative; padding: 20px 0; }
.timeline::before{
  content:""; position:absolute; left: 50%; top:0; bottom:0; width:2px;
  background: linear-gradient(180deg, transparent, var(--soft-gray), transparent);
  transform: translateX(-50%);
}
.tl-item{ position:relative; width:50%; padding: 20px 40px; }
.tl-item:nth-child(odd){ left:0; text-align:right; }
.tl-item:nth-child(even){ left:50%; }
.tl-item .tl-dot{
  position:absolute; top: 32px; width:16px; height:16px; border-radius:50%;
  background: var(--gradient-primary); box-shadow: 0 0 0 6px rgba(37,99,235,.15);
}
.tl-item:nth-child(odd) .tl-dot{ right: -8px; }
.tl-item:nth-child(even) .tl-dot{ left: -8px; }
.tl-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.tl-step{ font-family: var(--font-primary); font-weight:700; color: var(--royal); font-size: .8rem; letter-spacing:.1em; text-transform:uppercase;}
@media (max-width: 768px){
  .timeline::before{ left: 20px; }
  .tl-item{ width:100%; padding: 20px 20px 20px 50px; text-align:left !important; left:0 !important;}
  .tl-item .tl-dot{ left: 12px !important; right:auto !important; }
}

/* ------------ Testimonials ------------ */
.testimonial{
  background: #fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; height: 100%; box-shadow: var(--shadow-sm);
}
.testimonial .stars{ color:#F59E0B; margin-bottom:12px; }
.testimonial .who{ display:flex; align-items:center; gap:12px; margin-top:18px;}
.avatar{
  width:44px; height:44px; border-radius:50%;
  background: var(--gradient-primary); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-primary); font-weight:700;
}
.testimonial .who small{ display:block; color: var(--muted); }

/* ------------ Tech stack ------------ */
.tech-grid{
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.tech-chip{
  background:#fff; border:1px solid var(--border); border-radius: 14px;
  padding: 18px 12px; text-align:center; transition: transform .25s ease, box-shadow .25s ease;
  font-weight:600; color: var(--text);
}
.tech-chip i{ display:block; font-size: 1.6rem; color: var(--royal); margin-bottom:8px;}
.tech-chip:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (max-width: 992px){ .tech-grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 576px){ .tech-grid{ grid-template-columns: repeat(2,1fr);} }

/* ------------ FAQ ------------ */
.accordion-selgoniq .accordion-item{
  border: 1px solid var(--border); border-radius: var(--radius) !important;
  margin-bottom: 12px; overflow: hidden; background:#fff;
}
.accordion-selgoniq .accordion-button{
  font-family: var(--font-primary); font-weight: 600; color: var(--text);
  padding: 20px 22px; box-shadow: none !important;
  background: #fff;
}
.accordion-selgoniq .accordion-button:not(.collapsed){
  background: rgba(59,130,246,.06); color: var(--primary);
}
.accordion-selgoniq .accordion-body{ color: var(--muted); padding: 4px 22px 22px; }

/* ------------ CTA band ------------ */
.cta-band{
  background: var(--gradient-primary);
  color: #fff; border-radius: 28px; padding: 60px 40px;
  position: relative; overflow: hidden;
}
.cta-band h2{ color:#fff; }
.cta-band p{ color: rgba(255,255,255,.85); }
.cta-band::before{
  content:""; position:absolute; right:-60px; top:-60px; width:260px; height:260px;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 60%); border-radius:50%;
}

/* ------------ Footer ------------ */
.footer{
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding: 80px 0 24px;
  position: relative;
}
.footer h5{ color:#fff; font-family: var(--font-primary); margin-bottom: 18px; font-size: 1rem; letter-spacing:.02em;}
.footer a{ color: rgba(255,255,255,.72); display:block; padding: 4px 0;}
.footer a:hover{ color:#fff; }
.footer .brand{ font-family: var(--font-primary); font-weight:800; font-size:1.4rem; color:#fff; }
.footer .social a{
  display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center;
  border-radius: 10px; background: rgba(255,255,255,.06); margin-right:8px;
  transition: background .2s ease, transform .2s ease;
}
.footer .social a:hover{ background: var(--royal); transform: translateY(-2px); }
.footer .newsletter input{
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  color:#fff; border-radius: 12px; padding: 12px 14px;
}
.footer .newsletter input::placeholder{ color: rgba(255,255,255,.5); }
.footer-bottom{
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .9rem; color: rgba(255,255,255,.6);
}

/* ------------ Back to top ------------ */
#backToTop{
  position: fixed; bottom: 24px; right: 24px; z-index: 1040;
  width: 46px; height:46px; border-radius: 50%;
  background: var(--gradient-primary); color:#fff;
  display: none; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -10px rgba(37,99,235,.7); border:none;
  transition: transform .2s ease;
}
#backToTop:hover{ transform: translateY(-3px); }

/* ------------ Comparison table ------------ */
.comparison-table{
  width:100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.comparison-table th, .comparison-table td{ padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border);}
.comparison-table thead th{ background: var(--light-gray); font-family: var(--font-primary); font-weight:700; }
.comparison-table tbody tr:last-child td{ border-bottom: none; }
.comparison-table td i.bi-check-circle-fill{ color: #22C55E; }
.comparison-table td i.bi-x-circle-fill{ color: #EF4444; }

/* ------------ Project cards ------------ */
.filter-btns{ display:flex; flex-wrap:wrap; gap: 10px; justify-content:center; margin-bottom: 32px;}
.filter-btns .filter-btn{
  border:1px solid var(--border); background:#fff; color: var(--text);
  padding: 8px 18px; border-radius: 999px; font-weight:500; cursor:pointer; transition: all .2s ease;
}
.filter-btns .filter-btn.active,
.filter-btns .filter-btn:hover{
  background: var(--gradient-primary); color:#fff; border-color: transparent;
  box-shadow: 0 10px 20px -8px rgba(37,99,235,.5);
}
.project-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  overflow:hidden; transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.project-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-thumb{
  aspect-ratio: 16/10;
  background: var(--gradient-primary);
  position: relative; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-primary); font-weight:700; font-size: 1.5rem;
  letter-spacing: -.02em;
}
.project-thumb::after{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 55%);
}
.project-card .body{ padding: 22px; }
.project-card .tag{
  display:inline-block; font-size:.75rem; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color: var(--royal); background: rgba(59,130,246,.1);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.project-card .tech-list{ display:flex; flex-wrap:wrap; gap:6px; margin-top: 12px; }
.project-card .tech-list span{
  font-size:.75rem; background: var(--light-gray); color: var(--text);
  padding: 3px 10px; border-radius: 999px;
}

/* ------------ Contact ------------ */
.contact-card{
  background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; height:100%; box-shadow: var(--shadow-sm);
}
.contact-card i.contact-icon{
  width: 44px; height:44px; display:inline-flex; align-items:center; justify-content:center;
  background: var(--gradient-primary); color:#fff; border-radius: 12px; font-size: 1.2rem;
  margin-bottom: 14px;
}
.form-control, .form-select{
  border-radius: 12px; padding: 12px 14px; border:1px solid var(--border);
  font-family: var(--font-secondary);
}
.form-control:focus, .form-select:focus{
  border-color: var(--bright); box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.map-embed{
  width:100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(37,99,235,.15), rgba(96,165,250,.15)),
    repeating-linear-gradient(45deg, #E2E8F0 0 2px, transparent 2px 24px),
    #F8FAFC;
  border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color: var(--muted); font-weight:500;
}

/* ------------ Utility ------------ */
.bg-light-blue{ background: var(--light-gray); }
.bg-navy{ background: var(--navy); color:#fff; }
.bg-navy h2, .bg-navy h3{ color:#fff; }
.bg-navy p{ color: rgba(255,255,255,.75); }
.divider-svg{ display:block; width: 100%; height: 60px; }
.rounded-3xl{ border-radius: 28px; }
.max-w-lg{ max-width: 720px; margin: 0 auto; }

/* Values grid */
.value-item{
  display:flex; gap:16px; padding: 22px; border-radius: 18px;
  background:#fff; border:1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-item:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-item .v-icon{
  min-width: 46px; height:46px; border-radius: 12px;
  background: rgba(59,130,246,.12); color: var(--royal);
  display:flex; align-items:center; justify-content:center; font-size: 1.3rem;
}
