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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  color: #1a365d;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

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

.article-page {
  margin: 6rem auto;
  max-width: 840px;
  padding: 50px;
  background: white;
  border-radius: 32px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.article-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgb(1, 104, 155), #06b6d4);
}

.article-page header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #1a365d;
}

.article-body p {
  margin: 0;
  text-indent: 0;
  color: #334155;
  line-height: 2;
}

.article-body p:empty::before {
  content: "\00a0";
}

.article-body h2,
.article-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 0;
  color: #1a365d;
}

.article-body a {
  color: rgb(1, 104, 155);
  text-decoration: underline;
}

/* Floating Navigation */
nav {
  position: fixed;
  top: 20px;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  padding: 10px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li:first-child {
  margin-right: auto;
}

nav a {
  text-decoration: none;
  color: #1a365d;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: rgb(1, 104, 155);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, rgb(1, 104, 155), #06b6d4);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: rgb(1, 104, 155) !important;
}

.nav-child a {
  color: rgb(1, 104, 155);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #1a365d;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-menu-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url("/static/images/background_image.png") center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

.floating-elements::before {
  width: 200px;
  height: 200px;
  top: 32%;
  right: 10%;
  animation-delay: -2s;
}

.floating-elements::after {
  width: 300px;
  height: 300px;
  top: 12%;
  left: 10%;
  animation-delay: -8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(15px) rotate(240deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

/* Services Section */
.services {
  padding: 100px 0;
  background: #f8fafc;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  /*color: rgb(1, 104, 155);*/
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, rgb(1, 104, 155), #06b6d4);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  margin-top: 60px;
}

.products-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.products-heading .section-title {
  margin-bottom: 0;
}

.service-card,
.stat,
.tech-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.service-card.is-visible,
.stat.is-visible,
.tech-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(1, 104, 155), #06b6d4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgb(1, 104, 155), #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
}

.service-icon img {
  width: 85%; /* or adjust to ~60% if too small */
  height: 85%;
  object-fit: contain;
  display: block;
}

.service-icon::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a365d;
}

.service-card p {
  color: #64748b;
  line-height: 1.7;
}

.products-badge {
  display: flex;
  justify-content: center;
}

.products-badge img {
  width: min(140px, 34vw);
  height: auto;
  display: block;
}

/* About Section */
.about {
  padding: 100px 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1a365d;
}

.about-text p {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-text ul {
  padding-left: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  display: block;
}

.stat-label {
  color: #64748b;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-visual {
  position: relative;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-item {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 25px 15px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.tech-item:hover {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  transform: scale(1.05);
}

.tech-item span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 5px;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, rgb(1, 104, 155) 0%, #0f172a 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}

.contact-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item span {
  font-size: 1.2rem;
}

/* Footer */
footer {
  background: #0f172a;
  padding: 40px 0;
  text-align: center;
  color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Show hamburger button on mobile */
  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }

  /* Show overlay when menu is open */
  .mobile-menu-overlay {
    display: block;
  }

  /* Mobile navigation styles */
  nav {
    padding: 15px 20px;
    top: 0;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    display: contents;
  }

  /* Keep first item (Waterline IT) visible in normal flow */
  .nav-links li:first-child {
    position: relative;
    margin-right: auto;
    padding: 0;
    border-bottom: none;
    order: 1;
  }

  .nav-links li:first-child a {
    padding: 0;
    font-size: 1.2rem;
  }

  /* Create a fixed positioned container for other menu items */
  .nav-links li:not(:first-child) {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: auto;
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    pointer-events: none;
  }

  /* Position each item in the slide-out menu */
  .nav-links li:nth-child(2) {
    top: 80px;
  }

  .nav-links li:nth-child(3) {
    top: 145px;
  }

  .nav-links li:nth-child(4) {
    top: 210px;
  }

  .nav-links li:nth-child(5) {
    top: 275px;
  }

  /* Slide in items when menu is open */
  .nav-links.is-open li:not(:first-child) {
    right: 0;
    pointer-events: auto;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    font-size: 1.1rem;
    padding: 5px 0;
  }

  .nav-links a::after {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

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

  .products-heading {
    flex-wrap: wrap;
    gap: 18px;
  }

  .products-badge img {
    width: min(140px, 42vw);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info {
    flex-direction: column;
  }
}
