/* 
    Color Palette:
    Navy Blue: #0A2463
    White: #FFFFFF
    Red: #D83121
    Light Gray: #F7F7F7
    Text Color: #333333
    Gray: #888888
*/

:root {
    --navy-blue: #0A2463;
    --white: #FFFFFF;
    --red: #D83121;
    --light-gray: #F7F7F7;
    --text-color: #333333;
    --gray: #888888;
    --light-blue: #29B6F6;
}


/* --- General Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--red);
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}


.see-all {
    color: var(--red);
    font-weight: 500;
}

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

.grid-container {
    display: grid;
    gap: 30px;
}

.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }
.grid-6-cols { grid-template-columns: repeat(6, 1fr); }


.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-red {
    background-color: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}

.btn-red:hover {
    background-color: #c02a1b;
}

.btn-gray {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-gray:hover {
    background-color: var(--white);
    color: var(--text-color);
}

.btn-red-outline {
    border: 1px solid var(--red);
    color: var(--red);
    background: var(--white);
    padding: 8px 16px;
}

.btn-red-outline:hover {
    background: var(--red);
    color: var(--white);
}

.btn-white-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-white-outline:hover {
    background: var(--white);
    color: var(--text-color);
}

.btn-navy {
    background-color: var(--navy-blue);
    color: var(--white);
    border: none;
    width: 100%;
    font-size: 1.1rem;
}

.btn-navy:hover {
    opacity: 0.9;
}


/* --- Section 1: Header --- */
#main-header .top-bar {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

#main-header .top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo img {
    height: 66px;
    /* Placeholder - user needs to provide logo */
    background-color: #ffffff;
    padding: 5px;
    border-radius: 5px;
}

#main-header .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 15px; /* Add gap between items */
}

#main-header .contact-info span {
    font-size: 0.9rem;
    color: var(--gray);
    white-space: nowrap; /* Prevent wrapping within a span */
}

#main-header .contact-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

#main-header .contact-info i {
    color: var(--red);
    margin: 0 5px 0 15px;
}

#main-nav {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-menu li a {
    padding: 10px 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

#main-menu li a:hover {
    color: var(--red);
}

.nav-toggle {
    display: none;
}

/* --- Section 2: Hero Banner --- */
#hero-banner {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/header.jpg');
    height: 80vh;
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    justify-content: flex-start; /* Align content to left */
    color: var(--white);
    padding: 60px;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}


/* --- Section 3: Service Categories --- */
.service-card {
    background-color: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--light-blue);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 0 0 10px;
    font-weight: 900;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-card a {
    color: var(--text-color);
    font-weight: 700;
}

/* --- Section 4 & 7: Horizontal Scroll --- */
.horizontal-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    padding: 20px; /* Increased padding to show shadow */
    margin: -20px; /* Negative margin to compensate for padding */
    scroll-snap-type: x mandatory;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: var(--red);
    border-radius: 10px;
}


.project-card, .partner-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 0 0 300px; /* Do not shrink, do not grow, base width 300px */
    margin: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
}

.project-card h4, .project-card p, .project-card .btn {
    margin: 0 15px 10px;
}

.project-card h4 {
    font-size: 1.1rem;
    color: var(--navy-blue);
    font-weight: 700;
}

.project-card p {
    color: var(--gray);
    font-size: 0.9rem;
    flex-grow: 1;
}

.project-card .btn {
    margin-bottom: 15px;
}

.partner-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.partner-card-content {
    padding: 20px;
    text-align: left;
}

.partner-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy-blue);
}

.partner-card p {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- Section 5: Security Equipment --- */
.equipment-scroll-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex-shrink: 0;
}

.equipment-item, .equipment-list-item {
    transition: all 0.3s ease;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.equipment-item:hover, .equipment-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.equipment-item {
    width: 280px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.equipment-item-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border: 1px solid #78a9e9;
    padding: 5px;
    border-radius: 10px;
}

.equipment-item-images img {
    width: calc(33.333% - 7px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
    background-color: var(--light-gray);
}

.equipment-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.equipment-item p {
    font-size: 0.9rem;
    color: var(--gray);
}

.equipment-list-item {
    flex: 0 0 320px;
    padding: 20px;
}

.equipment-list-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.equipment-list-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.equipment-list-item p {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* --- Section 6: Company Introduction --- */
#about {
    background-image: linear-gradient(to left, rgba(5, 2, 67, 0.436) 50%, transparent 100%), url('../images/header_2.jpg');
    background-size: cover;
    background-position: top left;
    padding: 100px 0;
    display: flex;
    justify-content: flex-end;
}

.about-content {
    width: 50%;
    padding: 0 60px;
}

.about-text {
    background-color: rgba(10, 36, 99, 0.8); /* Semi-transparent navy */
    color: rgba(220, 227, 243, 0.8);
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}

.about-text p {
    margin-bottom: 30px;
}


/* --- Section 8: Key Metrics --- */
#metrics {
    background-color: var(--navy-blue);
    color: var(--white);
}
.metric-item {
    text-align: center;
}

.metric-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--red);
}

.metric-item p {
    font-size: 1.1rem;
}

/* --- Section 9: Team Section --- */
.team-member {
    text-align: center;
}

.team-member img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member h4 {
    font-size: 1.3rem;
    margin-top: 15px;
}


/* --- Section 10: Free Consultation Form --- */
.consultation-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.consultation-form {
    padding: 50px;
}

.consultation-form .section-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--navy-blue);
}
.consultation-form .section-title::after{
    display: none;
}

.consultation-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consultation-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.consultation-form input,
.consultation-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: #F9F9F9;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1rem;
}

.consultation-form input::placeholder,
.consultation-form textarea::placeholder {
    color: #999;
}

.consultation-form .form-note {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
}

.consultation-form .btn-navy {
    background-color: var(--navy-blue);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px;
    border-radius: 8px;
    cursor: pointer;
}

.consultation-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- Original Contact Form Styles - Kept for reference or other pages --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 1rem;
}

.contact-map img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


/* --- Section 11: Icon Info Row --- */
.info-item {
    text-align: center;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 15px;
}


/* --- Section 12: Footer --- */
#main-footer {
    background-color: var(--navy-blue);
    color: #eee;
    padding: 60px 0 20px;
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--red);
}


.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--red);
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--red);
}

.payment-icons {
    margin-top: 15px;
}
.payment-icons i {
    font-size: 2rem;
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}
.footer-bottom p {
    margin-bottom: 5px;
}


/* --- Responsiveness --- */
@media (max-width: 992px) {
    .grid-3-cols { grid-template-columns: 1fr 1fr; }
    .grid-6-cols { grid-template-columns: repeat(3, 1fr); }
    .equipment-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    #about { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('./images/header.jpg'); }
    .about-content { width: 100%; padding: 0 15px; }
}


@media (max-width: 768px) {
    .section-title { font-size: 1.8rem; }
    .grid-3-cols, .grid-4-cols { grid-template-columns: 1fr; }
    .grid-6-cols { grid-template-columns: 1fr 1fr; }
    .footer-layout { grid-template-columns: 1fr; }

    #main-header .top-bar .container { flex-direction: column; gap: 10px; }

    #main-nav {
        padding: 5px 0;
    }
    #main-nav .container {
        position: relative;
        justify-content: flex-end;
        align-items: center;
        min-height: 50px;
    }

    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }

    #main-menu {
        display: none; /* Hide menu by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--navy-blue);
        flex-direction: column;
        z-index: 1000;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    #main-menu.active {
        display: flex;
    }

    #main-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #main-menu li:last-child {
        border-bottom: none;
    }

    #main-menu li a {
        display: block;
        padding: 15px;
    }
    
    #hero-banner { height: 60vh; padding: 30px; text-align: center; align-items: center; justify-content: center; }
    .hero-content h1 { font-size: 2.2rem; }
    
    .consultation-form {
        padding: 30px;
    }

    .consultation-box {
        grid-template-columns: 1fr;
    }
}

/* --- Horizontal Scroll Buttons --- */
.horizontal-scroll-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.scroll-btn:hover {
    background-color: var(--red);
    color: var(--white);
}

.scroll-btn.prev {
    left: -22px;
}

.scroll-btn.next {
    right: -22px;
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Adjust button position inside container for better visibility */
@media (max-width: 1250px) {
    .scroll-btn.prev {
        left: 10px;
    }
    .scroll-btn.next {
        right: 10px;
    }
} 