/* ============================================
   KPMobTech - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary: #4d82f6;
  --primary-light: #6b9aff;
  --primary-dark: #3a6cd9;
  --navy: #1a2233;
  --navy-light: #242f45;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --hero-img: url('/assets/brands/kpmt/images/hero-image.avif');
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container, .container-narrow {
    padding: 0 1.5rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-white {
  background-color: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-xl);
}

.btn-white:hover {
  background-color: var(--gray-100);
  box-shadow: var(--shadow-2xl);
}

.btn-dark {
  background-color: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--navy-light);
}

.btn-full {
  width: 100%;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.header.scrolled {
  background-color: var(--navy);
}

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

/* .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
} */

/* .logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
} */

/* .logo-text small {
  display: block;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary);
} */

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Nav Open State */
.nav.nav-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--navy);
  padding: 1.5rem;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.nav.nav-open .nav-link {
  padding: 0.5rem 0;
  font-size: 1rem;
}

.nav.nav-open .btn {
  width: fit-content;
  margin-top: 0.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.95) 0%, rgba(16, 24, 40, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Scroll Indicator */
.scroll-indicator {
  position: relative;
  z-index: 10;
  margin: 0 auto 2rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s ease;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  color: var(--white);
}

.scroll-indicator svg {
  display: block;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--white);
}

.section-muted {
  background-color: var(--gray-50);
}

/* What We Do - Light Blue Background */
.section-blue {
  background-color: rgba(77, 130, 246, 0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-divider {
  width: 2.5rem;
  height: 3px;
  background-color: var(--primary);
  margin: 0 auto 0.75rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--gray-500);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header-left {
  text-align: left;
  margin-bottom: 2rem;
}

.section-title-left {
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-title-left {
    font-size: 2rem;
  }
}

.section-subtitle-left {
  font-size: 0.875rem;
  color: var(--gray-500);
  max-width: 32rem;
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  text-align: left;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 130, 246, 0.1);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.0625rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* Portfolio Grid - White Background */
.portfolio-section {
  background-color: var(--white);
  padding: 4rem 0;
}

.portfolio-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.portfolio-image {
  position: relative;
  aspect-ratio: 4/5;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 34, 51, 0.9) 0%, rgba(26, 34, 51, 0.3) 100%);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.portfolio-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.0625rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.portfolio-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  position: relative;
  background-color: var(--navy);
  padding: 4rem 0;
}

.about-container {
  position: relative;
  z-index: 10;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(77, 130, 246, 0.2);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.about-title {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .about-title {
    font-size: 2.25rem;
  }
}

.about-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  line-height: 1.7;
  font-size: 0.875rem;
}

/* Features List - Vertical Layout */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.feature-check {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 130, 246, 0.2);
  color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-item span {
  color: var(--white);
  font-weight: 500;
  font-size: 0.875rem;
}

/* About Image with Stats Badge */
.about-image-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: cover;
}

/* Stats Badge - Bottom Left of Image */
.stats-badge {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
  .stats-badge {
    left: -1rem;
    transform: translateX(0);
  }
}

.stats-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stats-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.125rem;
}

/* ============================================
   Contact Section - Centered Layout
   ============================================ */
.contact-section {
  background-color: var(--gray-100);
  padding: 4rem 0;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-grid {
  display: grid;
  gap: 0;
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
  }
}

.contact-info {
  background-color: var(--navy);
  padding: 2rem;
  color: var(--white);
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 130, 246, 0.2);
  color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.125rem;
}

.contact-value {
  font-weight: 500;
  font-size: 0.875rem;
}

.contact-form-wrapper {
  padding: 2rem;
  display: flex;
  align-items: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--gray-900);
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   Footer - White Background
   ============================================ */
.footer {
  background-color: var(--white);
  color: var(--gray-800);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.logo-text-dark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
}

.footer-text {
  color: var(--gray-500);
  font-size: 0.8125rem;
  max-width: 18rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--gray-500);
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.75rem;
  color: var(--gray-400);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.white-icon {
  filter: brightness(0) invert(1);
}