:root {
  --primax-red: #A02E31;
  --primax-blue: #366287;
  --primax-light-blue: #387694;
  --primax-bg: #F2F2F2;
  --primax-dark: #0B1220;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/*Globally for images*/
img {

  max-width: 100%;
  height: auto;
  display: block;

}

/*text utomatically scales with screen size*/
h1 {
  font-size: clamp(32px, 5vw, 56px);
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
}

p {
  font-size: clamp(14px, 1.2vw, 16px);
}

body {
  color: #222;
  padding-top: 90px; /* to prevent content being hidden behind sticky header */
  background: linear-gradient(
    to bottom,
    #ffffff,
    #f7f9fc
  );
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.btn {
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--primax-red);
  color: #fff;
}

.btn-secondary {
  background: var(--primax-red);
  color: #fff;
}

/* Top bar */
.top-bar {
  background: var(--primax-dark);
  color: #fff;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.top-bar .container  a {
  color: #fff;
  text-decoration: none;
}

/* Header */
.main-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  /* start of sticky styles downwards; */
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 18px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  /*end of sticky header styles*/
}

.main-header .shrink {
  padding: 10px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}

.main-header.shrink .logo img {
  height: 38px; /* smaller logo size when header shrinks */
} 


.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
}

.logo span span {
  color: var(--primax-red);
}

.logo img {
  height: 64px; /* logo normal size */
  width: auto;
  display: block;
  transition: all 0.3s ease;
}

nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--primax-red);
  font-weight: 500;
}

nav a.active {
  color: var(--primax-red);
}

/* Navigation */

.nav-menu {
  display: flex;
  gap: 25px;
}

@media (max-width:768px){
  .nav-menu{

    position: fixed;

    top: 0;
    right: -260px;

    height: 100vh;
    width: 260px;

    background: var(--primax-blue);

    flex-direction: column;

    padding-top: 120px;

    gap: 25px;

    transition: right 0.35s ease;

    z-index: 1000;

  }

  .nav-menu.open{
    right:0;
  }

}
.nav-link {
  text-decoration: none;
  color: var(--primax-dark);
  font-weight: 500;
  position: relative;
}

/* Active link highlight */

.nav-link.active {
  color: var(--primax-red);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primax-red);
}

/* Hamburger */

.hamburger {

  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;

}

.hamburger span {

  width: 26px;
  height: 3px;

  background: var(--primax-blue);

  transition: all 0.3s ease;

}

/* Mobile Menu */

@media (max-width: 768px){

  .hamburger{
    display:flex;
  }

  .nav-menu{

    position: fixed;

    top: 0;
    right: -260px;

    height: 100vh;
    width: 260px;

    background: var(--primax-blue);

    flex-direction: column;

    padding-top: 120px;

    gap: 25px;

    transition: right 0.3s ease;

  }
  .nav-menu.open{

    right: 0;

  }

  .nav-link{

    color: white;
    font-size: 18px;
    padding-left: 30px;

  }

}

/* Hamburger menu animation */

.hamburger.active span:nth-child(1){
  transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active span:nth-child(2){
  opacity:0;
}

.hamburger.active span:nth-child(3){
  transform: rotate(-45deg) translate(5px,-5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  background: url(../images/hero-bg.jpg) center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.75);
}

@media (max-width: 768px) {

  .hero {
    background-attachment: scroll;
    padding: 100px 0;
  }

}
/*tablet break point*/
@media (max-width:1024px){

  .hero h1{

    font-size:42px;

  }

}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  height: 100%;
  padding: 80px 0;
  color: #fff;
}

.badge {
  display: inline-block;
  background: rgba(160,46,49,0.2);
  color: var(--primax-red);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-size: 14px;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--primax-red);
}

.hero-content h1 span {
  color: var(--primax-light-blue);
}

.hero-content p {
  max-width: 520px;
  margin-bottom: 30px;
  color: #ddd;
}

/* Hero card */
.hero-card {
  position: relative;
}

.hero-card img {
  width: 100%;
  border-radius: 16px;
}

.experience-box {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: #fff;
  color: #000;
  padding: 18px 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--primax-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-card {
    margin-top: 40px;
  }
}
@media (max-width:768px) {
  .logo img {
    height:38px;
  }
}

/* About Intro Section */
.about-intro {
  background: #f9fbfc;
  padding: 90px 0;
  text-align: center;
}

.about-intro .container {
  max-width: 900px;
}

.about-intro p {
  font-size: 20px;
  line-height: 1.7;
  color: #2f3e55;
  margin: 30px 0;
}

.about-intro em {
  font-style: italic;
}

.about-intro .line {
  display: inline-block;
  width: 80px;
  height: 3px;
  background: var(--primax-red);
}
/* Services Section */
.services {
  padding: 100px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--primax-blue);
}

.section-header p {
  color: #6b7280;
  font-size: 16px;
}

.services-grid {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
margin-top: 40px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 30px;
  position: relative;
}

.service-card:hover{

  transform:translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);

}

.service-card::before{

  content:"";

  position:absolute;

  top:0;
  left:0;

  width:0%;
  height:4px;

  background:var(--primax-red);

  transition:width 0.4s ease;

}

.service-card:hover::before{

  width:100%;

}
.service-card h3{

  font-size:20px;

  margin-bottom:10px;

}

.service-card p{

  color:#555;

  line-height:1.6;

}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.service-overlay {
  position: absolute;
  margin-top: -60px;
  margin-left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.service-overlay h3 {
  font-size: 18px;
  font-weight: 600;
}

.service-overlay .icon {
  background: var(--primax-red);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-size: 16px;
}

.service-card p {
  padding: 20px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
}

/* Dark image overlay */
.service-card {
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.6)
  );
  z-index: 1;
}

.service-card img {
  position: relative;
  z-index: 0;
}

.service-overlay,
.service-card p {
  position: relative;
  z-index: 2;
}

/* Responsive */
/* Tablet */

@media (max-width:1024px){

.services-grid{

  grid-template-columns:repeat(2,1fr);

}

}

/* Mobile */

@media (max-width:768px){

.services-grid{

  grid-template-columns:1fr;

}

}

/* Stats Section */
.stats {
  background:var(--primax-blue);
  padding:80px 0;
  color:#fff;
  background-image: url(../images/hero-bg\ \(2\).jpg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 30px;
}

.stat h3 {
  font-size:42px;
  color:var(--primax-bg);
  font-weight: 700;
}

.stat p {
  margin-top:8px;
  color:#ddd;
}

/* Projects Section */
.projects {
  padding:100px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-grid img {
  width:100%;
  border-radius:16px;
}

.project-card{

  position:relative;

  overflow:hidden;

  border-radius:12px;

  cursor:pointer;

  transition:transform 0.3s ease;

}

.project-card img{

  width:100%;

  height:100%;

  object-fit:cover;

  transition:transform 0.5s ease;

}

/*overlay on hover*/
.project-overlay{

  position:absolute;

  inset:0;

  background:rgba(11,18,32,0.75);

  display:flex;

  flex-direction:column;

  justify-content:center;

  align-items:center;

  text-align:center;

  color:white;

  opacity:0;

  transform:translateY(20px);

  transition:all 0.4s ease;

}

/* Hover effects */
.project-card:hover img{

  transform:scale(1.1);

}

.project-card:hover .project-overlay{
  opacity:1;
  transform:translateY(0);
}

.project-card:hover{
  transform:translateY(-6px);
}

.project-overlay h3{
  font-size:22px;
  margin-bottom:5px;

}

.project-overlay p{

  font-size:14px;
  opacity:0.9;
}

/* Testimonials Section */

.testimonials {

  padding: 100px 0;
  background: var(--primax-bg);

}

/* Wrapper */

.testimonial-wrapper {

  overflow: hidden;
  margin-top: 40px;

}

/* Horizontal track */

.testimonial-track {

  display: flex;
  gap: 25px;

  overflow-x: auto;

  scroll-snap-type: x mandatory;

  scroll-behavior: smooth;

  padding-bottom: 10px;

}

/* Hide scrollbar */

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-track {
  scrollbar-width: none;
}

/* Cards */

.testimonial-card {

  min-width: 280px;
  max-width: 320px;
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  transition: transform 0.3s ease;

}

@media (max-width:768px){
  .testimonial-card{
    min-width: 240px;
  }
}

.testimonial-card:hover {

  transform: translateY(-6px);

}

.testimonial-card p {

  color: #444;
  line-height: 1.6;

}

.client {

  margin-top: 15px;

}

.client strong {

  color: var(--primax-blue);
  display: block;

}

.client span {

  font-size: 14px;
  color: #777;

}

.testimonial-wrapper {

  position: relative;

}

.testimonial-arrow {

  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  background: var(--primax-red);
  color: white;

  border: none;

  width: 40px;
  height: 40px;

  border-radius: 50%;

  cursor: pointer;

  z-index: 10;

}

.testimonial-arrow.left {
  left: -20px;
}

.testimonial-arrow.right {
  right: -20px;
}

.testimonial-arrow:hover {

  background: var(--primax-blue);

}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--primax-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  margin-top: 40px;
}

/* Contact info */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item h3 {
  color: var(--primax-blue);
  margin-bottom: 6px;
}

.contact-item p {
  color: #555;
}

/* Contact form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primax-red);
}

.contact-form button {
  width: fit-content;
}

/* Mobile */

@media (max-width: 768px) {

  .contact-grid {
    grid-template-columns: 1fr;
  }

}

/* Call to Action Section */
.cta {
  background:var(--primax-red);
  padding:50px 0;
  background-image: url(../images/hero-bg\ \(6\).jpeg);
}

.cta-flex {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.cta h2 {
  color:#fff;
  font-size:32px;
}

/* FOOTER Section */
.footer {
  background:var(--primax-blue);
  color:#ccc;
  padding:60px 0 20px;
}

.footer-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

.footer h3,h4 {
  color:#fff;
}

.footer p {
  font-size:14px;
}

.copyright {
  text-align:center;
  margin-top:40px;
}


/* Scroll Animations */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease;
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* WhatsApp Pulse Animation */

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

@media(max-width:768px){

  .whatsapp-float{
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

}
/* Pulse ring */

.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: whatsapp-ring 2s infinite;
  z-index: -1;
}

/* Hover stops pulse and enlarges */

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.1);
}

.whatsapp-float:hover::before {

  animation: none;

}

/* Keyframes */

@keyframes whatsapp-pulse {

  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }

}

@keyframes whatsapp-ring {

  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }

}


/* parallax setup */

.parallax-section {

  position: relative;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  background-attachment: fixed;

}

/* Overlay for readability */

.parallax-section::before {

  content: "";

  position: absolute;
  inset: 0;

  background: rgba(11,18,32,0.55);

  z-index: 1;

}

.parallax-section .container {

  position: relative;
  z-index: 2;

}

@media (max-width:768px){

  .parallax-section {

    background-attachment: scroll;

  }

}

/* Header blur effect */

.main-header.shrink {

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);

}

/* Scroll progress bar */

.scroll-progress {

  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--primax-red);
  z-index: 2000;
  transition: width 0.1s linear;

}

/* Map Section */
.map-section{

  padding:100px 0;
  background:#f8f9fb;

}

.map-wrapper{

  position:relative;
  width:100%;
  height:420px;
  border-radius:12px;
  overflow:hidden;

}
.map-wrapper iframe{

  width:100%;
  height:100%;
  border:0;

}

/* Responsive */
@media (max-width:768px){

.map-wrapper{

  height:auto;

}

.map-wrapper iframe{

  height:300px;

}

}