/* 
  Enterprise IT Infrastructure Design System
  Color Palette:
  Primary: #0046AD (Corporate Blue)
  Secondary: #1A1A1A (Dark Grey)
  Accent: #FF6B00 (Accent Orange)
  Background: #FFFFFF (White)
  Surface: #F8F9FA (Light Grey)
*/

@font-face {
  font-family: 'TWK Everett';
  src: url('assets/twk-everett/TWKEverett-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('assets/twk-everett/TWKEverett-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('assets/twk-everett/TWKEverett-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('assets/twk-everett/TWKEverett-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('assets/twk-everett/TWKEverett-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('assets/twk-everett/TWKEverett-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

:root {
  --primary: #0046AD;
  --primary-dark: #003380;
  --accent: #FF6B00;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --grey-light: #F8F9FA;
  --grey-medium: #6C757D;
  --font-main: 'TWK Everett', sans-serif;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --container-width: 1300px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--black);
  background: linear-gradient(180deg, #ffffff 0%, #fff5e6 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  color: var(--black);
  font-weight: 100;
  /* Use Thin weight for body text for premium feel */
}

.label {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 400;
  /* Use Thin weight for labels */
  letter-spacing: 0.25em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.accent-line {
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin-bottom: 2.5rem;
}

/* Layout Components */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background-color: rgba(255, 107, 0, 0.03);
  /* Extremely subtle accent tint */
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 300;
  /* Use Thin weight for menu */
  font-size: 1.05rem;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.05em;
}

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

.nav-links a:hover {
  color: var(--primary);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 15px;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  background-color: var(--white);
  color: var(--black);
}

.btn:hover {
  background-color: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-primary,
.btn-outline {
  background-color: var(--white) !important;
  color: var(--black) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  background-image: none !important;
}

.btn-primary:hover,
.btn-outline:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.btn-accent {
  background-color: var(--accent) !important;
  color: var(--white) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  background-image: none !important;
}

.btn-accent:hover {
  background-color: var(--white) !important;
  color: var(--black) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 90px;
  /* Offset for fixed header */
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background-color: var(--black);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
  padding: 40px 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  margin-bottom: 3rem;
  max-width: 600px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-weight: 100;
}

.hero-slider,
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-bg {
  background-size: cover;
  background-position: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(0, 70, 173, 0.3) 100%);
  z-index: 2;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Service Cards */
.card {
  background: linear-gradient(180deg, var(--white) 0%, var(--grey-light) 100%);
  padding: 3.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--grey-light) 0%, #e9ecef 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.75rem;
  transition: var(--transition);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(0, 70, 173, 0.2);
}

/* Industry Section */
.industry-card {
  position: relative;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  color: var(--white);
  cursor: pointer;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.industry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transition: var(--transition);
}

.industry-card:hover img {
  transform: scale(1.1);
}

.industry-card:hover .industry-overlay {
  padding-bottom: 3.5rem;
}

/* Case Study Cards */
.case-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.case-image {
  height: 240px;
  background-color: var(--grey-medium);
  background-size: cover;
  background-position: center;
}

.case-content {
  padding: 2rem;
}

.case-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--grey-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* Global Map Section */
.map-container {
  position: relative;
  background-color: var(--black);
  background-image: url('assets/map_bg.png');
  background-size: cover;
  background-position: center;
  padding: 100px 60px;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.map-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
  z-index: 1;
}

.map-container>* {
  position: relative;
  z-index: 10;
}

.map-svg {
  max-width: 100%;
  height: auto;
  opacity: 0.8;
  /* Increased visibility */
  fill: none;
  stroke: var(--primary);
  stroke-width: 0.5;
}

.map-marker {
  fill: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    r: 4;
    opacity: 1;
  }

  100% {
    r: 12;
    opacity: 0;
  }
}

/* Footer */
footer {
  background-color: transparent;
  color: #333333;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

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

.footer-socials a {
  width: 40px;
  height: 40px;
  background: #333333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 6rem;
}

.footer-column h4 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #333333;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-column ul {
  list-style: none;
}

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

.footer-column a {
  color: #555555;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.footer-column-no-header {
  margin-top: 4.25rem;
}

@media (max-width: 768px) {
  .footer-column-no-header {
    margin-top: 0;
  }
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Accordion Component */
.accordion {
  border: 1px solid rgba(37, 37, 37, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fffbf5;
  transition: var(--transition);
  user-select: none;
}

.accordion-header:hover {
  /* background: rgba(0, 0, 0, 0.02); */
}

.accordion-title {
  font-size: 1.1rem;
  font-weight: 300;
  /* Thin weight */
  color: #333;
  font-family: 'TWKEverett-Thin', sans-serif;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  /* background: #fafafa; */
  padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  /* Increased for longer rephrased content */
  padding: 1rem 1.5rem 1.5rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.accordion-content li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  font-family: 'TWKEverett-Thin', sans-serif;
}

.accordion-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.accordion-content p {
  font-weight: 300;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
  font-family: 'TWKEverett-Thin', sans-serif;
}




.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal a {
  color: #555555;
  text-decoration: none;
}

.footer-legal span {
  color: #ccc;
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #777777;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Utility Classes for Responsiveness */
.grid-responsive-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-responsive-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.flex-between-responsive {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

@media (max-width: 992px) {
  .grid-responsive-4 {
    grid-template-columns: 1fr 1fr;
  }
}

.card-horizontal {
  padding: 2.5rem;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
}

.feature-section-grid {
  display: grid;
  gap: 8rem;
  margin-top: 6rem;
}

.feature-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 100px 60px;
  color: white;
}

.feature-box-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.feature-box-content.right {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 992px) {
  .feature-section-grid {
    gap: 4rem;
  }

  .feature-box {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .card-horizontal {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
  }

  .feature-section-grid {
    gap: 3rem;
    margin-top: 3rem;
  }

  .feature-box {
    padding: 40px 20px;
  }

  .feature-box-content.right {
    text-align: left;
    margin-left: 0;
  }

  .feature-box-content h3 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 768px) {

  .grid-responsive-2,
  .grid-responsive-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .flex-between-responsive {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .flex-between-responsive .btn {
    width: 100%;
    text-align: center;
  }
}

.w-100 {
  width: 100% !important;
}

/* Mobile Responsiveness Improvements */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--black);
  cursor: pointer;
  margin-left: 1.5rem;
  z-index: 1001;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  nav {
    height: 70px;
  }

  .logo {
    font-size: 1.4rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    transition: var(--transition);
    z-index: 999;
    padding: 100px 2rem 40px;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
  }

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

  .header-actions .btn {
    display: none;
  }

  .hero {
    padding-top: 100px;
    min-height: 80vh;
    text-align: left;
  }

  .hero-content {
    padding: 20px 0;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-btns .btn {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem;
    font-size: 1.1rem;
  }

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

  section {
    padding: 60px 0;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .map-container {
    padding: 60px 20px;
  }

  .map-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem !important;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  /* Specific fixes for inline styles that we can target via classes if we add them, 
     but for now let's use some general rules */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  div[style*="display: flex; justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2rem !important;
  }

  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Services Page Specifics */
  div[style*="padding: 100px 60px"] {
    padding: 60px 30px !important;
  }

  div[style*="font-size: 2.5rem"] {
    font-size: 1.8rem !important;
  }

  div[style*="text-align: right"] {
    text-align: left !important;
    margin-left: 0 !important;
  }

  div[style*="text-align: right"] ul {
    text-align: left !important;
  }

  /* About Page Team Image and Box */
  div[style*="height: 500px"] {
    height: 350px !important;
  }

  div[style*="bottom: -30px; right: -30px"] {
    position: relative !important;
    bottom: 0 !important;
    right: 0 !important;
    margin-top: -50px !important;
    margin-left: 20px !important;
    padding: 2rem !important;
  }
}

/* Contact Page Styles */
.form-container {
  padding: 5rem;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--black);
}

.form-control {
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 70, 173, 0.1);
}

textarea.form-control {
  min-height: 150px;
}

.contact-info-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .form-container {
    padding: 2.5rem 1.5rem;
  }

  .contact-info-card {
    padding: 2rem 1.5rem;
  }

  .info-item {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}