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

/* Theme Colors */
:root {
    --primary-color: #e3223c;
    --secondary-color: #fcfcfc;
    --text-color: #333;
}

/* Global Styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--secondary-color);
    color: var(--text-color);
    transition: box-shadow 0.3s ease;
    border-style: 5px inset #888;;
    
}

/* Shadow appears on scroll */
header.scrolled {
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
}

/* Logo */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    width: 150px;
    border-radius: 15px;
}

/* Navigation */

.arrow {
    float: right;
    transition: transform 0.3s ease;
}

.arrow::after {
    content: "›";
    font-size: 18px;
}

.open > a .arrow {
    transform: rotate(90deg);
}

nav {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav input[type="checkbox"] {
    display: none;
}

nav ul li a {
    font-size: 14px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.9;
    position: relative;
}

nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.18);
    opacity: 1;
}   

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    opacity: 1;
}

nav ul li a::after {
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    transition: width 0.25s ease;
}

nav ul li a.active::after {
    width: 100%;
}

/* Dropdown */
nav ul li ul {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    min-width: 200px;
    z-index: 100;
    border: none;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.menu-toggle {
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
    display: none; /* hidden on desktop */
}

nav ul li ul li a {
    display: block;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 0;
}

nav ul li ul li a:hover {
    background-color: #f5f5f5;
    transform: none;
}

nav ul li:hover ul {
    display: block;
}
/* ---------------------------
   LEVEL 1 DROPDOWN
---------------------------- */

.has-dropdown {
    position: relative;
}

.has-dropdown > .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 240px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.has-dropdown:hover > .dropdown {
    display: block;
}

/* ---------------------------
   LEVEL 2 FLY-OUT
---------------------------- */

.has-sub-dropdown {
    position: relative;
}

.has-sub-dropdown > .sub-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;   /* THIS makes it open to the side */
    margin-left: 6px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 300px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.has-sub-dropdown:hover > .sub-dropdown {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* Main Content */
/* main {
    padding: 100px 20px;
} */

body {
    padding-top: 100px; /* desktop default */
}

.page-title {
    margin-bottom: 20px;
    color: var(--primary-color);
    padding: 30px;
}

.product-title {
    margin-bottom: 5px;
    color: var(--primary-color);
    padding: 30px;
}

.column-small {
    max-width: 100%;
}
/* Procuct Applications Home Section */

.product-application {
    padding: 100px 40px;
    background: #f8f9fa;
}

.application-container {
    display: flex;
    max-width: 1300px;
    margin: auto;
}

.app-card {
    border-radius: 6px;
}

/* Vertical Text */
.vertical-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 20px;
    font-weight: bold;
    color: #302c2c;
    text-align: center;
    letter-spacing: 5px;
}

/* Right Side */
.application-content {
    flex: 1;
}

/* Tabs */
.application-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.application-tabs .tab {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
    position: relative;
    color: #666;
}

.application-tabs .tab.active {
    color: #000;
    border-bottom: 2px solid red;
    font-weight: bold;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #000;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Cards */
.app-card {
    background: #000;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}

.app-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.4s;
}

.app-card h3 {
    position: absolute;
    top: 20px;
    left: 20px;
}

.app-card:hover img {
    transform: scale(1.1);
}

/* Products Listing */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.product-image {
    background: #f7f7f7;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 5px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.product-section {
    padding: 30px;
}



/* Footer */
footer {
    background-color: #f2f2f2;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 14px;
}

.main-footer {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    padding: 80px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
    letter-spacing: 1px;
}

.footer-column p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.85;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-btn {
    display: inline-block;
    margin-top: 20px;
    background: #e63946;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 6px;
}

.footer-btn:hover {
    background: #c1121f;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-icons img {
    width: 32px;
    height: 32px;
}


.productImage {
    border-radius: 20px;
    width: 100%;
}

/* ---------------------------
   IMAGE CARD GRID
---------------------------- */

.image-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.image-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.image-caption {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

/* ---------------------------
   LIGHTBOX
---------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 36px;
    color: #ffffff;
    cursor: pointer;
}

/* ---------------------------
   HERO CAROUSEL
---------------------------- */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 10;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-position: center;
}

/* Dark overlay */
.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* Content */
.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    text-align: center;
    z-index: 2;
    max-width: 700px;
}

.carousel-content h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Buttons */
.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 275px;
}

.btn-primary-light {
    background-color: var(--text-color);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-outline-light {
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
}

/* Arrows */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255,255,255,0.25);
}

/* ---------------------------
   PREMIUM ABOUT PAGE STYLES
---------------------------- */

/* Sections */
.section {
    margin-bottom: 70px;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.section-subtitle {
    color: #333;
}

/* Hero Banner */
.hero-banner img {
    width: 100%;
    border-radius: 10px;
}

/* Two Column Layout */
.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.column-small {
    flex: 1;
    min-width: 260px;
}

.column-large {
    flex: 3;
    min-width: 260px;
}

/* Logos */
.brand-logo {
    max-width: 230px;
}

/* Principles Grid */
.section-title {
    padding-left: 30px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px;
}

.principle-item {
    background-color: #ffffff;
    padding: 18px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    font-weight: 500;
}

/* Content Cards */
.content-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* GMCELL Section */
.partner-logo {
    max-width: 260px;
    margin: 20px 0;
}

/* Typography Tweaks */
.section p {
    margin-bottom: 15px;
    max-width: 900px;
}

/* ---------------------------
   SUBTLE ANIMATIONS
---------------------------- */

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.fade-delay-1 { animation-delay: 0.2s; }
.fade-delay-2 { animation-delay: 0.4s; }
.fade-delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile refinement */
@media (max-width: 768px) {
    .content-card {
        padding: 22px;
    }
}

/* ---------------------------
   DISTRIBUTOR FORM STYLES
---------------------------- */

.form-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-error {
    color: #e3223c;
    font-size: 13px;
    margin-top: 4px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit button {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.form-submit button:hover {
    opacity: 0.9;
}

/* WhatsApp link */
.whatsapp-link {
    margin-top: 25px;
    text-align: center;
}

.whatsapp-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #25D366;
}

.whatsapp-icon {
    font-size: 18px;
}

/* ---------------------------
   FLOATING WHATSAPP BUTTON
---------------------------- */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color:#ffffff;
    color: #128C7E;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* ---------------------------
   MOBILE RESPONSIVE STYLES
---------------------------- */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* increase for mobile header height */
    }
    
    header {
        padding: 8px 0;
    }

    .logo img {
        height: 80px;
        width: auto;
        justify-content: center;
    }

    .header-container {
        position: relative;
        flex-direction: column;
    }

    /* Hamburger */
    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        padding-top: 100px; /* space for header */
        overflow-y: auto;
        display: none;
        z-index: 999;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 12px 0;
        display: block;
        border-top: 1px solid rgba(255,255,255,0.2);
        text-transform: none;
        font-size: 15px;
        letter-spacing: 0.3px;
        padding: 14px 20px;
    }

    /* Mobile dropdown */
    nav ul li ul {
        position: static;
        border: none;
        background-color: var(--secondary-color);
        color: var(--primary-color);
    }

    nav ul li ul li a {
        color: var(--text-color);
        padding-left: 20px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li a.active::after {
        width: 100%;
    }

    main {
        padding: 25px 15px;
    }
    
    .has-dropdown > .dropdown,
    .has-sub-dropdown > .sub-dropdown {
        position: static;
        box-shadow: none;
        background-color: var(--secondary-color);
        display: none;
    }

    .dropdown,
    .sub-dropdown {     
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        /* -webkit-overflow-scrolling: touch; Smooth iOS scroll */
    }

    .open > .dropdown,
    .open > .sub-dropdown {
        max-height: 200px; /* large enough */
    }

    .has-dropdown.open > .dropdown,
    .has-sub-dropdown.open > .sub-dropdown {
        display: block;
        max-height: 1000px;
    }

    .dropdown::-webkit-scrollbar {
    width: 4px;
    }

    .dropdown::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.4);
        border-radius: 10px;
    }

    .dropdown li a {
        padding-left: 24px;
        color: var(--text-color);
    }

    .sub-dropdown li a {
        padding-left: 40px;
    }

    hero-carousel {
        height: 65vh;
    }

    .carousel-content h1 {
        font-size: 26px;
    }

    .carousel-content p {
        font-size: 15px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
}

@media (max-width: 992px) {
    .image-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .image-card-grid {
        grid-template-columns: 1fr;
    }

    .image-card img {
        height: 200px;
    }
}

/* Mobile spacing */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
    }
}

/* Mobile Footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .main-footer {
        padding: 60px 20px;
    }
}

@media (max-width: 992px) {

    .application-container {
        flex-direction: column;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 30px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .card-grid {
        grid-template-columns: 1fr;
    }

    .application-tabs {
        display: flex;
        flex-direction: row;      /* horizontal */
        overflow-x: auto;         /* enable scroll */
        gap: 10px;
        padding-bottom: 10px;
        scrollbar-width: none;    /* Firefox */
    }

    .application-tabs::-webkit-scrollbar {
        display: none;            /* Chrome */
    }

    .application-tabs .tab {
        flex: 0 0 auto;           /* prevent shrinking */
        white-space: nowrap;      /* keep text in one line */
    }

    .application-tabs {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
}



