/* ============================================
   Invariably Digital - Main Stylesheet
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Color Variables ---------- */
:root {
  --primary-blue: #0986c0;
  --accent-orange: #ff7900;
  --light-blue: #76a6d7;
  --dark-blue: #227bc3;
  --pink: #e44993;
  --dark: #212121;
  --black: #000;
  --white: #fff;
  --gray-light: #f5f5f5;
  --gray-mid: #999;
  --shadow: 1px 1px 10px 4px #e8e8e8;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.font-epilogue {
  font-family: 'Epilogue', sans-serif;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: #e06d00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 121, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.navbar-brand img {
  height: 55px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 52px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  font-family: 'Epilogue', sans-serif;
  opacity: 0.9;
}

.hero-content .btn {
  margin: 0 10px;
}

/* Page-level hero (shorter, for inner pages) */
.hero-page {
  min-height: 45vh;
}

.hero-page .hero-content h1 {
  font-size: 48px;
}

/* ---------- Section Common ---------- */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--accent-orange);
  margin: 15px auto;
}

.section-title p {
  font-size: 16px;
  color: var(--gray-mid);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Why Us / About Intro ---------- */
.about-intro {
  background: var(--gray-light);
}

.about-intro .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-intro-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-intro-text h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 15px;
}

.about-intro-text h2 span {
  color: var(--accent-orange);
}

.about-intro-text p {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ---------- Why Choose Us ---------- */
.why-us {
  background: var(--white);
}

.why-us .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-us-text h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 15px;
}

.why-us-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.why-us-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- Expert / Service Cards ---------- */
.expert-section {
  position: relative;
  padding: 80px 0;
  background: url('../images/expert-bg.jpg') center/cover no-repeat fixed;
}

.expert-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.expert-section > .container {
  position: relative;
  z-index: 2;
}

.expert-section .section-title h2 {
  color: var(--white);
}

.expert-section .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

.expert-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.expert-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.expert-card .icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expert-card .icon-wrap img {
  max-height: 70px;
}

.expert-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 12px;
}

.expert-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ---------- Service Grid (Services Page) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-top-color: var(--accent-orange);
}

.service-card .service-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-card .service-icon i {
  font-size: 28px;
  color: var(--white);
}

.service-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ---------- Polyglot / Tech Section ---------- */
.polyglot-section {
  background: var(--white);
}

.polyglot-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.polyglot-text h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 15px;
}

.polyglot-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

.polyglot-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- Technologies ---------- */
.tech-section {
  background: var(--gray-light);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.tech-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.tech-card h3 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-card h3 i {
  font-size: 22px;
}

.tech-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* ---------- Counter / Stats ---------- */
.counter-section {
  position: relative;
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.counter-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/counter-bg.jpg') center/cover no-repeat;
}

.counter-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.counter-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.counter-item h3 {
  font-size: 48px;
  color: var(--accent-orange);
  margin-bottom: 5px;
}

.counter-item p {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ---------- Omni CTA Section ---------- */
.omni-cta {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.omni-cta h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.omni-cta p {
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
  line-height: 1.7;
}

.omni-cta .btn {
  font-size: 16px;
  padding: 15px 40px;
}

/* ---------- Core Values ---------- */
.values-section {
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
}

.value-card .value-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-card .value-icon i {
  font-size: 30px;
  color: var(--white);
}

.value-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  background: var(--gray-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 35px 25px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card .client-logo {
  height: 50px;
  margin-bottom: 20px;
  object-fit: contain;
}

.testimonial-card blockquote {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding: 0 10px;
}

.testimonial-card blockquote::before {
  content: '\201C';
  font-size: 40px;
  color: var(--accent-orange);
  font-family: Georgia, serif;
  position: absolute;
  top: -15px;
  left: -5px;
  line-height: 1;
}

.testimonial-card .client-info {
  font-size: 13px;
  color: var(--gray-mid);
  font-weight: 600;
}

/* ---------- Trust Section (About Page) ---------- */
.trust-section {
  background: var(--white);
}

.trust-section .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.trust-text h2 {
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 15px;
}

.trust-text h2 span {
  color: var(--accent-orange);
}

.trust-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.trust-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- Contact Page ---------- */
.contact-section {
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(9, 134, 192, 0.1);
}

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

.contact-form .btn {
  width: 100%;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info-card .info-icon {
  width: 55px;
  height: 55px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .info-icon i {
  font-size: 24px;
  color: var(--white);
}

.contact-info-card h4 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 14px;
  color: #666;
}

.contact-info-card a:hover {
  color: var(--primary-blue);
}

/* Map */
.map-section {
  padding: 0;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- Wave Divider ---------- */
.wave-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-orange);
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--white);
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  font-size: 14px;
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-orange);
}

.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--white);
}

.footer-contact p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact a {
  color: #aaa;
}

.footer-contact a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #888;
}

.bbb-badge img {
  height: 42px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.bbb-badge img:hover {
  opacity: 1;
}

/* ---------- Form Success/Error Messages ---------- */
.form-message {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 40px;
  }

  .expert-cards,
  .services-grid,
  .values-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .about-intro .grid,
  .why-us .grid,
  .polyglot-section .grid,
  .trust-section .grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-intro-image {
    order: -1;
  }

  .expert-cards,
  .services-grid,
  .values-grid,
  .testimonials-grid,
  .counter-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 26px;
  }

  .hero-page {
    min-height: 35vh;
  }

  .contact-form {
    padding: 25px;
  }

  .btn {
    padding: 10px 24px;
    font-size: 13px;
  }

  .counter-item h3 {
    font-size: 36px;
  }
}
