/* Base Reset & Global Styles
================================= */
:root {
  --brand-blue: #2980b9;
  --brand-deep: #189ab4;
  --dark-blue: #2c3e50;
  --text-dark: #222;
  --text-muted: #666;
  --muted: #666;
  --bg-light: #fff;
  --panel: #f5f5f5;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --bg: var(--bg-light);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: #f9f9f9;
  margin: 0;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Navbar Styles
================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Hamburger on left, logo centered, nav-links on right */
  padding: 0.8rem 1rem;
  background-color: var(--bg-light);
  box-shadow: 0 2px 5px var(--shadow-light);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 48px; /* Compact, matches Lenovo */
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  justify-content: center; /* Center logo and bot-container */
}

.navbar .logo img {
  height: 32px;
  display: block;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar .nav-links ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar a:hover,
.navbar a:focus-visible {
  color: var(--brand-blue);
  text-decoration: underline;
  transform: translateY(-2px);
}

/* Bot Container */
.bot-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-image {
  width: 28px;
  height: auto;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.cloud-text {
  font-size: 0.7rem;
  color: #222;
  font-weight: 600;
  text-shadow: 0 0 2px rgba(42, 139, 255, 0.2);
  line-height: 1.2;
}

/* Hamburger Button */
.hamburger {
  display: none; /* Hidden on desktop */
  background: none; /* No background, like Lenovo */
  color: #000; /* Black icon */
  border: none;
  font-size: 1.5rem; /* Slightly larger for clarity */
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s ease;
  order: -1; /* Places hamburger before logo */
}

.hamburger:hover,
.hamburger:focus {
  transform: scale(1.1);
  outline: none;
}

/* Mobile Menu */
.mobile-menu {
  display: block;
  position: fixed;
  top: 48px;
  left: 0;
  width: 100%;
  background-color: var(--bg-light);
  overflow: hidden;
  height: 0; /* collapsed */
  transition: height 0.3s ease; /* animate open/close */
  box-shadow: 0 2px 5px var(--shadow-light);
  z-index: 1001;
}

.mobile-menu.active {
  /* no fixed height here — JS will set it */
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mobile-menu li a {
  font-size: 1rem;
  color: var(--dark-blue);
  text-decoration: none;
  padding: 0;
  display: block;
}

.mobile-menu li a:hover,
.mobile-menu li a:focus {
  color: var(--brand-blue);
  background-color: #f7fafd;
  border-radius: 4px;
}

/* Social Icons */
.navbar-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.navbar-social img {
  height: 18px;
  width: auto;
  transition: filter 0.3s ease;
}

.navbar-social a:hover img,
.navbar-social a:focus img {
  filter: brightness(1.2);
}

.mobile-menu .navbar-social {
  padding: 0.5rem 1.5rem;
  justify-content: left;
}
/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    padding: 0.6rem 1rem;
    height: 46px;
    justify-content: space-between; /* Keep hamburger on left, logo centered */
  }

  .navbar .nav-links {
    display: none; /* Hide desktop links */
  }

  .hamburger {
    display: block; /* Show hamburger on mobile */
  }

  .navbar .logo img {
    height: 28px;
  }

  .bot-container {
    gap: 6px;
  }

  .bot-image {
    width: 24px;
  }

  .cloud-text {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0.8rem;
    height: 44px;
  }

  .navbar .logo img {
    height: 24px;
  }

  .bot-image {
    width: 20px;
  }

  .cloud-text {
    font-size: 0.6rem;
  }

  .mobile-menu.active {
    height: 240px;
  }
}

/* Section Wrapper
================================= */
.section {
  padding: 5rem 1.5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  scroll-margin-top: 48px; /* Matches navbar height */
}

.content {
  max-width: 1000px;
  text-align: center;
}

/* Home Page
================================= */
.main-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.2;
}
.tagline {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  margin-top: 1.2rem;
}

.intro-message {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.strong-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: 1.2rem;
  line-height: 1.5;
}

.subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  color: #fff;
  background-color: var(--brand-blue);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(42, 139, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1a6edd 0%, #0f8299 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(42, 139, 255, 0.4);
}

.btn-primary.secondary {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.btn-primary.secondary:hover,
.btn-primary.secondary:focus {
  background: linear-gradient(135deg, #2980b9 0%, #1a6edd 100%);
}

/* Ensure contrast in Windows High Contrast Mode */
@media (forced-colors: active) {
  .btn-primary,
  .btn-primary.secondary {
    background-color: ButtonFace !important;
    color: ButtonText !important;
    border: 2px solid ButtonBorder !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-primary,
  .btn-primary.secondary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Root Variables */
:root {
  --brand-blue: #2980b9;
  --brand-deep: #189ab4;
  --dark-blue: #2c3e50;
  --text-muted: #666;
  --bg-light: #fff;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.2rem;
  margin-top: 2.5rem;
  padding: 1.2rem;
  background-color: #f7fafd;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 120, 255, 0.1);
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
  padding: 0.5rem;
}

.flow-icon {
  margin-bottom: 0.3rem;
}

.flow-icon-img {
  width: 32px;
  height: 32px;
  fill: var(--dark-blue);
}

.flow-step:nth-child(1) .flow-icon-img {
  fill: var(--brand-blue);
} /* PC / Laptop */
.flow-step:nth-child(3) .flow-icon-img {
  fill: var(--brand-deep);
} /* Sync Folders */
.flow-step:nth-child(5) .flow-icon-img {
  fill: #1a6edd;
} /* Local Network */
.flow-step:nth-child(7) .flow-icon-img {
  fill: var(--dark-blue);
} /* Any Device */

.flow-title {
  font-weight: bold;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.flow-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-arrow {
  display: flex;
  align-items: center;
}

.flow-arrow-img {
  width: 24px;
  height: 24px;
  fill: #999;
}

@media (max-width: 768px) {
  .flow-diagram {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: center;
  }

  .flow-step {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .flow-icon-img {
    width: 28px;
    height: 28px;
  }

  .flow-title {
    font-size: 0.9rem;
  }

  .flow-sub {
    font-size: 0.75rem;
    max-width: 90%;
  }

  .flow-arrow-img {
    width: 20px;
    height: 20px;
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .flow-diagram {
    padding: 1rem;
    gap: 1.2rem;
  }

  .flow-step {
    padding: 0.8rem;
  }

  .flow-icon-img {
    width: 24px;
    height: 24px;
  }

  .flow-title {
    font-size: 0.85rem;
  }

  .flow-sub {
    font-size: 0.7rem;
  }

  .flow-arrow-img {
    width: 18px;
    height: 18px;
  }
}
/* About Section
================================= */
.akserver-section {
  background-color: var(--panel);
  padding: 5rem 1.5rem;
  font-family: var(--font-family);
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.5;
}

.split-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.left-column {
  flex: 1;
  min-width: 280px;
  padding: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
}

.left-column .intro {
  font-weight: bold;
  font-size: 1.15rem;
  margin-bottom: 15px;
  color: var(--brand-deep);
  line-height: 1.5;
}

.problems li,
.benefits li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.left-column ul,
.left-column ol {
  padding-left: 1.2rem;
  margin-left: 0;
}

.problems,
.benefits {
  padding-left: 1.2rem;
}

.benefits {
  margin-top: 15px;
}

.solution {
  font-weight: 500;
  color: #006778;
  margin: 12px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.punchline {
  margin-top: 25px;
  font-style: italic;
  color: var(--brand-deep);
  font-size: 0.95rem;
  line-height: 1.6;
}

.right-column {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-card,
.featureleft-card {
  background-color: var(--panel);
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.feature-card:hover,
.featureleft-card:hover {
  transform: translateY(-3px);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--brand-deep);
  font-size: 1.1rem;
  line-height: 1.5;
}

.feature-card p {
  margin: 6px 0 0;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Features Section
================================= */
.feature-alt,
.feature-minimal,
.feature-bold,
.feature-stripe {
  max-width: 850px;
  margin: 3rem auto;
  font-family: var(--font-family);
  color: var(--text-dark);
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 3px 14px var(--shadow-light);
  padding: 1rem 1.5rem;
  border-left: 8px solid var(--dark-blue);
  outline-offset: 3px;
  transition: box-shadow 0.3s ease;
  min-height: auto;
  width: 100%;
}

.feature-item:focus-within,
.feature-item:hover {
  box-shadow: 0 5px 20px var(--shadow-hover);
  outline: none;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--dark-blue);
  user-select: none;
  flex-shrink: 0;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-body h3 {
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--dark-blue);
}

.feature-stripe {
  max-width: 1000px;
  margin: 3rem auto;
  font-family: var(--font-family);
  color: var(--text-dark);
}

.summary {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #4a4a4a;
}

details summary {
  list-style: none;
  cursor: pointer;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
  text-decoration: underline;
  outline: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: none;
}

details p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text-muted);
  padding-left: 0.2rem;
}

.feature-item:not(:last-child) {
  margin-bottom: 1.5rem;
}

/* How It Works Section
================================= */
.how-it-works {
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 2.5rem;
  text-align: center;
  line-height: 1.5;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  background: var(--panel);
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.step-inner {
  display: flex;
  align-items: flex-start;
}

.step-number {
  font-size: 1.8rem;
  background: var(--brand-blue);
  color: #fff;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-right: 1.2rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 1.1rem;
  line-height: 1.5;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Use Case Carousel
================================= */
.akserver-usecases-section {
  background-color: var(--panel);
  padding: 5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.akserver-usecases-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.5;
}

.carousel-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 10px 10px 10px 0;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 10px;
}

.carousel-card {
  min-width: auto;
  background-color: var(--panel);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.carousel-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--brand-deep);
  line-height: 1.5;
}

.carousel-card p {
  color: #333;
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.6;
}

/* Contact Section
================================= */
.contact {
  background: #f9f9f9;
  padding-bottom: 5rem;
}

.contact .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 0.95rem;
  color: #333;
  outline: none;
  line-height: 1.6;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 5px rgba(42, 139, 255, 0.2);
}

.contact-form button {
  background-color: var(--brand-blue);
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #1a6edd;
}

/* Footer
================================= */
.footer {
  background-color: var(--bg-light);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-top: 1px solid #ddd;
  font-family: var(--font-family);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: #1a6edd;
  text-decoration: underline;
  outline: none;
}

/* Social Media Icons in Footer */
.footer-container nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.6rem;
}

.footer-container nav a img {
  width: 24px;
  height: 24px;
  transition: filter 0.3s ease;
}

.footer-container nav a:hover img,
.footer-container nav a:focus img {
  filter: brightness(1.2);
}

/* Responsive Footer Adjustments */
@media (max-width: 768px) {
  .footer-container p {
    display: flex; /* stack items */
    flex-direction: column; /* vertical layout */
    align-items: center; /* center horizontally */
    text-align: center; /* center text */
    gap: 6px; /* spacing between logo, text, and link */
    color: #000; /* black for mobile text */
  }

  .footer-container nav {
    order: -1; /* move social icons above text */
    justify-content: center; /* center icons */
  }

  .footer-container nav a img {
    height: 28px; /* larger for mobile tap */
    width: auto;
  }

  .footer-container {
    gap: 12px; /* breathing room for stacked items */
  }
}

/* Responsive Styles
================================= */
@media (max-width: 992px) {
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-card {
    min-width: 80%;
  }

  .flow-diagram {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }

  .flow-step {
    width: 45%;
  }

  .flow-arrow {
    display: flex;
  }

  .bot-container {
    gap: 6px;
  }
}

@media (max-width: 700px) {
  .feature-row {
    flex-direction: column;
  }

  .feature-icon {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .navbar nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .main-title {
    font-size: 1.7rem;
  }

  .tagline {
    font-size: 1rem;
  }
}

/* Social media icons */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.navbar-social img {
  height: 20px;
  width: auto;
  display: block;
  vertical-align: middle;
  transition: filter 0.3s ease;
}

.navbar-social a:hover img,
.navbar-social a:focus img {
  filter: grayscale(0%);
}

/* Scrollbar styles for WebKit browsers */
.carousel-container::-webkit-scrollbar {
  height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
  background: #eee;
}

.carousel-container::-webkit-scrollbar-thumb {
  background-color: var(--brand-blue);
  border-radius: 10px;
}

/* Accessibility helper */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

@media (min-width: 769px) {
  .navbar .logo {
    justify-content: flex-start; /* Move logo + bot to the left */
  }
}
.inline-icon {
  width: 1em; /* exactly matches text height */
  height: 1em;
  vertical-align: -0.125em; /* fine-tuned for bold baseline */
  margin-left: 0.3em; /* space after text */
}
.download-icon {
  width: 1em; /* Matches font size */
  height: 1em; /* Keeps it square */
  vertical-align: -0.15em; /* Adjusts vertical alignment */
  margin-right: 0.4em; /* Space between icon & text */
}
