/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #f54e1a;
    --primary-dark: #d43d0f;
    --primary-light: #ff6b3d;
    --secondary-color: #000000;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --whatsapp-green: #25D366;
    --whatsapp-dark:  #128C7E;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast:   0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow:   0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER / NAVBAR
   ========================================== */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* ── Logo image ── */
.nav-logo {
    height: 54px;          /* comfortable navbar height */
    width: auto;
    display: block;
    /* The transparent PNG already handles its own background,
       so no extra treatment needed on a white navbar */
    transition: transform var(--transition-fast);
}
.nav-logo:hover { transform: scale(1.04); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover             { color: var(--primary-color); }
.nav-link:hover::after      { width: 100%; }
.nav-link.active            { color: var(--primary-color); }
.nav-link.active::after     { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px; height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text { animation: fadeInUp 0.8s ease-out; }

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.highlight { color: var(--primary-color); }

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245,78,26,.3);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(245,78,26,.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
}
.btn-secondary:hover {
    background-color: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
}

/* Small button variant for product cards */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* WhatsApp button */
.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37,211,102,.3);
}
.btn-whatsapp:hover {
    background-color: var(--whatsapp-dark);
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    transform: translateY(-2px);
}

/* Floating hero cards */
.hero-image {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease-out;
}

.floating-card {
    position: absolute;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,.3);
}

.card-1 { width:300px; height:200px; top:50px;   left:0;     animation: float 6s ease-in-out infinite;    background: linear-gradient(135deg, rgba(245,78,26,.1), rgba(255,255,255,.9)); }
.card-2 { width:250px; height:180px; top:150px;  right:50px; animation: float 5s ease-in-out infinite 1s; }
.card-3 { width:200px; height:150px; bottom:80px;left:100px; animation: float 7s ease-in-out infinite .5s;}

.hero-shapes { position:absolute; width:100%; height:100%; top:0; left:0; z-index:1; overflow:hidden; }
.shape { position:absolute; border-radius:50%; opacity:.05; }
.shape-1 { width:600px; height:600px; background-color:var(--primary-color); top:-200px;  right:-200px; }
.shape-2 { width:400px; height:400px; background-color:var(--primary-color); bottom:-100px; left:-100px; }

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   SERVICES SECTION  (5 cards → wrap to 3+2)
   ========================================== */
.services {
    padding: var(--section-padding);
    background-color: var(--white);
}

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

/* Last two cards on the bottom row → centred */
.services-grid .service-card:nth-child(4) { grid-column: 1 / 2; margin-left: auto; }
.services-grid .service-card:nth-child(5) { grid-column: 2 / 3; }

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    transition: var(--transition-normal);
}
.service-card:hover .service-icon { transform: scale(1.1); }

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}
.service-description {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 15px;
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */
.products {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(245,78,26,.1);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}
.product-card:hover::before   { transform: scaleX(1); }
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.product-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, rgba(245,78,26,.1), rgba(245,78,26,.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.product-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

/* SaaS badge */
.product-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .6px;
    padding: 2px 8px;
    border-radius: 20px;
}

.product-description {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 24px;
    flex: 1;
}

/* Row of buttons inside product card */
.product-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.product-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}
.product-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ==========================================
   ABOUT SECTION  (product-showcase stats)
   ========================================== */
.about {
    padding: var(--section-padding);
    background-color: var(--white);
}

.about-content { max-width: 900px; margin: 0 auto; }

.about-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
}
.stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(245,78,26,.1), rgba(245,78,26,.18));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin: 0 auto 16px;
}

/* Product name replaces big number */
.stat-product-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-label {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.contact-wrapper {
    max-width: 620px;
    margin: 0 auto;
}

/* WhatsApp CTA bar */
.whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #d4f5e2, #eafff3);
    border: 1.5px solid var(--whatsapp-green);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.whatsapp-cta-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--whatsapp-dark);
    font-weight: 600;
    font-size: 15px;
}

.whatsapp-cta-text svg { flex-shrink: 0; }

/* Divider between WhatsApp and form */
.contact-divider {
    text-align: center;
    position: relative;
    margin: 22px 0;
}
.contact-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 1px;
    background-color: var(--gray-200);
}
.contact-divider span {
    position: relative;
    background-color: var(--gray-50);
    padding: 0 14px;
    color: var(--gray-500);
    font-size: 14px;
}

/* Form */
.contact-form {
    background: var(--white);
    padding: 46px 44px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 7px;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition-fast);
    outline: none;
    color: var(--gray-800);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245,78,26,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}
.error-message.active         { display: block; }
.form-group input.error,
.form-group textarea.error     { border-color: #dc2626; }

.btn-full { width: 100%; padding: 15px; font-size: 16px; justify-content: center; }

.success-message {
    background-color: #10b981;
    color: var(--white);
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    margin-top: 18px;
    display: none;
    animation: slideDown .3s ease;
    font-weight: 500;
}
.success-message.active { display: block; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 28px;
}

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

/* Footer logo */
.footer-logo {
    height: 48px;
    width: auto;
    display: block;
    /* On dark footer, use the transparent logo — colours still visible */
    filter: brightness(0) invert(1); /* makes logo fully white for any dark bg */
    margin-bottom: 10px;
}

.footer-tagline { color: var(--gray-400); margin-bottom: 22px; font-size: 14px; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
    width: 38px; height: 38px;
    background-color: rgba(255,255,255,.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: var(--transition-fast);
    text-decoration: none;
}
.social-link:hover                { background-color: var(--primary-color); color: var(--white); transform: translateY(-3px); }
.social-link.social-link-wa:hover { background-color: var(--whatsapp-green); }

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

.footer-column h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; }

.footer-column ul              { list-style: none; }
.footer-column ul li           { margin-bottom: 10px; }
.footer-column ul li a         { color: var(--gray-400); text-decoration: none; font-size: 14px; transition: var(--transition-fast); }
.footer-column ul li a:hover   { color: var(--primary-color); padding-left: 4px; }

.footer-bottom {
    text-align: center;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--gray-500);
    font-size: 14px;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 100px; right: 28px;    /* sits above the WhatsApp float */
    width: 46px; height: 46px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    z-index: 998;
}
.scroll-top.active { display: flex; }
.scroll-top:hover  { background-color: var(--primary-dark); transform: translateY(-4px); }

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px 13px 16px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulse-wa 3s ease-in-out infinite;
}
.whatsapp-float:hover {
    background-color: var(--whatsapp-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(37,211,102,.5);
    animation: none;
}
.whatsapp-float-label { white-space: nowrap; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,.45); }
    50%       { box-shadow: 0 6px 28px rgba(37,211,102,.75); }
}

/* Scroll-observer fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE — Tablet (≤968px)
   ========================================== */
@media screen and (max-width: 968px) {
    .hero-content    { grid-template-columns: 1fr; text-align: center; }
    .hero-title      { font-size: 46px; }
    .hero-buttons    { justify-content: center; }
    .hero-image      { display: none; }

    .services-grid   { grid-template-columns: repeat(2, 1fr); }
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) { grid-column: auto; margin-left: 0; }
    /* Last card (5th) centred on its own row */
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 380px;
        margin: 0 auto;
    }

    .about-stats     { grid-template-columns: repeat(3, 1fr); }
    .footer-content  { grid-template-columns: 1fr; gap: 36px; }
    .footer-brand    { text-align: center; }
    .footer-logo     { margin: 0 auto 10px; }
    .social-links    { justify-content: center; }
    .section-title   { font-size: 36px; }
}

/* ==========================================
   RESPONSIVE — Mobile (≤768px)
   ========================================== */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%; top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: 28px 0;
        gap: 0;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li     { padding: 13px 0; }
    .nav-toggle      { display: flex; }

    .hero            { min-height: auto; padding: 110px 0 60px; }
    .hero-title      { font-size: 34px; }
    .hero-subtitle   { font-size: 17px; }

    .section-title   { font-size: 30px; }
    .section-subtitle{ font-size: 15px; }

    .services-grid   { grid-template-columns: 1fr; }
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) { grid-column: auto; margin: 0; max-width: none; }

    .about-stats     { grid-template-columns: 1fr; gap: 16px; }

    .whatsapp-cta    { flex-direction: column; align-items: flex-start; }

    .contact-form    { padding: 28px 20px; }

    .footer-links    { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-column ul li a:hover { padding-left: 0; }

    .scroll-top      { bottom: 90px; right: 16px; width: 42px; height: 42px; }
    .whatsapp-float  { bottom: 20px; right: 16px; padding: 12px 16px 12px 14px; }
}

/* ==========================================
   RESPONSIVE — Small mobile (≤480px)
   ========================================== */
@media screen and (max-width: 480px) {
    .hero-title      { font-size: 26px; }
    .hero-subtitle   { font-size: 15px; }
    .hero-buttons    { flex-direction: column; width: 100%; }
    .btn             { width: 100%; justify-content: center; }

    .section-title   { font-size: 26px; }

    .service-card,
    .product-card    { padding: 28px 18px; }

    .product-actions { flex-direction: column; align-items: stretch; }
    .product-actions .btn,
    .product-actions .product-link { text-align: center; justify-content: center; }

    .whatsapp-float-label { display: none; }        /* icon-only on tiny screens */
    .whatsapp-float        { padding: 14px; border-radius: 50%; }
}
