/* style.css - Main Stylesheet */

/* --- GLOBAL VARIABLES --- */
:root {
    --primary-color: #0a2540; /* Deep Navy */
    --secondary-color: #051626; /* Darker Navy (Top Bar) */
    --accent-color: #0d6efd;  /* Bright Blue */
    --text-highlight: #4dabf7; /* Lighter Blue for Logo Text */
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* --- TOP BAR (Thin strip at top) --- */
.top-bar {
    background-color: var(--secondary-color);
    color: #ccc;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar a { 
    color: #ccc; 
    text-decoration: none; 
    transition: color 0.3s; 
}
.top-bar a:hover { 
    color: var(--accent-color); 
}

/* --- MAIN NAVBAR (REDUCED THICKNESS) --- */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    padding: 12px 0; /* Fixed padding */
    overflow: visible; /* THIS IS KEY! */
}

/* LOGO IMAGE (BIGGER) */
.navbar-brand {
    padding: 0;
    position: relative; /* Important! */
    z-index: 10;
}

.navbar-brand img {
    height: 150px; /* NOW you can make it as big as you want! */
    width: auto;
    margin-right: 15px;
    margin-top: -40px;  /* Extends above navbar */
    margin-bottom: -40px;  /* Extends below navbar */
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}
.navbar-brand img:hover { 
    transform: scale(1.05); 
}

/* --- LOGO TEXT STYLES --- */
.brand-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.navbar-brand .brand-main {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 2.6rem; 
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.navbar-brand .brand-sub {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 2.6rem;
    font-weight: 700;
    color: #4dabf7 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Mobile View Adjustments */
@media (max-width: 576px) {
    /* Show full company name on mobile */
    .brand-text-container.d-block.d-sm-none {
        display: none !important;
    }
    
    .brand-text-container.d-none.d-sm-block {
        display: flex !important;
    }
    
    .navbar-brand .brand-main {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .navbar-brand .brand-sub {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .navbar-brand img {
        height: 60px;
        margin-top: -15px;
        margin-bottom: -15px;
        margin-right: 10px;
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
    }
}

/* --- NAVBAR LINKS --- */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    margin: 0 12px;
    font-size: 1.1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: white !important;
}
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* --- CONTACT BUTTON IN NAV --- */
.navbar-nav .nav-link.btn-nav-contact {
    background-color: var(--accent-color);
    color: white !important;
    border-radius: 4px;
    padding: 8px 25px !important;
    margin-left: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link.btn-nav-contact::after {
    display: none !important; 
}

.navbar-nav .nav-link.btn-nav-contact:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.8)), url('media/inspection2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    margin-top: -1px;
}

/* --- PAGE HEADER (For About, Products, Contact pages) --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4166 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    margin-top: -1px;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* --- SECTIONS GENERAL --- */
section { 
    padding: 80px 0; 
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--accent-color);
    margin-top: 10px;
}

/* --- CARDS & FEATURES --- */
.feature-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* --- PRODUCTS PAGE SPECIFIC STYLES --- */
.product-section {
    padding: 60px 0;
}

.badge-custom {
    background-color: var(--accent-color);
    color: white;
    padding: 6px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-list li {
    padding: 8px 0;
    font-size: 1rem;
}

.material-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.material-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.feature-icon-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.feature-icon-box:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

/* --- ABOUT PAGE SPECIFIC STYLES --- */
.mission-box {
    background-color: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
}

.profile-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, #4dabf7 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.step-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.value-item {
    padding: 10px 0;
    font-size: 1.1rem;
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-form-card {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.contact-form-card .form-control {
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 5px;
    transition: all 0.3s;
}

.contact-form-card .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.map-container {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- BUTTONS --- */
.btn-primary {
    background-color: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-dark {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- FOOTER --- */
footer {
    background-color: #000;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 60px 20px 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .navbar-nav .nav-link {
        margin: 8px 0;
        padding: 8px 0;
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link.btn-nav-contact {
        margin: 15px 0 0 0;
        display: inline-block;
        width: 100%;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Better spacing for cards on mobile */
    .feature-card,
    .step-card,
    .feature-icon-box {
        margin-bottom: 20px;
    }
    
    /* Adjust stat numbers on mobile */
    .stat-number {
        font-size: 2rem;
    }
    
    /* Better button sizing on mobile */
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .navbar-brand .brand-main,
    .navbar-brand .brand-sub {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand img {
        height: 50px !important;
        margin-right: 8px !important;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
}

/* --- UTILITY CLASSES --- */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
}

.rounded {
    border-radius: 8px !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* --- IMAGE STYLING --- */
img {
    max-width: 100%;
    height: auto;
}

.img-fluid.rounded {
    border-radius: 8px;
}

/* --- ALERT CUSTOMIZATION --- */
.alert-light {
    background-color: #f8f9fa;
    border-color: #e0e0e0;
}

.alert-white {
    background-color: white;
    border-color: #e0e0e0;
}