* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Global Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Sleek Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 5px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(26, 95, 122, 0.2);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 95, 122, 0.5);
}

/* Honeypot field - Keep hidden but present */
.hp-field {
    display: none !important;
    visibility: hidden !important;
}

/* Improve textarea usability hint */
textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Header & Navigation */
header {
    background-color: #1a5f7a;
    /* Solid background to prevent layering look */
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 0;
    /* Let nav-container handle the shrinkage */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 60px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo img {
    height: 60px;
    /* Increased size significantly */
    width: auto;
    object-fit: contain;
    transform: scale(1.15);
    /* Slight crop of internal whitespace */
    margin-right: 15px;
    /* Space between logo and text */
}

.logo span {
    color: #4dabf7;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    /* Large and clear */
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    margin-left: auto;
    z-index: 1001;
    /* Above nav links */
}

.mobile-menu-btn:hover {
    color: #4dabf7;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 35px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #4dabf7;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: #4dabf7;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Carousel */
.hero-carousel {
    height: 100vh;
    position: relative;
    margin-top: 70px;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding-left: 50px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #4dabf7, #339af0);
    color: white;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #339af0, #228be6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: white;
    color: #1a5f7a;
}

/* Section Styles */
section {
    padding: 15px 0;
}

.section-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: #1a5f7a;
    text-align: center;
    position: relative;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4dabf7, #1a5f7a);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    max-width: 700px;
    margin: 30px auto 50px;
    line-height: 1.6;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-content {
    padding: 25px;
}

.product-category {
    display: inline-block;
    background: #e3f2fd;
    color: #1a5f7a;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a5f7a;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-specs {
    list-style: none;
    margin-bottom: 25px;
}

.product-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs li strong {
    color: #1a5f7a;
}

.product-buttons {
    display: flex;
    gap: 10px;
}

.btn-view,
.btn-inquiry {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-view {
    background: #1a5f7a;
    color: white;
}

.btn-inquiry {
    background: #4dabf7;
    color: white;
}

.btn-view:hover {
    background: #15526b;
}

.btn-inquiry:hover {
    background: #339af0;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1a5f7a;
    margin-bottom: 5px;
}

/* Modal Styles - CENTERED */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    transform: translateY(20px);
}

.modal.active .modal-content {
    transform: translateY(0);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    background: #1a5f7a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h2 {
    font-size: 28px;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.product-detail-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Contact Section - REDESIGNED */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a5f7a;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #4dabf7;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-detail:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.contact-detail i {
    font-size: 22px;
    margin-right: 15px;
    color: #1a5f7a;
    margin-top: 3px;
    min-width: 25px;
}

.contact-detail-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #666;
    font-weight: 600;
}

.contact-detail-content p {
    color: #333;
    line-height: 1.5;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a5f7a;
    position: relative;
    padding-bottom: 15px;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #4dabf7;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.required:after {
    content: " *";
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #4dabf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
    background: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Phone Input Group Styling */
.phone-input-group {
    display: flex;
    flex-wrap: wrap;
    /* Added to allow validation message to wrap */
    gap: 8px;
    align-items: stretch;
}

.country-code-select {
    width: 120px;
    padding: 14px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.country-code-select:focus {
    border-color: #4dabf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
    background: white;
}

.phone-number-input {
    flex: 1;
    min-width: 0;
}

/* Responsive adjustments for phone input group */
@media (max-width: 480px) {
    .phone-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .country-code-select {
        width: 100%;
    }
}

.message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a5f7a, #15526b);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: white;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: #4dabf7;
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #4dabf7;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover {
    color: #4dabf7;
    padding-left: 5px;
}

.footer-links ul li a i {
    margin-right: 10px;
    font-size: 14px;
}

.footer-contact .contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background: transparent;
    padding: 0;
}

.footer-contact .contact-detail i {
    font-size: 18px;
    margin-right: 15px;
    color: #4dabf7;
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 992px) {

    .about-content,
    .product-detail,
    .contact-container,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-left: 30px;
        padding-right: 30px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .contact-info,
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 5px 20px;
    }

    .nav-container {
        padding: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #1a5f7a;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 0 0 25px 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 18px;
        padding: 10px 0;
        display: block;
    }

    .hero-carousel {
        height: 80vh;
        margin-top: 45px;
        margin-bottom: 20px;
    }

    .hero-slide {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 15px;
    }

    .section-title {
        font-size: 32px;
    }

    section {
        padding: 40px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .product-buttons {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* intl-tel-input enhancements */
.iti {
    width: 100%;
}

.iti__search-input {
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    margin: 8px !important;
    outline: none !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.iti__search-input:focus {
    border-color: #4dabf7 !important;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1) !important;
}

.iti__country-list {
    width: max-content !important;
    min-width: 100% !important;
    max-width: 400px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    padding: 5px 0 !important;
    margin-top: 5px !important;
    background: #fff !important;
}

.iti__country {
    padding: 10px 15px !important;
    transition: all 0.2s ease !important;
}

.iti__country:hover {
    background-color: #f8f9fa !important;
}

.iti__country.iti__highlight {
    background-color: #eef6ff !important;
}

.iti__flag-box {
    margin-right: 12px !important;
}

.iti__country-name {
    font-size: 14px !important;
    color: #333 !important;
}

.iti__dial-code {
    color: #888 !important;
    font-size: 13px !important;
}

/* Validation styles */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    width: 100%;
    /* Force full width in flex container */
    flex-basis: 100%;
    /* For flex layout */
}