/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #003433;
    --secondary-color: #ffb400;
    --text-dark: #333;
    --bg-light: #f4f8f7;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html, body {
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    scroll-behavior: smooth;
    width: 100%;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* =========================================
   2. UTILITY CLASSES & COMPONENTS
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Safe padding for mobile */
}

.section {
    padding: 60px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background: var(--primary-color); color: #fff; }

.mb-50 { margin-bottom: 50px; }
.mt-20 { margin-top: 25px; }
.sub-text { text-align: center; max-width: 700px; margin: 0 auto 40px; color: #666; font-size: 1.1rem; }

/* Responsive Images Fix */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: #000;
}
.btn-primary:hover {
    background: #e5a200;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}
.btn-secondary:hover {
    background: var(--secondary-color);
    color: #000;
}
.full-width { display: block; width: 100%; text-align: center; }

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    background: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px; /* Adjusted for better mobile fit */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--secondary-color); }

/* Language Selector */
.lang-selector select {
    padding: 5px 10px;
    border-radius: 4px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
}
.lang-selector select option {
    background: var(--primary-color);
    color: white;
}

.hamburger {
    display: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 1002;
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 90vh; /* Keeps it full screen */
    min-height: 500px; /* Minimum height for mobile content */
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    background-color: var(--primary-color);
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    animation: zoomWiggle 20s infinite alternate ease-in-out;
}

@keyframes zoomWiggle {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.1) translateY(-10px); }
    100% { transform: scale(1.2) translateY(0); }
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 52, 51, 0.6); /* Slightly darker for better text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.highlight { color: var(--secondary-color); }

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* =========================================
   5. PRODUCTS & CARDS (FIXED)
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* IMAGE FIX: Aspect Ratio to prevent cutting on desktop */
.card-img {
    width: 100%;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: auto; /* Allow height to adjust */
    aspect-ratio: 16/9; /* Standard Youtube-like ratio */
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 25px;
    text-align: center;
}

.card-body h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.price-tag {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 15px 0;
    display: block;
}

/* =========================================
   6. ERP SECTION
   ========================================= */
.erp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.erp-list-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.erp-list-box h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.styled-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.styled-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #444;
}

.styled-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 3px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.tag {
    background: #e0f2f1;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.erp-small-img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   7. APP FEATURES (Showcase)
   ========================================= */
.app-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    margin-top: 20px;
}

.app-image-col {
    text-align: center;
}

.app-mockup-img {
    max-width: 80%; /* Good size for desktop */
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}
.app-mockup-img:hover { transform: scale(1.02); }

.feature-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}
.feature-row:hover { transform: translateX(10px); }

.f-icon-small {
    background: var(--bg-light);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.f-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.f-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Grid for 4 small features on top */
.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.icon-large { font-size: 2.5rem; color: var(--primary-color); }

/* =========================================
   8. ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text { text-align: left; }
.about-text h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}
.about-text p { margin-bottom: 25px; color: #555; }

.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 5px solid #fff;
    background: #000;
}
.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* =========================================
   9. CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}
.info-item h4 { color: #fff; margin-bottom: 5px; }
.info-item p { color: #ccc; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #002221;
    color: #fff;
    padding: 50px 0 30px;
    font-size: 0.95rem;
    text-align: center;
}

.social-links { margin-bottom: 25px; }
.social-links a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}
.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.footer-line {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 25px auto;
    width: 80%;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-links a, .footer-links span {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}
.footer-links a:hover { color: var(--secondary-color); }

/* Desktop Footer Separator */
@media (min-width: 769px) {
    .footer-links a::after, .footer-links span:not(:last-child)::after {
        content: '|';
        margin-left: 15px;
        color: rgba(255,255,255,0.2);
        position: absolute;
        right: -20px;
    }
    .footer-links a, .footer-links span { margin-right: 20px; }
    .footer-links a:last-of-type::after, .footer-links span:last-child::after { content: none; }
    .footer-links span:last-child { margin-right: 0; }
}

/* =========================================
   11. MODAL & SCROLL TOP
   ========================================= */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    font-size: 20px;
    border: none;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}
#scrollTopBtn:hover { transform: translateY(-5px); }

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.modal.show { display: flex; }
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
}
.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
}

/* =========================================
   12. PAGE HEADER (Terms, Privacy)
   ========================================= */
.page-header { background: var(--primary-color); padding: 60px 0; text-align: center; color: white; margin-bottom: 40px; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.back-btn { display: inline-block; margin-top: 15px; color: var(--secondary-color); text-decoration: none; font-weight: bold; padding: 8px 20px; border: 2px solid var(--secondary-color); border-radius: 5px; }
.policy-content { max-width: 900px; margin: 0 auto; padding-bottom: 80px; padding-left: 20px; padding-right: 20px; }
.policy-content h2 { margin-top: 40px; font-size: 1.5rem; color: var(--primary-color); border-bottom: 2px solid #eee; padding-bottom: 10px; }
.policy-content p { color: #555; font-size: 1rem; margin-bottom: 15px; }

/* =========================================
   13. MEDIA QUERIES (MOBILE FIXES)
   ========================================= */
@media (max-width: 992px) {
    /* Tablet Adjustments */
    .hero h1 { font-size: 2.5rem; }
    .app-showcase-grid { grid-template-columns: 1fr; text-align: center; }
    .feature-row { justify-content: flex-start; }
}

@media (max-width: 768px) {
    /* --- Navbar & Menu --- */
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        height: 100vh;
        width: 280px;
        background: #002b2a;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        transition: right 0.3s ease-in-out;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; margin-bottom: 15px; }
    .nav-links a { font-size: 1.1rem; display: block; }

    /* --- Hero --- */
    .hero { height: auto; min-height: 100vh; padding-top: 80px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    /* --- Grids Stacking --- */
    .grid-container, .erp-details-grid, .about-grid, .contact-grid {
        grid-template-columns: 1fr; /* Force 1 column */
    }

    /* --- App Showcase --- */
    .app-showcase-grid { grid-template-columns: 1fr; }
    .app-image-col { margin-bottom: 30px; }
    .app-mockup-img { max-width: 60%; } /* Prevents giant image on mobile */
    .feature-row { text-align: left; }

    /* --- About --- */
    .about-text { text-align: center; order: 2; }
    .about-video { order: 1; }

    /* --- Footer --- */
    .footer-links { flex-direction: column; gap: 12px; }
    .footer-links a, .footer-links span { margin: 0; display: block; }
    .footer-links a::after, .footer-links span::after { content: none !important; }
}

/* Very Small Screens (like 320px) */
@media (max-width: 400px) {
    .container { padding: 0 15px; }
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 1.8rem; }
    .app-mockup-img { max-width: 80%; }
}