:root {
  /* Brand Colors */
  --color-matte-black: #111111;
  --color-charcoal-deep: #1c1c1c;
  --color-charcoal-light: #2a2a2a;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #888888;

  /* Gold Accent variations */
  --color-gold-start: #c6a75e;
  --color-gold-end: #d4af37;
  --color-gold-solid: #d4af37;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout & Spacing */
  --container-width: 1200px;
  --padding-section: 6rem 5%;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.section-padding-large {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-matte-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-gray-medium);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* Gradients and Highlights */
.gold-text {
  background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-start), var(--color-gold-end));
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
  color: var(--color-matte-black);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

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

.btn-outline:hover {
  background: var(--color-gold-solid);
  color: var(--color-matte-black);
}

/* Header */
.hero-carousel-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, var(--color-white) 0%, #f9f9fa 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background Glowing Tech Effect */
.hero-carousel-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 8s infinite alternate ease-in-out;
}

/* Subtle accent lines */
.hero-carousel-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-start), var(--color-gold-end));
  z-index: 10;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  max-width: var(--container-width);
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-content {
  flex: 1;
  max-width: 600px;
  padding-right: 2rem;
  color: var(--color-matte-black);
  padding-top: 5rem;
}

.carousel-content .heading-large {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
}

.carousel-content .subheading {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 2.2rem;
  color: var(--color-charcoal-deep);
}

.carousel-content .description {
  font-size: 1.125rem;
  color: var(--color-gray-medium);
  margin-bottom: 2.5rem;
}

.carousel-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 550px;
}

.carousel-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.05));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Controls & Indicators */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  color: var(--color-gold-solid);
  border: 1px solid rgba(212, 175, 55, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background: var(--color-gold-solid);
  color: var(--color-white);
  border-color: var(--color-gold-solid);
  box-shadow: 0 8px 15px rgba(212, 175, 55, 0.2);
}

.carousel-control.prev {
  left: 2%;
}

.carousel-control.next {
  right: 2%;
}

.carousel-indicators {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active,
.dot:hover {
  background: var(--color-gold-solid);
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .carousel-slide {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding-top: 6rem;
  }

  .carousel-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .carousel-image {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .carousel-content .heading-large {
    font-size: 2.5rem;
  }

  .carousel-content .subheading {
    font-size: 1.25rem;
  }

  .carousel-image {
    max-width: 300px;
  }

  .carousel-control {
    display: none;
    /* Hide arrows on small mobile, rely on indicators / swipe */
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  z-index: 1000;
  background-color: var(--color-gray-light);
  height: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 100%;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  transition: var(--transition-smooth);
}

.header.scrolled .header-container {
  padding: 0 5%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-matte-black);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo span {
  color: var(--color-gold-solid);
}

.brand-logo {
  height: 90px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 150px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: block;
  padding: 0.5rem 0;
  color: var(--color-matte-black);
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-gold-solid);
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold-solid);
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-matte-black);
  padding: 10px;
}

/* Hamburger icon styles */
.hamburger-box {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--color-matte-black);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

.mobile-menu-btn.menu-open .hamburger-inner {
  transform: rotate(45deg);
}

.mobile-menu-btn.menu-open .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.mobile-menu-btn.menu-open .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* Base Layout Classes */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

/* Footer */
footer {
  background-color: var(--color-matte-black);
  color: var(--color-white);
  padding: 5rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-col p {
  color: #a0a0a0;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0a0a0;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold-solid);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--color-gold-solid);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
  font-size: 0.875rem;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: #a0a0a0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.footer-socials a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-socials a:hover {
  color: var(--color-gold-solid);
  transform: translateY(-3px) scale(1.05);
}

/* Team Section CSS */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  justify-content: center;
}

.team-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.team-image-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
}

.team-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  background-color: var(--color-gray-light);
}

.team-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  background-color: var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--color-gray-medium);
}

.team-social {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--color-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0077b5;
  /* LinkedIn Color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.team-social svg {
  width: 20px;
  height: 20px;
}

.team-social:hover {
  transform: scale(1.1);
  color: var(--color-gold-solid);
}

.team-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-desc {
  font-size: 0.95rem;
  color: var(--color-gray-medium);
  margin-bottom: 0;
}

/* Product Section CSS */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--color-gold-solid);
}

.product-visual {
  background: linear-gradient(135deg, var(--color-gray-light), #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.product-image-placeholder {
  width: 100%;
  min-height: 400px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-medium);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.product-content {
  padding: 4rem;
}

.product-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.product-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-gray-medium);
}

/* Browser Mockup Styling */
.browser-mockup {
  position: relative;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: visible;
  /* To allow phone-mockup to overflow */
  margin-top: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.browser-header {
  height: 30px;
  background-color: #f1f1f1;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.browser-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background-color: #ff5f56;
}

.dot-yellow {
  background-color: #ffbd2e;
}

.dot-green {
  background-color: #27c93f;
}

.browser-mockup>img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Phone Mockup Styling */
.phone-mockup {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 35%;
  max-width: 200px;
  background-color: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border: 4px solid var(--color-charcoal-deep);
  overflow: hidden;
  z-index: 10;
}

.phone-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.product-features {
  margin-bottom: 2.5rem;
}

.feature-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--color-matte-black);
  font-weight: 500;
}

.check-icon {
  color: var(--color-gold-solid);
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.product-why {
  background: var(--color-gray-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--color-gold-solid);
}

.product-why h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-why p {
  margin-bottom: 0;
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .product-content {
    padding: 3rem 2rem;
  }
}

@media (max-width: 992px) {
  .product-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-visual {
    padding: 2rem;
  }

  .product-content {
    padding: 3rem 2rem;
  }

  .feature-checklist {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* HRMS Mobile Reordering */
  .product-card {
    display: flex;
    flex-direction: column;
  }

  .product-content {
    display: contents;
    /* Allows children to participate in flex layout of parent */
  }

  .product-title {
    order: 1;
  }

  .product-visual {
    order: 2;
    padding: 2rem 1rem 3rem 1rem;
  }

  .product-description {
    order: 3;
  }

  .product-features {
    order: 4;
  }

  .product-why {
    order: 5;
  }

  .product-actions {
    order: 6;
  }

  .phone-mockup {
    right: -10px;
    /* Adjust overflow for smaller screens */
    width: 40%;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .service-content h3 {
    font-size: 1.75rem !important;
    /* Override inline */
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .section-padding-large {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Header and Logo */
  .header {
    height: 75px;
  }

  .header-container {
    padding: 0 5%;
  }

  .brand-logo {
    height: 60px;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
    position: relative;
    margin-right: 0;
    /* Reset explicitly if adjusted previously */
  }

  /* Hero Section Mobile Adjustments */
  .hero-carousel-section {
    height: auto;
    min-height: 100vh;
  }

  .carousel-slide {
    padding-top: 100px;
  }

  .carousel-content {
    margin-bottom: 0;
  }

  .carousel-content .heading-large {
    margin-bottom: 0.8rem;
  }

  .carousel-content .subheading {
    margin-bottom: 1rem;
  }

  .carousel-content .description {
    margin-bottom: 1.5rem;
    padding: 0 16px;
  }

  .carousel-image {
    margin-top: 2rem;
  }

  /* Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
    position: relative;
    margin-right: 12px;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}