@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@700&display=swap");

/* --- Global Styles & Variables --- */
:root {
  --primary-color: #0066cc;
  --secondary-color: #004499;
  --accent-color: #00d4ff;
  --success-color: #00c896;
  --warning-color: #ff9500;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --text-muted: #999999;
  --bg-light: #f8fbff;
  --bg-white: #ffffff;
  --bg-dark: #0a0a0a;
  --border-color: #e6f0ff;
  --shadow-light: 0 4px 20px rgba(0, 102, 204, 0.1);
  --shadow-medium: 0 8px 40px rgba(0, 102, 204, 0.15);
  --shadow-heavy: 0 20px 60px rgba(0, 102, 204, 0.2);
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
  --gradient-secondary: linear-gradient(135deg, #004499 0%, #0066cc 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

/* --- Loading Animation --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- Enhanced Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
  box-shadow: var(--shadow-light);
  background: rgba(255, 255, 255, 0.95);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 80px; /* Increased logo size */
  width: auto;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}
.nav-menu a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}
.nav-menu a:hover::after {
  width: 100%;
}
.nav-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.mobile-menu-toggle,
.mobile-menu-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}
.mobile-nav {
  display: none;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #0066cc 0%, #004499 50%, #0a0a0a 100%);
  color: white;
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(0, 212, 255, 0.2) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 102, 204, 0.2) 0%,
      transparent 40%
    );
  animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}
.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text h1 {
  font-size: 4.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, #00d4ff 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text .subheadline {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
  color: #e6f0ff;
  max-width: 600px;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
}
.stat-item {
  text-align: left;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-color);
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* --- NEW Hero Visual Animation --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-animated {
  width: 100%;
  max-width: 450px;
}
.hero-visual-animated img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  animation:
    hero-logo-fade-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards,
    hero-logo-pulse 6s ease-in-out infinite 1.5s;
  filter: drop-shadow(0px 20px 50px rgba(0, 212, 255, 0.3));
}

@keyframes hero-logo-fade-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-logo-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Buttons --- */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--bg-white);
  color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* --- Trust Indicators --- */
.trust-section {
  background: var(--bg-light);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
}
.trust-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.trust-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}
.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}
.trust-badge i {
  color: var(--primary-color);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Services Section --- */
.services {
  background: var(--bg-white);
  padding: 100px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}
.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
}
.service-card:hover::before {
  transform: translateX(0);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}
.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 2rem;
}
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.service-features {
  list-style: none;
}
.service-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
}
.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* --- Chatbot Offer Section --- */
.chatbot-offer-section {
  background: var(--gradient-dark);
  padding: 80px 0;
  color: white;
}
.chatbot-offer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.chatbot-offer-icon {
  font-size: 4rem;
  color: var(--accent-color);
  flex-shrink: 0;
}
.chatbot-offer-text {
  flex-grow: 1;
}
.chatbot-offer-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.chatbot-offer-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 650px;
}
.chatbot-offer-cta {
  flex-shrink: 0;
}
.chatbot-offer-cta .btn-primary {
  background-color: var(--accent-color);
  color: var(--text-dark);
  border: 2px solid var(--accent-color);
}
.chatbot-offer-cta .btn-primary:hover {
  background-color: transparent;
  color: var(--accent-color);
}

/* --- Portfolio Section --- */
.portfolio {
  background: var(--bg-light);
  padding: 100px 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}
.portfolio-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}
.portfolio-header {
  padding: 2rem;
  background: var(--gradient-primary);
  color: white;
}
.portfolio-header h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.portfolio-header p {
  opacity: 0.9;
  font-size: 1rem;
}
.portfolio-body {
  padding: 2rem;
  flex-grow: 1;
}
.portfolio-body p {
  margin-bottom: 2rem;
}
.portfolio-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: auto;
}
.metric {
  text-align: center;
}
.metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
}
.metric-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  text-transform: uppercase;
}

/* --- Testimonials Section --- */
.testimonials {
  background: var(--bg-white);
  padding: 100px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}
.testimonial-card {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 20px;
  border-left: 6px solid var(--primary-color);
  position: relative;
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 8rem;
  color: var(--border-color);
  font-family: serif;
  z-index: 0;
}
.testimonial-text {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}
.author-info h4 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--gradient-dark);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(0, 212, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(0, 102, 204, 0.15) 0%,
      transparent 50%
    );
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 80px 0 30px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-section h3 {
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
}
.footer-section p {
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer-section a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-section a:hover {
  color: var(--accent-color);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}
.social-links a:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}
.footer-bottom a {
  color: #ccc;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* --- Animations --- */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .hero-visual {
    order: 1;
    margin-bottom: 3rem;
  }
  .hero-text .subheadline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    justify-content: center;
  }
  .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .mobile-nav.active {
    transform: translateX(0);
  }
  .mobile-menu-close {
    display: block;
    position: absolute;
    top: 2rem;
    right: 2rem;
  }
  .mobile-nav-menu {
    list-style: none;
    text-align: center;
  }
  .mobile-nav-menu li {
    margin: 2rem 0;
  }
  .mobile-nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
  }
  .mobile-nav-cta {
    margin-top: 2rem;
  }
  .hero-text h1 {
    font-size: 3rem;
  }
  .hero-visual-animated {
    max-width: 350px;
    margin: 0 auto;
  }
  .section-title,
  .cta-title {
    font-size: 2.5rem;
  }
  .chatbot-offer-title {
    font-size: 2.2rem;
  }
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .footer-section:first-child,
  .footer-section:last-child {
    grid-column: 1 / -1;
  }
  .chatbot-offer-content {
    flex-direction: column;
    text-align: center;
  }
  .chatbot-offer-cta {
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem; /* Maintained padding */
  }
  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  .hero-text .subheadline {
    font-size: 1.1rem;
  }
  .hero-visual-animated {
    max-width: 280px;
  }
  .hero-stats {
    gap: 2rem; /* Adjusted gap */
    flex-direction: column;
    align-items: center; /* Center stats when stacked */
  }
  .stat-item {
    text-align: center;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }
  .section-title,
  .cta-title {
    font-size: 2.2rem; /* Slightly larger base */
  }
  .chatbot-offer-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1.1rem;
  }
  .service-card,
  .testimonial-card {
    padding: 2rem;
  }
  .portfolio-header,
  .portfolio-body {
    padding: 1.5rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  /* Stacking the portfolio metrics for better readability */
  .portfolio-metrics {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }
  .metric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }
  .metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .metric-value {
    text-align: right;
  }
  /* Stacking trust badges cleanly */
  .trust-badges {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .trust-badge {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-section {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 1rem; /* Reduced padding for more content space */
  }
  .hero-text h1 {
    font-size: 2.1rem; /* Further reduced font size */
  }
  .section-title,
  .cta-title {
    font-size: 1.9rem; /* Further reduced font size */
  }
  .chatbot-offer-title {
    font-size: 1.7rem;
  }
  .portfolio-header h3 {
    font-size: 1.5rem;
  }
  .metric-value {
    font-size: 1.8rem;
  }
  .metric-label {
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: left; /* Ensure label is aligned left */
  }
  .service-card,
  .testimonial-card,
  .portfolio-header,
  .portfolio-body {
    padding: 1.5rem; /* Reduced padding on cards */
  }
}
