/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --primary: #0170B9;
    --primary-light: #4dabf5;
    --primary-dark: #004b7c;
    --accent: #FFB300;
    --text-main: #2D3142;
    --text-muted: #7A8194;
    --bg-main: #F4F7F6;
    --bg-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 50px rgba(1, 112, 185, 0.15);
    --nav-height: 70px;
    --bottom-nav-height: 65px;
}

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

html {
    scroll-behavior: initial; /* Handled by Lenis */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
========================================= */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.title-line {
    height: 4px;
    width: 60px;
    background: var(--primary);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* =========================================
   COMPONENTS
========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: var(--bg-white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(1, 112, 185, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 112, 185, 0.4);
    color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.w-100 { width: 100%; }

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

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: 24px;
}

/* =========================================
   DESKTOP HEADER
========================================= */
.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.desktop-header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* =========================================
   MOBILE UI BARS
========================================= */
.mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-white);
    z-index: 999;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mobile-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.mobile-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    font-size: 1.1rem;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    gap: 4px;
    width: 25%;
    height: 100%;
    position: relative;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary);
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Extra height for parallax */
    z-index: -1;
}

.parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(244,247,246,0.85) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    z-index: 1;
    text-align: left;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(1, 112, 185, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-main);
    border-radius: 13px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-main);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* =========================================
   INNER PAGES HERO SECTION
========================================= */
.inner-hero {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(1, 112, 185, 0.9) 0%, rgba(1, 33, 56, 0.8) 100%);
    z-index: 0;
}

.inner-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.inner-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.inner-hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.inner-hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
}

.inner-hero-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 70px;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat-box h4 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: inline;
}

.stat-box span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-box p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: -5px;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper .glass-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--glass-border);
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--accent);
}

.floating-card span {
    font-weight: 700;
    font-size: 1.1rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   PRODUCTS SECTION
========================================= */
.products-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 112, 185, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
}

.product-card:hover .view-btn {
    transform: scale(1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   CLIENTS SECTION
========================================= */
.clients-section {
    padding: 80px 0;
    background: var(--bg-white);
    overflow: hidden;
}

.marquee-wrapper {
    margin-top: 40px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Fade edges */
.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.marquee {
    display: flex;
    width: 200%; /* Important for seamless loop */
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    animation: scroll-left 20s linear infinite;
}

.marquee-content img {
    height: 60px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    margin: 0 30px;
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-section {
    padding: 100px 0;
    background: var(--bg-main);
    position: relative;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    overflow: hidden;
}

.contact-info {
    padding: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

.contact-info .section-title {
    color: var(--bg-white);
}

.contact-items {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.c-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.c-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.c-item .text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.c-item .text p {
    opacity: 0.8;
}

.contact-form-wrapper {
    padding: 60px;
    background: var(--glass-bg);
}

.premium-form .form-group {
    margin-bottom: 25px;
}

.premium-form input, .premium-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.premium-form input:focus, .premium-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(1, 112, 185, 0.1);
    background: #fff;
}

/* =========================================
   FAB (Help Menu Speed Dial)
========================================= */
.fab-menu-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.5);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-menu-container.open .fab-options {
    pointer-events: auto;
}

.fab-menu-container.open .fab-option {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.fab-menu-container.open .fab-option:nth-child(2) {
    transition-delay: 0.05s;
}

.fab-menu-container.open .fab-option:nth-child(1) {
    transition-delay: 0.1s;
}

.fab-call { background: #0170B9; }
.fab-wa { background: #25D366; }

.fab-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(1, 112, 185, 0.4);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.fab-toggle:hover {
    transform: scale(1.05);
}

.fab-icon-help {
    position: absolute;
    transition: all 0.3s ease;
    transform: rotate(0) scale(1);
    opacity: 1;
}

.fab-icon-close {
    position: absolute;
    transition: all 0.3s ease;
    transform: rotate(-90deg) scale(0.5);
    opacity: 0;
}

.fab-menu-container.open .fab-icon-help {
    transform: rotate(90deg) scale(0.5);
    opacity: 0;
}

.fab-menu-container.open .fab-icon-close {
    transform: rotate(0) scale(1);
    opacity: 1;
}

/* =========================================
   FOOTER SECTION
========================================= */
.premium-footer {
    background: #1A1A1A;
    color: #FFF;
    padding: 80px 0 40px;
    border-top: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #FFF;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-contact .fc-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact .fc-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 4px;
}

.footer-contact .fc-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-spacer {
    height: 0;
}

/* =========================================
   RESPONSIVE (MOBILE-FIRST FEEL)
========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid, .contact-card { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: 1fr; }
    .floating-card { left: 20px; bottom: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Enable Mobile UI Bars */
    .desktop-header { display: none; }
    .mobile-top-bar { display: flex; }
    .mobile-bottom-nav { display: flex; }
    
    .hero-section {
        padding-top: 60px;
    }
    
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .inner-hero {
        padding: 120px 0 60px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .inner-hero-title { font-size: 2.5rem; }
    .inner-hero-subtitle { font-size: 1.05rem; }
    
    .inner-hero-shape svg { height: 35px; }
    
    .contact-info { padding: 40px 20px; }
    .contact-form-wrapper { padding: 40px 20px; }
    
    .footer-spacer {
        height: calc(var(--bottom-nav-height) + 20px);
    }
    
    .fab-menu-container {
        bottom: calc(var(--bottom-nav-height) + 20px);
        right: 20px;
    }
    
    .fab-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    /* Optimize Touch Targets for Mobile App Feel */
    .btn-primary {
        padding: 14px 24px;
        width: 100%;
    }
    
    .stats-row { flex-direction: column; gap: 20px;}
    
    /* Footer Mobile Optimization */
    .premium-footer { 
        padding: 50px 0 calc(var(--bottom-nav-height) + 20px); 
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 35px;
        text-align: center;
    }
    .footer-brand img {
        margin: 0 auto 15px;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links a {
        justify-content: center;
    }
    .footer-contact .fc-item {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 25px;
    }
    .footer-contact .fc-item i {
        margin-top: 0;
        font-size: 1.5rem;
    }
    .footer-widget {
        display: none;
    }
}
