/* Custom styles for GNirMit Global website */

body {
    font-family: "Century Gothic", "CenturyGothic", AppleGothic, sans-serif;
    font-size: 16px; 
    line-height: 1.6;
    color: #333;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #28a745;
    display: flex;
    align-items: flex-end;
    vertical-align: bottom;
}

.nav-header {
    margin: 0;
    font-size: 1.2em;
    font-family: 'Arial', sans-serif;
}

.hero {
    background: linear-gradient(to right, #28a745, #dc3545);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
}

.carousel {
    height: 400px;
}

.carousel img {
    height: 400px;
    object-fit: cover;
}

.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #28a745;
}

.card {
    border: 1 px solid #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    margin-bottom: 0.5em;
}

footer {
    background: #28a745;
    color: white;
    padding: 20px 0;
}

.innerbanner {
    position: relative;
}

.innerbanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.innerbanner .innerbanner_text {
    position: relative;
    z-index: 2;
}
.innerbanner { 
    height: 200px; 
    display: flex; 
    align-items: center; 
}
.innerbanner_text { text-align: center; color: white; }
.bottom-img { 
    width:100%;
    max-width: 680px;
}

.main-title { font-size: 3rem; font-weight: bold; }        
.footer {
    background: #343a40;
    color: white;
    padding: 40px 0;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.global-reach-img {
    width: 170%;
    max-width: 500px;
    height: auto;
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.5rem !important;
    }
    .carousel-caption p {
        font-size: 0.9rem !important;
    }
}
@media (max-width: 500px){
    .global-reach-img {
        width: 100%;
        height: auto;
    }
}
@media (min-width: 345px) {
    .brand-global {
        display: inline !important;
    }
}


/* Product card styles */
.product-card {
    overflow: hidden;
}

.title {
    color: #28a745; 
    font-weight: bold;
}
.primary-color{
    color: #28a745;
}
.image-container {
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.square-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.image-container:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: #333 1px 1px 4px;
    font-size: 2em;
    font-weight: bold;
    transition: background 0.5s ease;
}
.overlay:hover {
    background: rgba(0, 0, 0, 0);
    font-weight: bold;
}

.text-justify {
    text-align: justify;
}

.width-100 {
    width: 100%;
}


/* Background section */
.enquiry-section {
  position: relative;
  background: url("../images/ship-plane-bg.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* white blur overlay */
.enquiry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.6);
  backdrop-filter: blur(2px);
}

/* content container */
.enquiry-container {
  position: relative;
  max-width: 900px;
}

/* title */
.enquiry-title {
  font-weight: 200;
  font-size: 1.7rem;
  color: #fff;
}

/* form controls */
.enquiry-form .form-control {
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}

/* submit button */
.submit-btn {
  background-color: #e53935;
  color: #fff;
  border-radius: 999px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  font-weight: 600;
  border: none;
}

.submit-btn:hover {
  background-color: #c62828;
}

/* Parallax Scrolling Effect */
.parallax {
    position: relative;
    overflow: hidden;
    background-image: url('../images/dark-world-map-gray.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.parallax-layer {
    position: absolute;
    width: 80%;
    height: 110%;
    max-height: 900px;
    background-size: cover;
    background-repeat: no-repeat;
}

.left-layer {
    bottom: 0;
    left: 0;
    background-image: url('../images/frame-3-l.png'), linear-gradient(to right, #fff, transparent);
    background-color: transparent; /* Fallback solid color */
    background-position: left center; /* Aligns image to right, centered vertically */
    background-size: auto 100%; /* Width auto (natural proportion), height exactly 100% */
    transform: translateX(-100px);
    animation: slideInLeft 1s ease-out forwards;
}
.right-layer {
    right: 0;
    bottom: 0;
    background-image: url('../images/frame-3-r.png'), linear-gradient(to left, #fff, transparent);
    background-color: transparent; /* Fallback solid color */
    background-position: right center; /* Aligns image to right, centered vertically */
    background-size: auto 100%; /* Width auto (natural proportion), height exactly 100% */
    transform: translateX(100px);
    animation: slideInLeft 2s ease-out forwards;
}
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.parallax-overlay {
    position: relative;
    z-index: 0;
}
.parallax-overlay-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
}

.parallax-overlay .container {
    padding: 20px;
    border-radius: 10px;
}
.center-logo {
    width: 50%;
    max-width: 200px; 
    border-radius: 50%; 
    box-shadow: 0 0px 1em rgba(0, 0, 0, 0.1); 
    z-index: 3;
}

@media (max-width: 680px) {
    .left-layer{
        top: 0px;
        width: 100%;
        bottom: 0px;
        background-position: left center; /* Aligns image to right, centered vertically */
        background-size: auto 100%; /* Width auto (natural proportion), height exactly 100% */
    }
}
@media (max-width: 319px) {
    .right-layer{
        visibility: hidden;
    }
}

.quality-compliance{
    background-image: url('../images/quality-bg.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.contact-form-basic{
    background-image: url('../images/contact-form-bg.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.contact-info {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
