:root {
  --bg-color: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(0, 0, 0, 0.08);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  
  --accent-cyan: #00bac6;
  --accent-blue: #2563eb;
  --accent-purple: #9333ea;
  
  --font-family: 'Outfit', sans-serif;
  --blur: blur(12px);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
}

/* Base Tech Grid Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(var(--border-glass) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-glass) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  opacity: 0.4;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 50px 50px; }
}

/* Animated Mesh Gradient Nodes */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 186, 198, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  animation: meshFloat 30s infinite alternate ease-in-out;
}

@keyframes meshFloat {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(30px, -30px); }
  100% { transform: scale(1) translate(-20px, 20px); }
}

/* Scanline Sweep Animation */
.scanline {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 186, 198, 0.02) 50%,
    transparent 50.1%
  );
  background-size: 100% 10px;
  z-index: 100;
  pointer-events: none;
  animation: scan 10s linear infinite;
  opacity: 0.5;
}

@keyframes scan {
  from { background-position: 0 0; }
  to { background-position: 0 100vh; }
}

/* Background Glow Effects */
.background-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.background-glow.pos-1 {
  top: -100px;
  left: -200px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

.background-glow.pos-2 {
  top: 40%;
  right: -250px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

/* Typography & Utility */
.text-gradient {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-family);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 15px rgba(176, 38, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 38, 255, 0.5);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  backdrop-filter: var(--blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-glow {
  background: rgba(0, 186, 198, 0.05);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 4px 10px rgba(0, 186, 198, 0.1);
}

.btn-glow:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 186, 198, 0.3);
}

/* Glass Card */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  backdrop-filter: var(--blur);
  padding: 2rem;
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-10px);
}

.hover-glow:hover {
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-icon {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--accent-cyan);
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem 2rem;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.badge {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* 3D Visual Mock (Pure CSS) */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.mock-globe {
  width: 450px;
  height: 450px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 15s infinite linear;
}

.ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2.5px solid var(--accent-cyan);
  border-radius: 50%;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(0, 186, 198, 0.4));
}

.ring.r1 {
  transform: rotateX(60deg) rotateY(0deg);
}

.ring.r2 {
  transform: rotateX(60deg) rotateY(60deg);
  border-color: var(--accent-purple);
  filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.4));
}

.ring.r3 {
  transform: rotateX(60deg) rotateY(120deg);
  border-color: var(--accent-blue);
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.4));
}

.core-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 70px 30px rgba(0, 240, 255, 0.5);
  animation: pulse 3s infinite ease-in-out;
}

@keyframes rotate {
  100% {
    transform: rotateY(360deg) rotateX(10deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.feature-list li i {
  color: var(--accent-purple);
}

.about-stats-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.icon-cyan {
  color: var(--accent-cyan);
}

.icon-purple {
  color: var(--accent-purple);
}

/* Solutions Grid */
.section-header {
  margin-bottom: 4rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.solution-card h3 {
  margin: 1.5rem 0 0.5rem 0;
  font-size: 1.5rem;
}

.solution-card p {
  color: var(--text-muted);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.gradient-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), transparent);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.gradient-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), transparent);
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.gradient-purple {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.2), transparent);
  border: 1px solid rgba(176, 38, 255, 0.4);
}

/* CTA */
.cta-banner {
  padding: 4rem 2rem;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1), transparent);
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-input-group {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
}

.glass-input {
  flex: 1;
  padding: 1rem;
  border-radius: 99px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  outline: none;
  font-family: var(--font-family);
}

.glass-input:focus {
  border-color: var(--accent-cyan);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-group h4 {
  margin-bottom: 1rem;
}

.link-group a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.link-group a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-content {
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(3, 5, 9, 0.98);
    backdrop-filter: var(--blur);
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    align-items: center;
    gap: 1.5rem;
    box-sizing: border-box;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-container>.btn {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    color: white;
  }

  .cta-input-group {
    flex-direction: column;
    width: 100%;
  }

  .mock-globe {
    transform: scale(0.8);
  }
}

/* Certification Badges Inline */
.certification-badges-inline {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.certification-badges-inline img {
  height: 32px;
  object-fit: contain;
  background: transparent;
}

@media (max-width: 900px) {
  .certification-badges-inline img {
    height: 18px;
  }

  .certification-badges-inline {
    gap: 0.4rem;
  }

  .logo span {
    margin-right: 0 !important;
    font-size: 1.1rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .container,
  .nav-container {
    padding: 0 1rem;
  }

  .mock-globe {
    transform: scale(0.65);
  }
}

/* Portfolio CSS */
.portfolio-grid {
  display: grid;
  gap: 4rem;
  padding-bottom: 2rem;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.portfolio-item:nth-child(even) {
  direction: rtl;
}

.portfolio-item:nth-child(even)>div {
  direction: ltr;
}

.portfolio-img-placeholder {
  width: 100%;
  height: 350px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--accent-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.portfolio-content h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-top: 0.5rem;
}

.portfolio-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.85rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
}

@media (max-width: 900px) {
  .portfolio-item {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-item:nth-child(even) {
    direction: ltr;
  }
}