/* General Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-image: url('https://rvsystem.wordpress.com/wp-content/uploads/2025/09/defence_bg.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px; /* smaller logo */
    margin-right: 8px;
}

.logo span {
    font-size: 18px; /* smaller text */
    font-weight: bold;
}

/* Links */
.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 16px; /* reduced font size */
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffcccc;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

/* Hero Text */
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    top: 55%;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 28px; /* smaller */
    margin: 0;
}

.hero-text p {
    font-size: 16px; /* smaller */
    margin-top: 10px;
}

/* Responsive Navbar & Hero */
@media (max-width: 1024px) {
    .nav-links a {
        margin-left: 12px;
        font-size: 15px;
    }

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0,0,0,0.9);
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links a {
        margin: 10px 0;
        font-size: 14px; /* mobile smaller */
    }

    .hamburger {
        display: block;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 14px;
    }
}

/* Contact Section */
#contact {
    background: #ffffff;
}

.contactus-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-info {
    font-size: 18px; /* smaller */
    color: #666;
}

.contact-info a {
    color: #1a73e8;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-icon {
    width: 18px; /* smaller */
    height: auto;
    margin-right: 5px;
    display: inline-block;
}

.contact-form {
    flex: 1 1 300px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px; /* smaller */
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 14px; /* smaller */
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form button {
    padding: 10px;
    background-color: red;
    color: white;
    border: none;
    font-size: 14px; /* smaller */
    cursor: pointer;
    border-radius: 4px;
}

.contact-form button:hover {
    background-color: #cc0000;
}

.video {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Mobile Contact Adjustments */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        width: 100%;
    }

    .contact-info {
        font-size: 16px;
    }
}
    /* Apply same font-family to everything */
    body,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    a,
    span,
    div,
    input,
    textarea,
    button {
        font-family: 'Arial, sans-serif';
    }

    /* Uniform title height / line-height */
    h1,
    h2,
    h3 {
        line-height: 1.2;
        /* Adjust if needed */
        margin-top: 0.5em;
        margin-bottom: 0.5em;
    }

    /* Optional: make buttons and inputs inherit font */
    input,
    textarea,
    button {
        font-family: inherit;
    }
     @media (max-width: 992px) {
        #about > div {
            gap: 30px !important;
            width: 90% !important;   /* shrink width */
        }
    }

    /* Small tablets & large phones */
    @media (max-width: 768px) {
        #about > div {
            flex-direction: column !important; /* stack vertically */
            width: 95% !important;             /* shrink width */
        }
        #about > div > div {
            padding: 15px !important;
        }
        #about p {
            font-size: 15px !important;
        }
    }

    /* Mobile phones */
    @media (max-width: 480px) {
        #about {
            padding: 30px 15px !important;
        }
        #about > div {
            width: 100% !important;  /* almost full width with padding */
        }
        #about h2 {
            font-size: 22px !important;
        }
        #about p {
            font-size: 14px !important;
            line-height: 1.6 !important;
        }
        #about a {
            padding: 10px 20px !important;
            font-size: 14px !important;
        }
    }
    
    /* Tablets */
    @media (max-width: 992px) {
        #sensovibe-section > div {
            flex-direction: column !important;
            align-items: center !important;
        }
        #sensovibe-section > div > div {
            width: 80% !important;
        }
        .video iframe {
            height: 400px !important;
        }
    }

    /* Mobile phones */
    @media (max-width: 480px) {
        #sensovibe-section > div > div {
            width: 95% !important;
            padding: 15px !important;
        }
        #sensovibe-section h2 {
            font-size: 1.5rem !important;
        }
        #sensovibe-section p {
            font-size: 14px !important;
            line-height: 1.4 !important;
        }
        #sensovibe-section a {
            padding: 10px 20px !important;
            font-size: 0.9rem !important;
        }
        .video iframe {
            height: 250px !important;
        }
    }





    /* Shrink the product cards on smaller screens but keep alignment */
@media (max-width: 768px) {
    .product-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        align-items: center !important; /* Center product card on mobile */
        padding: 10px; /* Ensure there's some spacing */
    }

    .product-img, .product-text {
        width: 100% !important;
        padding: 15px !important;
    }

    .product-img img {
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important; /* Center the image */
        display: block !important; /* Ensure block element for margin auto */
        border-radius: 6px; /* Optional: add some rounded corners */
    }

    .product-text h3 {
        font-size: 20px !important;
        text-align: center;  /* Optional: Center text for mobile */
    }

    .product-text p {
        font-size: 14px !important;
        text-align: center;  /* Optional: Center paragraph text */
    }
}




    /* Responsive CSS */
/* Media Queries for Responsive Design */

/* For Tablets and Smaller Screens */
@media (max-width: 768px) {
    #contact-container {
        flex-direction: column !important;
        align-items: center !important; /* Center the content */
        gap: 30px !important;
        width: 95% !important;
    }

    .contact-left img {
        max-width: 180px !important;
        margin: 0 !important; /* Center image */
    }

    .contact-left p {
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align icons and text horizontally */
        margin-bottom: 16px;
    }

    .contact-left img {
        margin-right: 12px;
    }

    #contact-container input, #contact-container textarea, #contact-container button {
        font-size: 14px !important;
        width: 100% !important;  /* Full width for mobile inputs */
        box-sizing: border-box;   /* Ensure proper width handling */
    }

    .contact-form {
        max-width: 400px !important;  /* Control form size */
    }
}

/* For Smaller Mobile Screens */
@media (max-width: 480px) {
    #contact-container {
        gap: 20px !important;
    }

    .contact-left img {
        max-width: 150px !important;  /* Adjust image size */
        /* margin: 0 auto !important; */
        display: block; /* Make sure image is block-level */
    }

    .contact-form {
        max-width: 250px !important; /* Smaller form */
    }

    #contact-container input, #contact-container textarea, #contact-container button {
        font-size: 13px !important;
    }

    .contact-left p {
        font-size: 15px !important; /* Reduce font size for mobile */
        margin-bottom: 12px; /* Adjust spacing between elements */
    }

    .contact-left img {
        max-width: 130px !important; /* Further decrease image size on very small screens */
    }
    .qr-img{
        padding-left: 67px;
    }
    .qr-text{
        padding-left: 55px !important;
    }
}

.contact-left {
    min-width: 280px;
    text-align: center;
}

.qr-img {
    max-width: 220px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

.qr-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
}

.contact-info {
    text-align: left;
    padding: 0 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 17px;
    color: #333;
    margin-bottom: 16px;
}

.contact-item.top-align {
    align-items: flex-start; /* so location aligns top */
}

.icon {
    height: 22px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a {
    color: #003366;
    text-decoration: none;
    word-break: break-word; /* fixes overflow on small screens */
}

.address-title {
    color: #d61818;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .contact-left {
        text-align: center;
    }
    .contact-info {
        text-align: center;
    }
    .contact-item {
        justify-content: center;
        text-align: left;
    }
    .contact-item.top-align {
        justify-content: flex-start;
    }
}