/* =========================
   General
========================= */
:root{
  --bg:#0A0F1F;
  --bg-2:#0E1B30;
  --accent:#00E5FF;
  --accent-2:#4DA8DA;
  --muted:#9FB3C8;
  --glass: rgba(255,255,255,0.03);
}
html, body { height: 100%; scroll-behavior:smooth; }
body {
  background: linear-gradient(180deg,var(--bg) 0%, #060812 100%);
  color: #EAF6FF;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
.container-xl { max-width: 1150px; }
/* Section Layout */
section {
  min-height:100vh;
  display:flex;
  align-items:center;
  padding-top:120px;
  padding-bottom:120px;
  position:relative;
  z-index:1;
}
section + section { border-top:1px solid rgba(255,255,255,0.05); }
.text-muted { color:#FFFFFF !important }

/* =========================
   Loading Screen
========================= */
/* Fullscreen Loader */
#screen-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
  color: #00E5FF;
  z-index: 2147483647 !important;
  overflow: hidden;
}
/* Wrapper to center logo inside ring */
.loader-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
}
/* Rotating ring */
.loader-ring {
  position: absolute;
  top: 0; left: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid rgba(0, 229, 255, 0.2);
  border-top: 4px solid #00E5FF;
  border-left: 4px solid #00E5FF;
  animation: rotate 1.5s linear infinite;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  z-index: 1;
}
/* Logo container (stationary, centered) */
.logo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Logo image (stationary, glowing, pulsating) */
.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: pulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px #00E5FF);
  position: relative;
}
/* Holographic scan lines */
.holo-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(transparent 50%, rgba(0,229,255,0.2) 50%);
  background-size: 100% 4px;
  animation: holoScan 1.2s linear infinite;
  z-index: 1;
  pointer-events: none;
  border-radius: 10px;
}
/* Typing text (closer to logo) */
.loading-text {
  font-size: 1.1rem;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #00E5FF;
  width: 0;
  animation: typing 2s steps(25) forwards, blink 0.8s infinite;
  margin-top: 20px; /* much closer to the logo/ring */
}
/* Animations */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}
@keyframes holoScan {
  0% { background-position-y: 0; }
  100% { background-position-y: 4px; }
}
@keyframes typing {
  to { width: 220px; } /* adjust to text length */
}
@keyframes blink {
  0%,100%{border-color: transparent;}
  50%{border-color: #00E5FF;}
}

/* =========================
   Navigation
========================= */
nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(5,8,18,0.78);
  backdrop-filter: blur(12px);
  padding:1rem 0;
  border-bottom:1px solid rgba(255,255,255,0.05);
}
.navbar-brand { font-family:'Montserrat'; font-weight:700; letter-spacing:0.6px; }
.nav-link { color:rgba(234,246,255,0.8) !important }
.nav-link:hover,
.nav-link.active { color:var(--accent) !important }

/* =========================
   Hero Section
========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top:100px;
  background:
    linear-gradient(180deg, rgba(10,15,31,0.55), rgba(10,15,31,0.85)),
    url('resources/images/bg.gif') center/cover no-repeat;
  background-attachment: fixed;
}
.hero .eyebrow { color:var(--muted); font-weight:600; }
.hero h1 { font-family:'Montserrat'; font-weight:800; font-size:2.6rem; line-height:1.02; }
.lead-weak { color:#FFFFFF; font-size:1.05rem; }
.neon-btn {
  background: linear-gradient(90deg, rgba(0,229,255,0.12), rgba(77,168,218,0.06));
  border: 1px solid rgba(0,229,255,0.18);
  box-shadow: 0 6px 24px rgba(0,229,255,0.06), 0 0 18px rgba(0,229,255,0.06) inset;
  color: var(--accent);
}
.neon-btn:hover { box-shadow:0 8px 28px rgba(0,229,255,0.12), 0 0 28px rgba(0,229,255,0.12) inset }
/* Cards */
.card-neo {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  color:#FFFFFF;
}
/* Mobile view */
@media (max-width: 768px) {  /* adjust breakpoint if needed */
  .hero {
    background: 
      linear-gradient(180deg, rgba(10,15,31,0.55), rgba(10,15,31,0.85)),
      url('resources/images/mobile-bg.png') center/cover no-repeat;
    background-attachment: scroll; /* optional, often better for mobile */
  }
}

/* =========================
   Services Section
========================= */
/* Services Icons */
.service-icon {
  width:56px; height:56px; border-radius:12px;
  background:rgba(13,23,36,0.6);
  border:1px solid rgba(77,168,218,0.08);
  display:flex; align-items:center; justify-content:center;
}

/* =========================
   Workflow Section
========================= */
#workflow {
  background: var(--bg-2);
  position: relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding-top:120px;
  padding-bottom:120px;
  z-index:1;
}
/* Workflow cards */
.workflow-card {
  background: rgba(255,255,255,0.02);
  border:1px solid rgba(0,229,255,0.08);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.workflow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.2), 0 0 12px rgba(0,229,255,0.15) inset;
}
/* Step bubble */
.step-bubble-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1rem;
}
.step-bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(0,229,255,0.06), rgba(77,168,218,0.03));
  border:1px solid rgba(0,229,255,0.14);
  color:#FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0.25rem;
}
.step-bubble:hover {
  transform: scale(1.2);
  background: linear-gradient(135deg, #00e5ff, #4da8da);
  color:#000;
  box-shadow: 0 8px 24px rgba(0,229,255,0.3), 0 0 12px rgba(0,229,255,0.2) inset;
}
.step-arrow {
  width: 2px;
  height: 40px;
  background: rgba(0,229,255,0.3);
  margin-top: 5px;
  position: relative;
}
.step-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(0,229,255,0.6);
  border-bottom: 2px solid rgba(0,229,255,0.6);
  background: transparent;
}
.workflow-card:hover .step-arrow {
  background: rgba(0,229,255,0.6);
}
.workflow-card:hover .step-arrow::after {
  border-color: rgba(0,229,255,1);
}
.workflow-card h5 { font-size: 1.1rem; color:#FFFFFF; margin-bottom:0.25rem; }
.workflow-card p { font-size: 0.95rem; color:#cfd8e0; margin-bottom:0; }

/* =========================
   Portfolio Section
========================= */
#portfolio { background: var(--bg); }
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,15,31,0.3), rgba(10,15,31,0.85));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  color: #FFFFFF;
  text-align: center;
  transition: background 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay {
  background: linear-gradient(180deg, rgba(10,15,31,0.6), rgba(0,229,255,0.25));
}
.portfolio-overlay h6 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
/* Portfolio button (if needed) */
.portfolio-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0,229,255,0.5);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(0,229,255,0.05);
}
.portfolio-btn:hover {
  background: rgba(0,229,255,0.2);
  box-shadow: 0 4px 12px rgba(0,229,255,0.3), 0 0 8px rgba(0,229,255,0.2) inset;
  color: #FFFFFF;
}

/* =========================
   Testimonials Section
========================= */
#testimonials {
  background: var(--bg-2);
  padding: 6rem 1rem;
  overflow: hidden;
  text-align: center;
}
#testimonials h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}
#testimonials p.subheader {
  margin-bottom: 3rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
}
.testimonial-carousel {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  width: max-content;
}
.testimonial-card-wrapper {
  flex: 0 0 auto;
  width: 300px;
  cursor: grab;
  transition: transform 0.3s ease, z-index 0.3s ease;
}
.testimonial-card-wrapper:hover {
  transform: scale(1.05);
  z-index: 10;
  flex: 0 0 300px; /* fixed width */
  cursor: grab;
  transition: transform 0.3s ease, z-index 0.3s ease;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,229,255,0.1);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}
.testimonial-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.profile-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.testimonial-content h5 {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}
.testimonial-content .date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.testimonial-content .rating {
  color: #FFD700;
  margin-bottom: 0.75rem;
}
.testimonial-text {
  font-size: 0.95rem;
  color: #cfd8e0;
  line-height: 1.4;
  flex-grow: 1;
}

/* =========================
   CTA Section
========================= */
#cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
  background: #0A0F1F; 
}
.big-cta {
  position: relative;
  z-index: 2;
  background: rgba(0,229,255,0.1); /* subtle frosted effect */
  border: 1px solid rgba(0,229,255,0.2);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 650px;
  width: 100%;
  color: #000; /* ensures text is readable on cyan background */
}
.big-cta h4 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.big-cta p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #fff;
}
.btn-cta {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, #00e5ff, #4da8da);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00e5ff, 0 0 40px #4da8da;
  color: #fff;
}
.glow {
  box-shadow: 0 0 12px #00e5ff, 0 0 24px #4da8da;
  animation: glowPulse 2s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0% { box-shadow: 0 0 12px #00e5ff, 0 0 24px #4da8da; }
  100% { box-shadow: 0 0 20px #00e5ff, 0 0 40px #4da8da; }
}

/* =========================
   Contact Section & Footer
============================ */
.form-control {
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.04);
  color:#FFFFFF;
}
::placeholder { color: rgba(234,246,255,0.4) }
footer { padding:2.4rem 0; color:#FFFFFF; }

/* =========================
   Responsiveness
========================= */
@media(max-width: 991px) {
  .workflow-line { display: none; }
  .workflow-card { flex-direction: row; }
  .step-arrow { display: none; }
}
@media(max-width: 767px) {
  .workflow-card { flex-direction: column; align-items: flex-start; }
  .step-bubble { margin-bottom: 0.5rem; margin-right:0; }
  .portfolio-card img { height: 180px; }
  .portfolio-overlay { padding: 0.8rem; }
}
@media(min-width:992px){
  .hero h1 { font-size:3.4rem; }
}
@media (max-width: 991px) {
  .testimonial-card-wrapper { width: 240px; }
  .profile-pic { width: 72px; height: 72px; }
  .testimonial-card { min-height: 220px; }
}
@media (max-width: 767px) {
  .testimonial-card-wrapper { width: 200px; }
  .profile-pic { width: 65px; height: 65px; }
  #testimonials h3 { font-size: 1.75rem; }
  .testimonial-card { min-height: 200px; }
}
