/* ==========================================================================
   GLOBAL VARIABLES
   ========================================================================== */

:root {
    --primary-blue: #0A2540;
    --accent-blue: #0066CC;
    --accent-orange: #FF6B00;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
}

/* ==========================================================================
   GLOBAL RESET
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        'Segoe UI',
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background-color: #F1F5F9;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   HEADER / FIXED NAVIGATION
   ========================================================================== */

header {
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 85px;
    position: relative;
    padding: 0 40px;
}

/* ==========================================================================
   BRAND / LOGO
   ========================================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    height: 100%;
}

.brand-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand .logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    white-space: nowrap;
}

.brand .tagline {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 1.2px;
    white-space: nowrap;
}

/* ==========================================================================
   NAVIGATION LINKS
   ========================================================================== */

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    white-space: nowrap;
    position: relative;
    background: linear-gradient(
        135deg,
        var(--accent-orange) 0%,
        var(--accent-blue) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(
        90deg,
        var(--accent-orange),
        var(--accent-blue)
    );
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    filter: brightness(1.25);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   FIXED CONTAINER & FLOATING WIDGET
   ========================================================================== */

.floating-widget-wrapper {
    position: fixed;
    top: 100px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.widget-social-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 1.15rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon.linkedin {
    background-color: #0A66C2;
}

.social-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.right-fixed-widget {
    width: 240px;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--accent-orange);
    transition: transform 0.3s ease;
}

.right-fixed-widget:hover {
    transform: translateY(-3px);
}

.right-fixed-widget h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 800;
}

.right-fixed-widget p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 12px;
}

.right-fixed-widget .btn-widget {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent-orange);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.right-fixed-widget .btn-widget:hover {
    background: #E66000;
}

/* ==========================================================================
   HERO SECTION (RESPONSIVE BANNER FIX)
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    height: auto;
    margin-top: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    padding: 100px 20px 60px;
    overflow: hidden;
    background-image:
        linear-gradient(
            rgba(4, 24, 48, 0.55),
            rgba(4, 24, 48, 0.55)
        ),
        url("../images/integrated.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   PRIMARY BUTTON
   ========================================================================== */

.btn-primary {
    background: var(--accent-orange);
    margin-top: 20px;
    color: #FFFFFF;
    padding: 0.95rem 2.6rem;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition:
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #E66000;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   GENERAL SECTION
   ========================================================================== */

.section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 4rem 3rem;
}

.white-section {
    background: #FFFFFF;
}

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 90px;
    height: 4px;
    background: var(--accent-orange);
    display: block;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-top: -1.8rem;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   SUB HEADINGS
   ========================================================================== */

.sub-heading {
    color: var(--primary-blue);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.8rem;
}

.markets-heading {
    margin-top: 1rem;
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
    width: 100%;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

/* ==========================================================================
   IMAGE CARD & SECTION IMAGES
   ========================================================================== */

.image-card {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #E2E8F0;
}

.section-img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.image-card:hover .section-img {
    transform: scale(1.03);
}

/* ==========================================================================
   COMPANY OVERVIEW & WATERMARK
   ========================================================================== */

.company-overview {
    margin-bottom: 3rem;
}

.watermark-container {
    position: relative;
    overflow: hidden;
}

.watermark-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    object-fit: contain;
}

.dark-box {
    background: var(--primary-blue);
    color: #FFFFFF;
    padding: 3rem;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dark-box-content {
    position: relative;
    z-index: 2;
}

.dark-box h3 {
    color: var(--accent-orange);
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
}

.dark-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.dark-box p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   VISION / MISSION
   ========================================================================== */

.vision-mission {
    margin-bottom: 3rem;
}

.mission-extra {
    margin-top: 1rem;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.09);
}

.card-number {
    background: var(--accent-blue);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.card p {
    color: var(--text-dark);
}

.card ul {
    list-style-type: none;
    padding-left: 0;
}

.card ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.card ul li::before {
    content: "•";
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -3px;
}

/* ==========================================================================
   PRODUCTS & PROJECTS SPECIFIC STYLES
   ========================================================================== */

.product-card, .project-card {
    padding: 1.8rem;
}

.product-image, .project-image {
    min-height: 220px;
    max-height: 220px;
    margin-bottom: 1.5rem;
}

.project-tag {
    align-self: flex-start;
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   CORE VALUES
   ========================================================================== */

.values-grid {
    margin-bottom: 1rem;
}

.value-card {
    background: #FFFFFF;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
}

.value-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.value-card h4 {
    color: var(--primary-blue);
    font-size: 1.35rem;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.service-intro {
    margin-bottom: 2rem;
}

.service-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    display: flex;
    align-items: center;
}

.service-card {
    min-height: 100%;
}

/* ==========================================================================
   COMPLIANCE
   ========================================================================== */

.compliance-grid {
    margin-bottom: 4rem;
}

.compliance-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.compliance-card {
    padding: 2rem;
}

.compliance-card h3 {
    margin-bottom: 1rem;
}

.quality {
    border-top-color: var(--accent-orange);
}

.safety {
    border-top-color: var(--primary-blue);
}

.compliance {
    border-top-color: var(--accent-blue);
}

/* ==========================================================================
   MARKET CARDS
   ========================================================================== */

.market-card {
    height: 100%;
}

.market-image {
    margin-bottom: 1.2rem;
    max-height: 200px;
}

/* ==========================================================================
   CONTACT & QUERY FORM
   ========================================================================== */

.contact-info-grid {
    margin-bottom: 3.5rem;
}

.contact-card {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 6px solid var(--accent-orange);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.business-hours {
    margin-top: 1rem;
}

/* Query Container Box */

.query-container {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.query-header {
    margin-bottom: 2rem;
    text-align: left;
}

.query-header h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.query-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--accent-orange);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: var(--text-dark);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-action {
    margin-top: 1rem;
    text-align: center;
}

.btn-submit {
    background: var(--accent-orange);
    color: #FFFFFF;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition:
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.25);
}

.btn-submit:hover {
    background: #E66000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
}

/* GREEN SUCCESS MESSAGE STYLES */
.form-success-msg {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    background-color: #D4EDDA !important;
    color: #155724 !important;
    border: 1px solid #C3E6CB !important;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    width: 100%;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP / TABLET / MOBILE)
   ========================================================================== */

/* 1. Large Laptops / Desktops (Max 1400px) */
@media screen and (max-width: 1400px) {
    .nav-links a {
        font-size: 1.1rem;
    }
}

/* 2. Small Laptops & Tablets Landscape (Max 1100px) */
@media screen and (max-width: 1100px) {
    .navbar {
        padding: 0 20px;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .nav-links a {
        font-size: 1rem;
    }
    .brand .logo-text {
        font-size: 1.25rem;
    }
}

/* 3. Tablets Portrait View (Max 1024px) */
@media screen and (max-width: 1024px) {
    html {
        scroll-padding-top: 120px;
    }

    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 12px;
    }

    .nav-links {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem 1.5rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero {
        margin-top: 130px;
        min-height: 400px;
        padding: 60px 20px;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .grid-3, .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .section {
        padding: 3.5rem 2rem;
    }

    .floating-widget-wrapper {
        top: auto;
        bottom: 20px;
        right: 20px;
        flex-direction: row;
        gap: 10px;
        z-index: 1001;
    }

    .widget-social-sidebar {
        flex-direction: row;
        gap: 8px;
    }

    .right-fixed-widget {
        width: auto;
        padding: 6px 10px;
    }

    .right-fixed-widget h4, 
    .right-fixed-widget p {
        display: none;
    }
}

/* 4. Small Tablets & Large Mobiles (Max 768px) */
@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: 140px;
    }

    .navbar {
        padding: 12px 15px;
    }

    .brand-logo {
        height: 55px;
    }

    .brand .logo-text {
        font-size: 1.1rem;
    }

    .brand .tagline {
        font-size: 0.7rem;
    }

    .nav-links {
        gap: 0.6rem 1rem;
    }

    .nav-links a {
        font-size: 0.92rem;
    }

    /* Hero Image Fully Responsive */
    .hero {
        margin-top: 120px;
        min-height: 300px;
        height: auto;
        padding: 50px 15px;
        background-size: cover;
        background-position: center;
    }

    .btn-primary {
        margin-top: 15px;
        padding: 0.75rem 1.6rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 2.5rem 1.2rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .sub-heading {
        font-size: 1.45rem;
    }

    /* Fixed Floating Social Icons for Mobile */
    .floating-widget-wrapper {
        position: fixed;
        top: auto;
        bottom: 15px;
        right: 15px;
        left: auto;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        z-index: 9999;
    }

    .widget-social-sidebar {
        flex-direction: row;
        gap: 8px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .right-fixed-widget {
        width: auto;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .right-fixed-widget h4, 
    .right-fixed-widget p {
        display: none;
    }

    .right-fixed-widget .btn-widget {
        font-size: 0.85rem;
        padding: 10px 14px;
        border-radius: 25px;
        box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
    }

    .dark-box, .card, .contact-card, .query-container {
        padding: 1.8rem 1.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* 5. Mobile Devices View (Max 480px) */
@media screen and (max-width: 480px) {
    .brand {
        gap: 8px;
    }

    .brand-logo {
        height: 45px;
    }

    .brand .logo-text {
        font-size: 0.92rem;
    }

    .brand .tagline {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .nav-links {
        gap: 0.4rem 0.8rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero {
        margin-top: 110px;
        min-height: 250px;
        padding: 40px 10px;
    }

    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }

    .product-image, .project-image {
        min-height: 180px;
    }

    .btn-submit {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .floating-widget-wrapper {
        bottom: 12px;
        right: 10px;
        gap: 6px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .right-fixed-widget .btn-widget {
        font-size: 0.78rem;
        padding: 8px 10px;
    }
}

/* ==========================================================================
   FORM VALIDATION STYLES
   ========================================================================== */

/* Red Border on Invalid Input */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #E53E3E !important;
    background-color: #FFF5F5 !important;
}

/* Error Message Text Below Input */
.error-msg {
    color: #E53E3E;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 2px;
    display: block;
    min-height: 18px;
}