html {
  font-size: 125.5%; /* 18px instead of 16px */
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

header {
  background: #0b1f3a;
  color: white;
  padding: 15px;
}

nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}

.hero {
  height: 60vh;
  background: url('../images/hero.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  text-shadow: 0 2px 4px black;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 40px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Default light mode */
body {
  background-color: #ffffff;
  color: #212529;
}

/* Dark mode */
body.dark-mode {
  background-color: #121212;
  color: #e4e4e4;
}

body.dark-mode .navbar {
  background-color: #000 !important;
}

body.dark-mode .text-muted {
    color: #cfcfcf !important;
}

body.dark-mode .card {
  background-color: #1e1e1e;
  color: #fff;
  border-color: #333;
}

body.dark-mode .kpi-section {
    background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
}

body.dark-mode .kpi-card {
    background: #1e1e1e;
    box-shadow: 0 10px 35px rgba(0,0,0,.4);
    border: 1px solid #2c2c2c;
}

body.dark-mode .kpi-card h2 {
    color: #ff7a1a; /* slightly brighter orange for dark mode */
}

body.dark-mode .kpi-card span {
    color: rgba(255,255,255,0.75);
}

body.dark-mode .kpi-section h2 {
    color: #ffffff;
}

.kpi-section,
.kpi-card,
.kpi-card h2,
.kpi-card span {
    transition: all 0.3s ease;
}

body.dark-mode .kpi-section .text-muted {
    color: rgba(255,255,255,0.7) !important;
}

body.dark-mode a {
  color: #f8f9fa;
}

.footer-section {
    background: linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );
    color: #ffffff;
}

.footer-logo {
    max-height: 80px;
    transition: transform .4s ease;
}

.footer-logo:hover {
    transform: scale(1.08);
}

.footer-card {
    padding: 15px;
    transition: all .3s ease;
}

.footer-card:hover {
    transform: translateY(-5px);
}

.footer-title {
    color: #ffc107;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.footer-title::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    background: #ffc107;
    margin-top: 8px;
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
}

.footer-bottom {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-link {
    color: #ffc107;
    text-decoration: none;
    transition: color .3s ease;
}

.footer-bottom-link:hover {
    color: #ffffff;
}

.hero-section {
    min-height: 700px;
    position: relative;
    background-image: url('../images/hero.jpg');
    background-position: center center;
    background-size: cover;      /* fills the section */
    background-repeat: no-repeat; /* prevents tiling */
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;

    /* Dark on left, fading to transparent */
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.75) 35%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    line-height: 1.15;
}

.hero-content .btn {
    border-radius: 50px;
    padding: 12px 28px;
}

.kpi-section {
    padding: 90px 0;
    background: linear-gradient(180deg,#f8f9fa 0%,#ffffff 100%);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.kpi-card {
    background: #fff;
    padding: 35px 20px;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);

    opacity: 0;
    transform: translateY(50px);

    animation: slideUp .8s ease forwards;
    transition: all .35s ease;
}

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(255,102,0,.20);
}

.kpi-card h2 {
    color: #ff6600;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.kpi-card span {
    color: #6c757d;
    font-size: 1rem;
}

.col-md-3:nth-child(1) .kpi-card {
    animation-delay: .1s;
}

.col-md-3:nth-child(2) .kpi-card {
    animation-delay: .25s;
}

.col-md-3:nth-child(3) .kpi-card {
    animation-delay: .4s;
}

.col-md-3:nth-child(4) .kpi-card {
    animation-delay: .55s;
}

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

.operation-card {
    height: 250px;
    perspective: 1200px;
}

.operation-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .8s cubic-bezier(.4,.2,.2,1);
    transform-style: preserve-3d;
}

.operation-card:hover .operation-card-inner {
    transform: rotateY(180deg);
}

.operation-card-front,
.operation-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    backface-visibility: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 30px;
    text-align: center;
}

/* Front Side */
.operation-card-front {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: all .4s ease;
}

.operation-card-front h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
}

/* Back Side */
.operation-card-back {
    transform: rotateY(180deg);

    background: linear-gradient(
        135deg,
        #ff6600,
        #ff8533
    );

    color: #fff;
    box-shadow: 0 15px 40px rgba(255,102,0,.30);
}

.operation-card-back h5 {
    font-weight: 700;
    margin-bottom: 15px;
}

.operation-card-back p {
    margin: 0;
    line-height: 1.7;
}

/* Floating effect */
.operation-card:hover {
    transform: translateY(-10px);
    transition: .4s ease;
}

/* Animated glow */
.operation-card-back::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.1),
        rgba(255,255,255,.25),
        rgba(255,255,255,.1)
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

body.dark-mode .operation-card-front {
    background: #1e1e1e;
    border: 1px solid #333;
}

body.dark-mode .operation-card-front h5 {
    color: #f8f9fa;
}

body.dark-mode .operation-card-back {
    background: linear-gradient(135deg, #ff6a00, #ff3d00);
}

.whatsapp-float {
    position: fixed;

    bottom: 25px;
    right: 25px;

    width: 70px;
    height: 70px;

    border-radius: 50%;

    overflow: hidden;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 25px rgba(0,0,0,0.25);

    animation: floatUpDown 2.5s ease-in-out infinite;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 50%;
}

.whatsapp-float:hover {
    transform: scale(1.1);

    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

@keyframes floatUpDown {

    0% {
        transform: translateY(0);
    }

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

    100% {
        transform: translateY(0);
    }

}

.whatsapp-float::before {

    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    background: rgba(37,211,102,0.3);

    z-index: -1;

    animation: pulse 2s infinite;
}

@keyframes pulse {

    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }

}

@media (max-width: 768px) {

    .whatsapp-float {
        width: 60px;
        height: 60px;

        right: 15px;
        bottom: 15px;
    }

}



.safety-section {
    min-height: 700px;
    position: relative;
    background-image: url('../images/safety.jpg');
    background-position: center center;
    background-size: cover;      /* fills the section */
    background-repeat: no-repeat; /* prevents tiling */
    overflow: hidden;
}

.safety-section::before {
    content: "";
    position: absolute;
    inset: 0;

    /* Dark on left, fading to transparent */
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.75) 35%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}

.safety-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.safety-content h1 {
    line-height: 1.15;
}

.safety-content .btn {
    border-radius: 50px;
    padding: 12px 28px;
}