/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: #1f2033;
  background:
    radial-gradient(circle at top right, rgba(125, 90, 255, .08), transparent 35%),
    linear-gradient(to bottom, #f8f9ff, #f6f7fc, #ffffff);
  overflow-x: hidden;
}

/* subtle IT grid pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(120, 100, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 100, 255, .03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}


/* =========================
   HEADER
========================= */

.navigation-bar {
  width: 100%;
}

.header {
  width: 100%;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(120, 100, 255, .08);
}

.header-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.onepm-logo-box,
.buttons {
  position: relative;
  z-index: 2;
}

.onepm-logo-box {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.onepm-logo {
  width: 420px;
  max-width: 90vw;
  animation: logoFloat 5s ease-in-out infinite;
  display: block;
}

.buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}


/* =========================
   BUTTONS
========================= */

.buttons button {
  padding: 15px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  background: white;
  color: #4d5067;
  box-shadow: 0 8px 25px rgba(80, 70, 160, .08);
  transition: transform .4s ease, box-shadow .4s ease, background .4s ease;
}

.buttons button:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #7356ff, #b283ff);
  color: white;
  box-shadow: 0 14px 35px rgba(120, 90, 255, .35);
}

.buttons button:active {
  transform: scale(.97);
}


/* =========================
   LOGO ANIMATION
========================= */

@keyframes logoFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}


/* =========================
   MOBILE HEADER
========================= */

@media (max-width: 768px) {
  .header {
    padding: 20px;
    min-height: 180px;
  }

  .onepm-logo {
    width: 260px;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
  }

  .buttons button {
    width: 220px;
  }
}


/* =========================
   SLIDESHOW
========================= */

.slideshow-container {
  width: 100%;
  height: 710px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #080814, #17172d, #09090f);
  box-shadow: inset 0 0 120px rgba(110, 80, 255, .2);
}

.slideshow-container::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, white, transparent);
  z-index: 5;
}

.slideshow-container::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to top, white, transparent);
  z-index: 5;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-text {
  position: absolute;
  left: 5%;
  bottom: 10%;
  padding: 30px;
  max-width: 500px;
  border-radius: 20px;
  color: white;
  background: rgba(20, 20, 35, .55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(180, 160, 255, .1);
  box-shadow: 0 0 50px rgba(120, 80, 255, .15);
  transform: translateY(50px);
  opacity: 0;
  transition: all 1.5s ease;
  z-index: 3;
}

.slide-text h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.1;
}

.slide-text p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}

.slide.active .slide-text {
  transform: translateY(0);
  opacity: 1;
}


/* =========================
   SOLUTIONS
========================= */

.our-solutions {
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  margin-top: 90px;
  margin-bottom: 70px;
  color: #232442;
  position: relative;
}

.our-solutions::after {
  content: "";
  display: block;
  width: 110px;
  height: 5px;
  margin: 18px auto;
  border-radius: 20px;
  background: linear-gradient(90deg, #6f56ff, #be8cff);
}

.solutions-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 35px;
  max-width: 1800px;
  margin: 0 auto 100px;
  padding: 0 40px;
}

.commercial-section,
.residential-section,
.hotel-section {
  flex: 1;
  min-width: 0;
  padding: 15px;
  border-radius: 30px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(120, 100, 255, .08);
  box-shadow: 0 10px 35px rgba(90, 70, 180, .08);
  transition: .45s;
  cursor: pointer;
}

.commercial-section:hover,
.residential-section:hover,
.hotel-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(120, 80, 255, .15);
  border-color: rgba(120, 80, 255, .25);
}

.solution-video {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  transition: .5s;
}

.commercial-section:hover .solution-video,
.residential-section:hover .solution-video,
.hotel-section:hover .solution-video {
  transform: scale(1.04);
}

.commercial-title,
.residential-title,
.hotel-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 15px;
  color: #2c2d4e;
  transition: .4s;
}

.commercial-section:hover .commercial-title,
.residential-section:hover .residential-title,
.hotel-section:hover .hotel-title {
  color: #7356ff;
}

@media (max-width: 1100px) {
  .solutions-container {
    flex-direction: column;
  }
}

.solution-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: block;
}


/* =========================
   OUR PRODUCTS BUTTON
========================= */

.our-products-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 40px auto;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(90deg, #7356ff, #b483ff);
  color: white;
  box-shadow: 0 8px 25px rgba(115, 86, 255, .25);
  transition: transform .35s ease, box-shadow .35s ease;
  border: none;
  cursor: pointer;
}

.our-products-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(115, 86, 255, .4);
}

.our-products-btn:active {
  transform: scale(.97);
}


/* =========================
   PARTNERS
========================= */

.partners-section {
  max-width: 1400px;
  margin: 60px auto 120px;
  padding: 0 60px;
}

.partners-header {
  text-align: center;
  margin-bottom: 55px;
}

.partners-tag {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #7d5bff;
  background: rgba(125, 91, 255, .08);
  margin-bottom: 20px;
}

.partners-title {
  font-size: 46px;
  color: #232542;
  font-weight: 700;
}

/* =========================
   PARTNER BANNER
========================= */

.partner-banner {
  position: relative;
  display: block;
  width: 100%;
  height: 470px;
  overflow: hidden;
  border-radius: 35px;
  text-decoration: none;
  background: white;
  box-shadow: 0 20px 60px rgba(90, 70, 180, .12);
  transition: transform .5s ease, box-shadow .5s ease;
}

.partner-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: bannerFloat 12s ease-in-out infinite;
}

.partner-banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(115, 86, 255, .22);
}

.partner-banner:hover img {
  animation-play-state: paused;
}

@keyframes bannerFloat {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .partners-section {
    padding: 0 20px;
    margin: 40px auto 80px;
  }

  .partners-title {
    font-size: 28px;
  }

  .partner-banner {
    height: 220px;
    border-radius: 20px;
  }
}


/* =========================
   ABOUT COMPANY
========================= */

.about-company {
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
}

.about-company::before {
  content: "";
  position: absolute;
  right: -200px;
  top: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(rgba(120, 90, 255, .08), transparent 70%);
}

.about-wrapper {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-tag {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #7d5bff;
  background: rgba(125, 91, 255, .08);
  margin-bottom: 25px;
}

.about-title {
  font-size: 58px;
  line-height: 1.1;
  font-weight: 700;
  color: #232542;
  margin-bottom: 25px;
}

.about-title span {
  background: linear-gradient(90deg, #7356ff, #b483ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.about-description {
  font-size: 17px;
  line-height: 2;
  color: #666f87;
  max-width: 600px;
  margin-bottom: 40px;
}

.company-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.stat-box {
  background: white;
  padding: 25px;
  min-width: 140px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(80, 70, 160, .08);
  border: 1px solid rgba(120, 100, 255, .08);
  transition: .4s;
  font-size: 15px;
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(120, 90, 255, .15);
}

.stat-box h3 {
  font-size: 20px;
  color: #7356ff;
  margin-bottom: 6px;
}

.stat-box p {
  color: #6e7289;
}

.location-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: white;
  border-radius: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(120, 100, 255, .08);
  box-shadow: 0 10px 30px rgba(80, 70, 160, .08);
}

.location-icon {
  font-size: 35px;
}

.location-card h4 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #252542;
}

.location-card p {
  color: #737a90;
}

.map-button {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #7356ff, #b283ff);
  transition: .4s;
}

.map-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 35px rgba(120, 90, 255, .3);
}

.about-images {
  position: relative;
  height: 650px;
}

.img-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 35px;
  box-shadow: 0 20px 60px rgba(100, 70, 170, .15);
}

.img-small {
  position: absolute;
  width: 230px;
  height: 180px;
  object-fit: cover;
  border-radius: 25px;
  border: 8px solid white;
  box-shadow: 0 15px 40px rgba(100, 70, 170, .2);
  transition: .5s;
}

.img-small:hover {
  transform: scale(1.05);
}

.top {
  right: -50px;
  top: 60px;
}

.bottom {
  left: -50px;
  bottom: 70px;
}

@media (max-width: 1000px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .about-images {
    height: 500px;
    margin-top: 40px;
  }

  .about-title {
    font-size: 42px;
  }

  .top { right: 0; }
  .bottom { left: 0; }
}


/* =========================
   CONTACT
========================= */

.contact-section {
  background: linear-gradient(180deg, #fafaff, #f2f0ff);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  max-width: 860px;
  margin: auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 55px;
  animation: fadeUp .7s ease both;
}

.contact-eyebrow {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
  color: #7d5bff;
}

.contact-title {
  font-size: 42px;
  font-weight: 700;
  color: #24243f;
  line-height: 1.2;
}

.contact-title span {
  color: #7d5bff;
}

.contact-subtitle {
  margin-top: 15px;
  font-size: 16px;
  color: #737892;
  line-height: 1.7;
}

.contact-card {
  background: white;
  border-radius: 30px;
  padding: 48px 40px;
  box-shadow: 0 15px 50px rgba(80, 70, 160, .08);
  border: 1px solid rgba(120, 100, 255, .08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6e7390;
}

input,
textarea,
select {
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px solid #e5e8f7;
  background: #fafaff;
  font-size: 14px;
  outline: none;
  transition: .3s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #7d5bff;
  box-shadow: 0 0 0 4px rgba(125, 91, 255, .12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-group {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkbox-group input {
  accent-color: #7d5bff;
}

.checkbox-label {
  font-size: 14px;
  color: #6a7087;
  line-height: 1.6;
}

.checkbox-label a {
  color: #7d5bff;
  text-decoration: none;
}

.submit-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.submit-btn {
  padding: 15px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #7356ff, #b283ff);
  transition: .4s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(120, 90, 255, .3);
}

.response-time {
  font-size: 12px;
  color: #8b8fa3;
}

.success-msg {
  display: none;
  text-align: center;
  padding: 30px;
}

.success-msg.visible {
  display: block;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #7d5bff;
  margin: auto auto 20px;
}

.success-msg h3 {
  font-size: 25px;
  margin-bottom: 10px;
  color: #2a2b45;
}

.success-msg p {
  color: #70758c;
}

.field-error {
  display: none;
  font-size: 11px;
  color: #d45757;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #d45757;
}

.form-group.has-error .field-error {
  display: block;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  opacity: .3;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #b9b6db;
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d5bff;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

  body { overflow-x: hidden; }

  .header {
    padding: 15px;
    min-height: auto;
    align-items: center;
    text-align: center;
  }

  .onepm-logo-box { justify-content: center; }
  .onepm-logo { width: 220px; }

  .buttons {
    flex-direction: column;
    gap: 12px;
  }

  .buttons button {
    width: 100%;
    max-width: 280px;
  }

  .slideshow-container {
    height: 420px;
    width: 100%;
    margin: 0;
  }

  .slide-text {
    left: 15px;
    right: 15px;
    bottom: 20px;
    max-width: none;
    padding: 18px;
  }

  .slide-text h2 { font-size: 28px; }
  .slide-text p  { font-size: 14px; }

  .our-solutions {
    font-size: 32px;
    margin-top: 60px;
    margin-bottom: 40px;
  }

  .about-title    { font-size: 34px; }
  .contact-title  { font-size: 32px; }

  .solutions-container {
    padding: 0 15px;
    gap: 20px;
  }

  .solution-video { height: 260px; }

  .commercial-title,
  .residential-title,
  .hotel-title { font-size: 24px; }

  .about-company { padding: 70px 20px; }
  .about-wrapper { gap: 40px; }

  .about-description {
    font-size: 15px;
    line-height: 1.8;
  }

  .company-stats  { flex-direction: column; }
  .stat-box       { width: 100%; }

  .location-card {
    flex-direction: column;
    text-align: center;
  }

  .about-images { height: auto; }
  .img-large    { height: 350px; }
  .img-small    { display: none; }

  .contact-card { padding: 25px 20px; }

  .form-grid { grid-template-columns: 1fr; }

  .submit-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-btn { width: 100%; }

}