:root {
  --primary: #0077b6;
  --primary-light: #00b4d8;
  --dark: #03045e;
  --accent: #ffb703;
  --white: #ffffff;
  --light-gray: #f8fbff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --glass: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  --border-radius: 24px;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Luxury Dynamic Background */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.04;
  animation: moveOrbs 20s infinite alternate ease-in-out;
}

body::before {
  top: -20%;
  left: -20%;
  background: radial-gradient(circle, var(--primary), transparent);
}

body::after {
  bottom: -20%;
  right: -20%;
  background: radial-gradient(circle, var(--accent), transparent);
  animation-delay: -10s;
}

@keyframes moveOrbs {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(10%, 10%) scale(1.1);
  }
}

.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  padding: 15px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  transition: height 0.3s ease;
}

header.scrolled .logo img {
  height: 50px;
}

.logo-dark {
  display: none;
}

header.scrolled .logo-light {
  display: none;
}

header.scrolled .logo-dark {
  display: block;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

header.scrolled .nav-links a {
  color: var(--dark);
}

.nav-links a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

header.scrolled .menu-toggle {
  color: var(--dark);
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch a {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
  opacity: 1;
  transform: scale(1.1);
}

.lang-switch img {
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Sections */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--dark);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.main-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2)),
    url("../img/hero_light.png");
}

.it-hero { background-image: url("../img/it_bg.png"); }
.iot-hero { background-image: url("../img/iot_bg.png"); }
.defence-hero { background-image: url("../img/defence_bg.png"); }
.flatrate-hero { background-image: url("../img/office_bg.png"); }
.hosting-hero { background-image: url("../img/cio_bg.png"); }

.hero-mini {
  padding: 180px 0 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.hero-mini::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
  z-index: 1;
}

.hero-mini .container {
  position: relative;
  z-index: 2;
}

.hero-mini h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
  letter-spacing: -1.5px;
}

.hero-mini p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 40px;
  font-weight: 500;
  opacity: 0.9;
}

.btn {
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(255, 183, 3, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 183, 3, 0.4);
}

/* Sections Common */
section {
  padding: 180px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 100px;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1.5px;
}

/* Grid Layouts */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Service Card Luxury */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card:not(.has-image) {
  padding: 40px;
}

.service-card.has-image {
  padding: 0;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .icon-box {
  width: 64px;
  height: 64px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card .card-content {
  padding: 35px;
}

.service-card.has-image h3, 
.service-card.has-image p {
  padding: 0 35px;
}

.service-card.has-image h3 {
  margin-top: 0;
}

.service-card.has-image p {
  margin-bottom: 35px;
}

.service-card.has-image .icon-box {
  margin: -40px 0 25px 35px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  z-index: 6;
  position: relative;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* Common Card Image */
.card-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.service-card:hover .card-image {
  transform: scale(1.05);
}

.service-card .icon-box i {
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .icon-box {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.service-card:hover .icon-box i {
  color: var(--white);
}

/* End of Service Card Redefinition */

.learn-more {
  padding: 0 35px 35px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.learn-more i {
  transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
  transform: translateX(5px);
}

/* Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.step-item {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
}

.step-item:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0, 119, 182, 0.08);
  margin-bottom: -15px;
}

.step-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.step-item h3 {
  margin-bottom: 15px;
  color: var(--dark);
  font-size: 1.35rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Dos & Don'ts */
.dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.dd-column {
  background: var(--white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.dd-header {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.dos .dd-header {
  color: #1b4332;
}

.donts .dd-header {
  color: #800f2f;
}

.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

.dd-item i {
  margin-top: 5px;
}

.dos .dd-item i {
  color: #2d6a4f;
}

.donts .dd-item i {
  color: #c9184a;
}

/* Contact Form */
.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 80px 60px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 22px 30px;
  border-radius: 20px;
  border: 2px solid #f0f0f0;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 10px 20px rgba(0, 119, 182, 0.05);
}

.form-group textarea {
  height: 200px;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 100px 0 50px;
}

.footer-logo img {
  height: 80px;
  margin-bottom: 30px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--white);
  text-decoration: none;
  margin: 0 15px;
}

/* Chat Magic */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
}

.chat-button {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0, 119, 182, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-button:hover {
  transform: scale(1.1) rotate(10deg);
}

.chat-window {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 400px;
  height: 600px;
  background: var(--white);
  border-radius: 25px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-header {
  background: var(--dark);
  color: white;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #fafafa;
}

.chat-input {
  padding: 20px;
  display: flex;
  gap: 10px;
  background: white;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  border: 1px solid #efefef;
  padding: 12px 20px;
  border-radius: 30px;
  outline: none;
}

/* Mobile Optimization: THE CORE */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  header {
    padding: 15px 0;
  }

  header.scrolled {
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
    z-index: 1001;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.8rem;
    color: var(--dark) !important;
    font-weight: 800;
  }

  .hero h1 {
    font-size: 3rem;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 1.1rem;
  }

  section {
    padding: 100px 0;
  }

  .section-title {
    margin-bottom: 60px;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .service-grid,
  .steps-grid,
  .dd-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-card {
    padding: 40px 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 15px 20px;
  }

  .chat-window {
    width: calc(100vw - 40px);
    height: calc(100vh - 120px);
    bottom: 80px;
  }

  .chat-widget {
    bottom: 20px;
    right: 20px;
  }

  .container {
    width: 90%;
  }

  .about-flex {
    flex-direction: column-reverse !important;
  }

  .about-flex div {
    min-width: 100% !important;
  }
}

/* Animations */
.message {
  padding: 12px 18px;
  border-radius: 18px;
  max-width: 85%;
  font-size: 0.95rem;
  animation: msgIn 0.3s ease;
}

.bot-msg,
.assistant-msg {
  background: #eef2f7;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-msg {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing Dots */
.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #999;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Partners & Customers */
.references-section {
  background: #fdfdfd;
  padding: 150px 0;
}

.logo-groups {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.logo-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
}

.logo-group h3 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 1.8rem;
  color: var(--dark);
  font-weight: 700;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.logo-group h3::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 25%;
  width: 50%;
  height: 4px;
  background: var(--primary-light);
  border-radius: 2px;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.logo-item {
  width: 220px;
  height: 110px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: all 0.4s ease;
}

.logo-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 119, 182, 0.1);
}

.logo-item:hover img {
  filter: grayscale(0) opacity(1);
}

.logo-item .logo-text {
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  opacity: 0.6;
  transition: all 0.4s ease;
}

.logo-item:hover .logo-text {
  opacity: 1;
  color: var(--primary);
}

@media (max-width: 768px) {
  .logo-item {
    width: 160px;
    height: 90px;
    padding: 15px;
  }

  .logo-group h3 {
    font-size: 1.5rem;
  }
}
