/* ==========================
   Base Styles
========================== */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: #f9fafb;
    color: #1f2937;
}

a {
    text-decoration: none;
}

h1, h2, h3 {
    margin: 0;
}

p {
    margin: 0 0 1rem 0;
}

/* ==========================
   Scrollbar Customization
========================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #0d52a2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #093f7e;
}

/* ==========================
   Header
========================== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    height: 50px;
    max-height: 60px;
    object-fit: contain;
}
@media (min-width: 768px) { .logo { height: 60px; } }
@media (min-width: 1024px) { .logo { height: 70px; } }

/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: #4b5563;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0d52a2;
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #2550a3;
}
.nav-item:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #4b5563;
}
.mobile-menu-button i {
    font-size: 1.5rem;
    transition: transform 0.2s ease, color 0.3s ease;
}
.mobile-menu-button i:hover {
    color: #2550a3;
    transform: scale(1.1);
}

/* Mobile Nav */
.mobile-nav {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: max-height 0.4s ease;
}
.mobile-nav.active {
    max-height: 500px;
}
.mobile-nav-item {
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.mobile-nav-item:hover {
    background-color: #f3f4f6;
    color: #2550a3;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-button { display: block; }
}

/* ==========================
   Hero Section
========================== */
.bg-hero-pattern {
    background-image: url('/Assets/Img/Banners/Hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(13, 82, 162, 0.7);
    padding: 60px 24px;
    border-radius: 20px;
    color: #ffffff;
    max-width: 800px;
}
.hero-overlay h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero-overlay p {
    font-size: 1.125rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #0d52a2;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background-color: #093f7e;
    transform: translateY(-2px);
}

/* ==========================
   Sections
========================== */
section { padding: 80px 24px; }
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.section-container img.section-img {
    width: 50%;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.section-container img.section-img:hover {
    transform: scale(1.05);
}
.section-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0d52a2;
    margin-bottom: 20px;
}
.section-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Products Grid */
.section-container-products {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.section-container-products h2 {
    font-size: 2rem;
    color: #0d52a2;
    margin-bottom: 16px;
}
.section-container-products p {
    color: #4b5563;
    margin-bottom: 40px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}
.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d52a2;
    margin-bottom: 8px;
}
.card p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Quality Section */
#quality {
    background-color: #254ea2;
    padding: 60px 24px;
    border-radius: 20px;
    color: #ffffff;
}
.section-container-quality {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.card-grid-quality {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* ==========================
   Contact Section
========================== */
.contact-list {
    list-style: none;
    padding: 0;
    color: #4b5563;
}
.contact-list li { margin-bottom: 8px; }
.contact-list a { color: #0d52a2; text-decoration: underline; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #ffffff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.contact-form label { font-weight: 500; }
.contact-form input,
.contact-form textarea {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0d52a2;
    box-shadow: 0 0 0 3px rgba(13, 82, 162, 0.2);
}

/* ==========================
   Footer
========================== */
footer {
    background-color: #0d52a2;
    color: #ffffff;
    padding: 40px 24px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .section-container {
        flex-direction: row;
        align-items: center;
    }
    .section-text { flex: 1; }
    .section-img { flex: 1; }
}

/* ==========================
   Success Animation
========================== */
.success-checkmark { width: 80px; height: 80px; margin: 20px auto; position: relative; }
.check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #28a745;
    position: relative;
    box-sizing: content-box;
}
.icon-line { height: 5px; background-color: #28a745; display: block; border-radius: 2px; position: absolute; z-index: 10; }
.line-tip {
    width: 25px; left: 14px; top: 46px; transform: rotate(45deg);
    animation: icon-line-tip 0.4s ease forwards;
}
.line-long {
    width: 47px; right: 8px; top: 38px; transform: rotate(-45deg);
    animation: icon-line-long 0.4s ease forwards;
    animation-delay: 0.2s;
}
@keyframes icon-line-tip { 0% { width: 0; left: 1px; top: 19px; } 100% { width: 25px; left: 14px; top: 46px; } }
@keyframes icon-line-long { 0% { width: 0; right: 46px; top: 54px; } 100% { width: 47px; right: 8px; top: 38px; } }
.icon-circle { top: -4px; left: -4px; width: 80px; height: 80px; border-radius: 50%; position: absolute; box-sizing: content-box; border: 4px solid rgba(40, 167, 69, 0.5); }

/* ==========================
   Inputs & Captcha
========================== */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
}

#captchaStatus.correct { color: #28a745; }
#captchaStatus.wrong { color: #dc3545; }

/* ==========================
   Modal Styles
========================== */
.modal-backdrop {
    background-color: transparent !important;
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 1; }

.modal-dialog { max-height: 80vh; margin: 1.75rem auto; }
.modal-content {
    overflow-y: auto;
    max-height: 80vh;
    border-radius: 12px;
}
.modal-content.card {
    border-radius: 12px;
    border: none;
    text-align: justify;
    max-width: 500px;
    margin: auto;
}
.modal-content img { border-radius: 8px; width: 100%; height: auto; }
.modal-content h3 { margin-top: 10px; font-weight: 600; }
.modal-content p { font-size: 0.95rem; color: #555; text-align: justify;}
.show-more { color: #3c9545; font-weight: 500; cursor: pointer; text-decoration: none; }
.show-more:hover { text-decoration: underline; }

/* ==========================
   Blur Background when modal open
========================== */
body.modal-open .blur-background {
    filter: blur(6px);
    transition: filter 0.3s ease-in-out;
}

/* ==========================
   Alert Card
========================== */
.alert-card {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease-in-out;
}

.alert-card.show {
  opacity: 1;
  transform: translateY(0);
}

.alert-card.success {
  background: #e6f9f0;
  border-left: 6px solid #28a745;
  color: #155724;
}

.alert-card.error {
  background: #fdecea;
  border-left: 6px solid #dc3545;
  color: #721c24;
}

.alert-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
