/* Base Styles & Aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* === Orill Brand Colors === */
  --primary: #4db848;          /* Orill Green (accent) */
  --primary-hover: #3da038;    /* Darker green on hover */
  --secondary: #1a3e7a;        /* Orill Navy Blue (primary brand) */
  --secondary-hover: #122d5c;  /* Deeper navy on hover */
  --text-dark: #1a3e7a;        /* Headings match brand navy */
  --text-body: #5a6377;        /* Neutral body text */
  --bg-light: #f4f7fb;         /* Very light blue-tinted background */
  --border-color: #dde5f0;     /* Subtle blue-tinted border */
  --white: #ffffff;
  /* === Orill Gradient & Glow Tokens === */
  --primary-gradient: linear-gradient(135deg, #4db848 0%, #2e8b24 100%);
  --hero-gradient: linear-gradient(135deg, #1a3e7a 0%, #0f2a57 60%, #081a3c 100%);
  --accent-gradient: linear-gradient(90deg, #4db848, #2e8b24);
  --glow-primary: 0 0 20px rgba(77, 184, 72, 0.35);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Group Projects Modern */
.projects-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-card-modern {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
}

.project-card-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-info-overlay h4 {
    font-size: 22px;
    margin-bottom: 5px;
}

.project-info-overlay span {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.project-card-modern:hover img {
    transform: scale(1.1);
}

.project-card-modern:hover .project-info-overlay {
    transform: translateY(0);
}

/* Global Presence Map */
.global-map-section {
    position: relative;
    overflow: hidden;
}

.map-container {
    padding: 50px;
    background: #f8fafc;
    border-radius: 20px;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.02);
    text-align: center;
}

.map-container img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    filter: grayscale(1) invert(0.1);
}

/* Section BG Alternative */
.section-bg {
    background-color: var(--bg-light);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .projects-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid-modern {
        grid-template-columns: 1fr;
    }
}
/* --- Header Styles --- */
.header-top {
  background-color: rgba(208, 215, 225, 0.4); /* Transparent #d0d7e1 */
  color: var(--secondary);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1001;
  /* border-bottom removed */
  backdrop-filter: blur(10px); /* Add blur for a modern glass effect */
  -webkit-backdrop-filter: blur(10px);
  /* Higher than header-bottom */
  transition: padding 0.3s ease;
}
.header-top.shrink {
  padding: 5px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo img {
  height: 70px;
  transition: height 0.3s ease;
}
.header-top.shrink .header-logo img {
  height: 45px;
}

.header-logo h1 {
  font-size: 24px;
  color: var(--secondary);
  margin: 0;
  line-height: 1;
}

.header-logo span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.header-info-box {
  display: flex;
  align-items: center;
  gap: 40px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-icon {
  width: 35px;
  height: 35px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transition: all 0.3s ease;
}
.header-top.shrink .info-icon {
  width: 25px;
  height: 25px;
  font-size: 11px;
}

.info-text p {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.2;
  opacity: 0.9;
  transition: font-size 0.3s ease;
}
.header-top.shrink .info-text p {
  font-size: 9px;
}

.info-text strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: font-size 0.3s ease;
}
.header-top.shrink .info-text strong {
  font-size: 11px;
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-white::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.btn-white:hover::after {
  left: 150%;
}

.btn-white:hover {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-hero {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 12px 30px;
  border: 2px solid transparent;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: var(--transition-smooth), padding 0.3s ease, font-size 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 181, 241, 0.35);
  vertical-align: middle;
}
.header-top.shrink .btn-hero {
  padding: 8px 18px;
  font-size: 11px;
}

.btn-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.btn-hero:hover::after {
  left: 150%;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 181, 241, 0.5);
}

.btn-hero-outline {
  background-color: transparent;
  color: var(--white);
  padding: 12px 30px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: var(--transition-smooth);
  vertical-align: middle;
}

.btn-hero-outline:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* Nav Menu */
.header-bottom {
  background-color: var(--secondary);
  position: sticky;
  top: 90px;
  z-index: 1000;
  width: 100%;
  transition: top 0.3s ease;
}
.header-bottom.shrink {
  top: 55px; /* Matches the new height of .header-top.shrink */
}

.main-nav {
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.main-nav ul li {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav ul li a {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 18px 20px;
  display: block;
  letter-spacing: 1px;
  position: relative;
  transition: padding 0.3s ease, color 0.3s ease;
}
.header-bottom.shrink .main-nav ul li a {
  padding: 12px 20px;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li.active > a::after {
  transform: scaleX(1);
}

.main-nav ul li a:hover,
.main-nav ul li.active > a {
  color: var(--primary);
}

/* Dropdown */
.main-nav ul li.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--secondary);
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li a:last-child {
  border-bottom: none;
}

.main-nav ul li.get-quote a {
  background-color: var(--primary);
  padding: 18px 40px;
  color: var(--white) !important;
  transition: padding 0.3s ease, background-color 0.3s ease;
}
.header-bottom.shrink .main-nav ul li.get-quote a {
  padding: 12px 30px;
}

.main-nav ul li.get-quote a:hover {
  background-color: var(--primary-hover);
}

/* --- Page Header / Title --- */
.page-header {
  background: var(--hero-gradient);
  padding: 70px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234db848' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header h1 {
  font-size: 44px;
  margin: 0;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-header .breadcrumb a {
  color: var(--primary);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.page-header.bg-light-wave::after {
  background: var(--bg-light);
}

/* --- Block Sections --- */
.section {
  padding: 60px 0;
}

.section-bg {
  background-color: var(--bg-light);
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, #0f2a57 0%, #081a3c 100%);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
  /* border-top removed */
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-socials a {
  color: var(--white);
  font-size: 16px;
  opacity: 0.6;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  color: var(--primary);
  opacity: 1;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-4px);
}

.footer-copyright {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* --- Services (Solutions) Page Specific --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.service-item {
  display: flex;
  flex-direction: column;
}

.service-icon {
  color: var(--primary);
  font-size: 48px;
  margin-bottom: 20px;
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(77, 184, 72, 0.1);
  border-radius: 50%;
}

.service-item h3 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.service-item h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.service-item p {
  font-size: 14px;
}

/* --- Projects Portfolio Specific --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.portfolio-item {
  background-color: var(--white);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.portfolio-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 20px;
}

.portfolio-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.portfolio-item p {
  font-size: 13px;
  padding: 0 20px;
  opacity: 0.8;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.portfolio-filters button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  cursor: pointer;
  padding-bottom: 5px;
}

.portfolio-filters button.active,
.portfolio-filters button:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* --- About Page Specific --- */
.about-intro {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.about-intro-img {
  flex: 0 0 40%;
}

.about-intro-img img {
  width: 100%;
  max-width: 400px;
}

.about-intro-content {
  flex: 1;
}

.about-intro-content h2 {
  font-size: 28px;
  margin-bottom: 30px;
  line-height: 1.3;
}

.about-intro-content p {
  font-size: 15px;
  margin-bottom: 20px;
}

.about-director {
  margin-top: 30px;
}

.about-director h5 {
  font-size: 18px;
  margin-bottom: 5px;
}

.about-director span {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.about-director img {
  margin-top: 15px;
  height: 40px;
}

.about-lists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
  font-size: 13px;
}

.about-lists ul {
  list-style: none;
}

.about-lists li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
}

.about-lists li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 18px;
  line-height: 1;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.about-card {
  background: linear-gradient(145deg, #2d3260, #1e2240);
  color: var(--white);
  text-align: center;
  padding: 50px 30px;
  border-top: 3px solid var(--primary);
  transition: var(--transition-smooth);
  border-radius: 4px;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 181, 241, 0.15);
}

.about-card-icon {
  width: 100px;
  height: 100px;
  background: var(--primary-gradient);
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 40px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1), var(--glow-primary);
}

.about-card h3 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 22px;
}

.about-card ul {
  list-style: none;
}

.about-card li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.about-card li:last-child {
  border-bottom: none;
}

/* --- Contact Page Specific --- */
.contact-map {
  width: 100%;
  height: 500px;
  /* Add subtle overlay mapping to image design */
  background: url('https://picsum.photos/id/10/1920/500') center/cover no-repeat;
  position: relative;
}

.contact-map::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 48, 82, 0.5);
  /* Navy overlay */
}

/* Map placeholder icon */
.contact-map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 50px;
  z-index: 2;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-wrap {
  display: flex;
  gap: 60px;
  padding: 80px 0;
}

.contact-form {
  flex: 6;
}

.contact-info {
  flex: 4;
}

.contact-title {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.contact-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--border-color);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

input,
textarea {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--bg-light);
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  text-transform: uppercase;
}

textarea {
  height: 150px;
  resize: vertical;
}

.btn-blue {
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 181, 241, 0.3);
}

.btn-blue::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.btn-blue:hover::after {
  left: 150%;
}

.btn-blue:hover {
  background: linear-gradient(135deg, #0099cc 0%, #005f8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 181, 241, 0.5);
}

.info-item-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.info-item-block .info-icon {
  width: 50px;
  height: 50px;
  font-size: 20px;
  border-color: var(--border-color);
  color: var(--text-body);
}

.info-item-block .info-text p {
  color: var(--text-body);
  font-size: 12px;
}

.info-item-block .info-text strong {
  color: var(--primary);
  font-size: 15px;
}

/* Our Companies */
.our-companies {
  background-color: var(--bg-light);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.company-card {
  background-color: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 30px 15px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.company-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.company-card:hover::before {
  transform: scaleX(1);
}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 181, 241, 0.12);
  border-color: rgba(0, 181, 241, 0.3);
}

.company-card .company-logo {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.company-card h5 {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}

.company-card span {
  color: #777;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Us List */
.about-list {
  list-style: none;
  padding: 0;
}

.about-list li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #444;
  display: flex;
  align-items: flex-start;
}

.about-list li i {
  color: var(--primary);
  margin-top: 4px;
  margin-right: 15px;
  font-size: 16px;
}

/* Responsiveness */
@media (max-width: 992px) {
  .header-info-box {
    display: none;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .about-intro,
  .contact-wrap {
    flex-direction: column;
  }

  .about-lists,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .industries-grid,
  .services-carousel,
  .projects-grid-modern {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .header-logo h1 {
    font-size: 20px;
  }

  .header-bottom .container {
    padding: 0;
  }
  
  .main-nav ul li a {
    padding: 12px 10px;
    font-size: 11px;
  }
}

/* --- Homepage Overhaul Sections --- */

/* Industries Section */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition-smooth);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.industry-card:hover::before {
  transform: scaleX(1);
}

.industry-card:hover {
  background: var(--white);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 181, 241, 0.1);
  border-color: rgba(0, 181, 241, 0.3);
}

.industry-card i {
  font-size: 40px;
  color: var(--secondary);
  margin-bottom: 20px;
  display: block;
  transition: color 0.3s ease;
}

.industry-card:hover i {
  color: var(--primary);
}

.industry-card h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Group Services Section */
.group-services {
  background-color: var(--secondary);
  color: var(--white);
  padding: 70px 0;
}

.services-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card-modern {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
  border-radius: 4px;
}

.service-card-modern:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--primary);
  transform: translateX(6px);
}

.service-card-modern i {
  color: var(--primary);
  font-size: 30px;
  margin-bottom: 20px;
}

/* Featured Projects */
.projects-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.project-card-modern {
  position: relative;
  overflow: hidden;
  height: 400px;
  border-radius: 8px;
}

.project-card-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-modern:hover img {
  transform: scale(1.1);
}

.project-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
}

.project-info-overlay h4 {
  color: var(--white);
  margin-bottom: 5px;
}

.project-info-overlay span {
  font-size: 12px;
  opacity: 0.8;
  display: block;
}

/* Global Presence */
.global-map-section {
  padding: 70px 0;
  text-align: center;
}

/* Map Interactive Markers - Premium Redesign */
.map-container {
    position: relative;
    padding: 0;
    background: transparent;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    margin: 50px auto 0;
    max-width: 1100px;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    filter: grayscale(0.5) contrast(1.1);
    padding: 40px;
}

.map-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary);
}

.map-marker::before,
.map-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    pointer-events: none;
}

.map-marker::before {
    animation: markerPulse 2.5s infinite;
}

.map-marker::after {
    animation: markerPulse 2.5s infinite 1.25s;
}

.map-marker:hover {
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    z-index: 10;
}

.map-marker:hover::before,
.map-marker:hover::after {
    background: var(--secondary);
}

.map-marker .tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--secondary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.map-marker .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--secondary) transparent transparent transparent;
}

.map-marker:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes markerPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Responsive Map Markers */
@media (max-width: 768px) {
    .map-container {
        padding: 0;
        border-radius: 10px;
    }
    .map-container img {
        padding: 20px;
    }
    .map-marker {
        width: 8px;
        height: 8px;
    }
    .map-marker .tooltip {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Partners & Clients - Infinite Scroll Carousel */
.logo-carousel {
  overflow: hidden;
  padding: 40px 0;
  background: transparent;
  position: relative;
  width: 100%;
}

.logo-carousel-track {
  display: flex;
  width: calc(200px * 44); /* 22 logos * 2 sets */
  animation: logoScroll 40s linear infinite;
  align-items: center;
}

.logo-carousel-item {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
}

.logo-carousel-item i {
  font-size: 50px;
  color: var(--secondary);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.logo-carousel-item img {
  max-height: 55px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.logo-carousel-item:hover i {
  opacity: 1;
  color: var(--primary);
  transform: scale(1.1);
}

.logo-carousel-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 22)); }
}

/* Pause on hover */
.logo-carousel:hover .logo-carousel-track {
  animation-play-state: paused;
}

/* --- Modern Scroll Reveal & Corporate Animations --- */

/* Initial hidden states */
.reveal {
  opacity: 0;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.fade-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-50px) rotateY(-10deg);
}

.reveal-right {
  transform: translateX(50px) rotateY(10deg);
}

/* Active visible states */
.reveal.active {
  opacity: 1;
  transform: translate(0) rotateY(0);
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-down:hover {
  opacity: 1;
}

.scroll-down .mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--white);
  border-radius: 20px;
  position: relative;
}

.scroll-down .mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--white);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: mouseMove 2s infinite;
}

.scroll-down span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

@keyframes mouseMove {
  0% { transform: translate(-50%, 0); opacity: 0; }
  20% { opacity: 1; }
  80% { transform: translate(-50%, 20px); opacity: 0; }
  100% { opacity: 0; }
}

/* Hero Section - Background handled by the embedded video element */
.hero-section {
  background: none;
}

/* Delay modifiers for sequential item loading */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Enhanced Hover Effects for Cards */
.industry-card:hover,
.service-card-modern:hover,
.project-card-modern:hover,
.company-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
  border-color: var(--primary) !important;
}

/* Subtile floating animation for icons/emphasis */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* ========================================
   MODERN CORPORATE UI ENHANCEMENTS
   ======================================== */

/* --- Animated Stat Counters --- */
.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* --- Staggered Card Animation Delays (expanded) --- */
.stagger-1 { animation-delay: 0.05s !important; transition-delay: 0.05s !important; }
.stagger-2 { animation-delay: 0.15s !important; transition-delay: 0.15s !important; }
.stagger-3 { animation-delay: 0.25s !important; transition-delay: 0.25s !important; }
.stagger-4 { animation-delay: 0.35s !important; transition-delay: 0.35s !important; }
.stagger-5 { animation-delay: 0.45s !important; transition-delay: 0.45s !important; }
.stagger-6 { animation-delay: 0.55s !important; transition-delay: 0.55s !important; }
.stagger-7 { animation-delay: 0.65s !important; transition-delay: 0.65s !important; }
.stagger-8 { animation-delay: 0.75s !important; transition-delay: 0.75s !important; }

/* --- Gradient Accent Section Heading Divider --- */
.section-heading-accent {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-gradient);
  margin: 16px auto 30px;
  border-radius: 2px;
}

.section-heading-accent.left {
  margin-left: 0;
}

/* --- Portfolio Card Upgrade --- */
.portfolio-item {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: var(--transition-smooth);
  position: relative;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.portfolio-item:hover::after {
  transform: scaleX(1);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 181, 241, 0.1);
  border-color: rgba(0, 181, 241, 0.25);
}

/* --- Upgraded Input Focus --- */
input:focus,
textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--primary);
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 181, 241, 0.08);
}

/* --- Section Separator / Diagonal Divider --- */
.section-diagonal {
  position: relative;
}

.section-diagonal::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
  z-index: 1;
}

/* --- Global Presence Map section upgrade --- */
.global-map-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #edf2f7 100%);
}

/* --- Stats Bar on About page (if used) --- */
.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item .stat-number {
  font-size: 40px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-body);
}

/* --- Modern Form input border animation --- */
.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Service Icon Upgrade --- */
.service-icon {
  background: linear-gradient(135deg, rgba(0, 181, 241, 0.12), rgba(0, 119, 182, 0.06));
  border: 1px solid rgba(0, 181, 241, 0.15);
  transition: var(--transition-smooth);
}

.service-item:hover .service-icon {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--glow-primary);
  transform: scale(1.1);
}

.service-item:hover .service-icon i {
  color: var(--white) !important;
}

.about-intro-img {
  position: relative;
}

.about-intro-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 20px 50px rgba(43, 48, 82, 0.15);
}

.about-intro-img:hover img {
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 181, 241, 0.15);
}

/* --- Animated "highlight" span in headings --- */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Header top glass effect upgrade --- */
.header-top {
  background: rgba(208, 215, 225, 0.4);
  box-shadow: 0 2px 20px rgba(26, 62, 122, 0.25);
}

/* --- Nav bottom upgrade --- */
.header-bottom {
  background: linear-gradient(90deg, #1e2240 0%, #2b3052 50%, #1e2240 100%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- Contact Title underline upgrade --- */
.contact-title::after {
  background: var(--primary-gradient);
  width: 50px;
  height: 3px;
}

/* --- Scrollbar styling for modern look --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 3px;
}

/* --- Selection color --- */
::selection {
  background: var(--primary);
  color: var(--white);
}

/* Remove the override that breaks card transforms */
.industry-card:hover,
.service-card-modern:hover,
.project-card-modern:hover,
.company-card:hover {
  box-shadow: 0 20px 40px rgba(0, 181, 241, 0.12) !important;
}

/* --- Stat Cards (About Quick Stats) --- */
.stat-card {
  background: var(--bg-light);
  padding: 25px 15px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  border-top: 3px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: 0 16px 35px rgba(0, 181, 241, 0.1);
  border-color: rgba(0, 181, 241, 0.2);
}

.stat-card i {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.stat-card:hover i {
  transform: scale(1.25) rotate(10deg);
  color: var(--primary-hover, #0077b6);
}

.stat-card strong {
  font-size: 22px;
  color: var(--secondary);
  display: block;
  font-weight: 800;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.stat-card:hover strong {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  font-weight: 700;
}

/* --- Corporate Pillars (Modernized About Cards) --- */
.about-cards-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.corporate-pillar {
  background: var(--white);
  padding: 45px 35px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  border-top: 4px solid var(--primary);
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.corporate-pillar:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 181, 241, 0.12);
  border-color: rgba(0, 181, 241, 0.2);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 181, 241, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 25px;
  transition: var(--transition-smooth);
}

.corporate-pillar:hover .pillar-icon {
  background: var(--primary-gradient);
  color: var(--white);
  transform: rotate(-5deg) scale(1.1);
}

.corporate-pillar h3 {
  font-size: 20px;
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.corporate-pillar ul {
  list-style: none;
  padding: 0;
}

.corporate-pillar li {
  font-size: 14px;
  color: var(--text-body);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 12px;
}

.corporate-pillar li::before {
  content: '\f058'; /* FontAwesome circle-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  opacity: 0.7;
  font-size: 14px;
}

.corporate-pillar li:last-child {
  border-bottom: none;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* --- Responsive Overrides (After Base Styles) --- */
@media (max-width: 992px) {
  .about-cards-modern {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .header-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* --- CTA Banner (Modern Contact CTA) --- */
.cta-banner-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 40px 50px;
  border-radius: 15px;
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 5px solid var(--primary);
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
  margin-top: 50px;
  gap: 40px;
  transition: var(--transition-smooth);
}

.cta-banner-modern:hover {
  box-shadow: 0 25px 60px rgba(0, 181, 241, 0.1);
  transform: translateY(-5px);
}

.cta-banner-content {
  flex: 1;
}

.cta-banner-content h4 {
  font-size: 24px;
  color: var(--secondary);
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cta-banner-content p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.cta-banner-info {
  font-size: 13px;
  color: var(--text-body);
  text-align: right;
}

.cta-banner-info strong {
  color: var(--primary);
}

@media (max-width: 992px) {
  .cta-banner-modern {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
  
  .cta-banner-actions {
    align-items: center;
  }
  
  .cta-banner-info {
    text-align: center;
  }
}


/* --- Hero Video Background --- */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 62, 122, 0.45) 0%, rgba(8, 26, 60, 0.55) 100%);
  z-index: 1;
}

.hero-section .container.relative,
.hero-section .scroll-down {
  position: relative;
  z-index: 2;
}
