* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
}


/* *********************************** Header CSS *********************************** */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%; /* Adjust padding for more space on the sides */
    background-color: #fff;
    position: relative;
}

/* Header Columns */
header > div,
nav {
    display: flex;
    align-items: center;
}

.header-logo {
    flex: 1; /* Use flexible space for logo */
    display: flex;
    justify-content: center; /* Center the logo */
}

.header-logo img {
    width: 150px; /* Set a fixed width for the logo */
    height: auto;
}

nav {
    flex: 3; /* Adjust to take up more space */
    display: flex;
    justify-content: space-evenly; /* Evenly space the navigation items */
    width: 100%;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
}

nav ul li {
    flex-grow: 1; /* Each <li> takes up an equal amount of space */
    display: flex;
    justify-content: center; /* Centers content inside each <li> */
    align-items: center; /* Vertically centers content */
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: large;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    display: block;
    overflow: hidden; /* To hide the border when it's off-screen */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Hover effect for the tabs */
nav ul li a:hover {
    color: orange;
}

nav ul li a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 100%; /* Initially, the border is off-screen to the right */
    height: 3px;
    background-color: transparent;
    transition: all 0.4s ease; /* Smooth transition for all properties */
}

/* Border effect on hover */
nav ul li a:hover:before {
    background-color: orange; /* Change border color on hover */
    right: 0; /* Make the border appear from the left */
}

/* Active Tab Styling */
nav ul li a.active {
    color: orange; /* Keeps text orange on active tab */
}

nav ul li a.active:before {
    background-color: orange;
    right: 0;
}

/* Call Option */
.call-tollfree {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  font-size: large;
  color: #333;
}

.call-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.call-wrapper i {
  font-size: 28px;
  color: #6c757d;
}

.call-text p {
  margin: 0;
  font-weight: 500;
  color: #555;
}

.call-text .phone-number {
  margin-top: 5px;
}

.call-text a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

.call-text a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
    header {
        padding: 10px 20px; /* Reduce padding for smaller screens */
        flex-direction: column; /* Stack content vertically */
        align-items: flex-start;
    }

    .header-logo {
        flex-basis: 100%; /* Take full width */
        justify-content: flex-start;
    }

    .header-logo img {
        width: 100px; /* Make logo smaller */
    }

    nav {
        flex-basis: 100%; /* Full width */
        justify-content: center;
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column; /* Stack navigation items vertically */
        align-items: center;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    .call-tollfree {
        flex-basis: 100%;
        align-items: center;
        margin-top: 15px;
    }

    .call-tollfree .phone-number {
        margin-top: 5px;
    }
}

/* ********************************* Header CSS End ********************************* */

/* *********************************** Home CSS *********************************** */
.banner {
    background-image: url('../images/tecmax-banner.jpg');
    background-size: cover; 
    background-position: center center; 
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
}

/* *********************************** Home CSS End *********************************** */

/* *********************************** Services CSS *********************************** */
.company-section {
  padding: 0;
}

/* Top section (blue background) */
.company-header {
  background-color: #231834; /* dark navy blue */
  color: #fff;
  padding: 60px 10%;
  height: 300px;
}

.first-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.first-row .col {
  flex: 1;
}

.first-row .left h6 {
  font-size: 12px;
  color: #1dc2ef;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.first-row .left h3 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  max-width: 600px;
}

.first-row .right p {
  font-size: 16px;
  color: #cfd6e3;
  line-height: 1.6;
  max-width: 600px;
}

/* Service Section (light background) */
.service-section {
  background-color: #ECEFF3;
  padding: 60px 10% 60px;
}

.service-blocks {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: -120px; /* pull boxes up into blue section */
}

.service-box {
  flex: 1;
  min-width: 30%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #fff;
}

.service-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-box .overlay {
  position: absolute;
  bottom: -40px; 
  left: 0;
  width: 100%;
  background: transparent;
  padding: 0px 20px;
  text-align: center;
  /* box-shadow: 0 -4px 12px rgba(0,0,0,0.15);  */
  z-index: 1;
  transition: all 0.4s ease-in-out;
}

.service-box h6 {
  font-size: 14px;
  color: #1dc2ef;
  padding: 10px 0px;
  text-transform: uppercase;
  background-color: #fff;
    transition: color 0.3s ease-in-out;

}

.service-box h2 {
  font-size: 18px;
  color: #111;
  font-weight: 600;
  padding: 10px 0px;
  z-index: 1; /* Ensure the text appears over the image */
  background-color: #fff;
    transition: color 0.3s ease-in-out;

}

.service-box:hover .overlay {
  bottom: 0; /* Optionally, you can add hover effect to move the overlay up when hovered */
}

/* CTA */
.cta {
  text-align: center;
  margin-top: 40px;
}

.cta p {
  font-size: 15px;
  color: #333;
}

.cta a {
  color: #032b5f;
  text-decoration: none;
  font-weight: bold;
}
.cta a:hover {
  text-decoration: underline;
}


/* *********************************** Services CSS End *********************************** */

/* *********************************** Features CSS *********************************** */


.features-section {
  padding: 60px 10%;
  text-align: center;
  background-color: #e9e9e9;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #0E2B5C;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #627792;
  margin-bottom: 50px;
}

.cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch; /* Ensures equal height */
}

.card {
  background: #e4edf6;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 22%;
  display: flex;
  flex-direction: column; /* Stack content and image vertically */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.card-content {
  flex-grow: 1; /* Makes content take remaining space */
}

.card-content h3 {
  margin-bottom: 10px;
  color: #0E2B5C;
}

.card-content p {
  font-size: large;
  color: #60686e;
}

.card-image img {
  height: 100px;
  width: auto;
  margin-top: 15px;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: translateY(-10px);
}

@media (max-width: 992px) {
  .cards-row {
    flex-direction: column;
  }
  .card {
    flex: 1 1 100%;
  }
}

/* *********************************** Features CSS End *********************************** */

/* *********************************** Why Tecmax CSS *********************************** */
.why-section {
  padding: 60px 5%;
  background-color: #181223; /* dark background */
  color: #ffffff;
  text-align: center;
}

.why-section .section-title {
  font-size: 4rem;
  margin-bottom: 15px;
  color: #fff;
}

.why-section .section-subtitle {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: #FFFFFF;
}

/* Cards container */
.why-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

/* Individual card */
.why-card {
  display: flex;
  flex: 1 1 calc(33% - 30px); /* 3 per row */
  background-color: #222;
  border-radius: 12px;
  padding: 20px;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Card image */
.why-card-image {
  flex: 0 0 80px;
  margin-right: 20px;
  transition: transform 0.5s ease;
}

.why-card-image img {
  width: 100%;
  height: auto;
}

/* Wobble animation on hover */
.why-card:hover .why-card-image {
  animation: wobble 0.6s ease infinite;
}

@keyframes wobble {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(5deg); }
  30% { transform: rotate(-5deg); }
  45% { transform: rotate(3deg); }
  60% { transform: rotate(-3deg); }
  75% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

/* Card content */
.why-card-content h4 {
  margin-bottom: 10px;
  text-align: left;
}

.why-card-content p {
  font-size: 1rem;
  text-align: left;
  line-height: 1.4;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
  .why-card {
    flex: 1 1 100%;
  }
}
/* *********************************** Why Tecmax CSS End *********************************** */

/* *********************************** Footer CSS *********************************** */

.site-footer {
  background-color: #ffffff;
  color: #fff;
  padding: 60px 5%;
  font-family: Arial, sans-serif;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1 1 calc(33% - 30px); /* 3 columns */
  min-width: 200px;
}

.footer-logo {
  width: 200px;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #494e56;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #494e56;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #4c535c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00aaff;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

.number, a, span {
  display: inline;  /* Makes all elements appear on the same line */
  margin-right: 5px; /* Adds space between elements */
  color: #494e56;
  text-decoration: none;
  font-size: 0.9rem;
}

.email, a {
  display: inline;  /* Makes all elements appear on the same line */
  margin-right: 5px; /* Adds space between elements */
  color: #494e56;
  text-decoration: none;
  font-size: 0.9rem;
}

/* *********************************** Footer CSS End *********************************** */