/*=======================
  CSS Variables & Reset
  =======================*/
:root {
    /* colors */
    --color-primary: #ff6b3d;
    --color-secondary: #333333;
    --color-accent: #f4774a;
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-light: #f5f5f5;
    --color-dark: #222222;

    /* typography */
    --font-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI Semibold', sans-serif;

    /* spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;

    /* shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--color-bg);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-accent);
}

/* Utility classes */
.container {
    width: 100%;           /* full width with padding for small screens */
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: var(--space-lg);
}

/* ensure images scale and remove whitespace */
img,
picture,
svg {
    width: 100%;
    height: auto;
    display: block;
}

/* space at top for fixed header */
section {
    padding-top: var(--space-lg);
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    /* slightly darker shade for hover */
    background: #e55a2d;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
}

/*=======================
  Header / Navigation
  =======================*/
.header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.logo {
    height: 50px;
    transition: height 0.3s;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: var(--space-lg);
}
    /* mobile menu when open */
    .nav-list.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 1px solid #eee;
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
    }

.menu-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: none; /* shown via JS on small screens */
}

/*=======================
  Hero Section
  =======================*/
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

.hero-content {
    color: #fff;
    max-width: 800px;
    padding: var(--space-lg);
    animation: fadeInUp 1s ease both;
}

.tagline {
    background: var(--color-primary);
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

/*=======================
  Stats Section
  =======================*/
.stats {
    background: var(--color-accent);
    padding: 40px 20px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: var(--space-lg);
}

.stat-item {
    flex: 1;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.stat-item h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 5px 0;
    font-family: var(--font-heading);
}

.stat-item p {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
}

/*=======================
  About Section
  =======================*/
.about {
    padding: var(--space-xl) 0;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.section-text {
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    line-height: 1.75;
}

/*=======================
  Solutions / Cards
  =======================*/
.solutions {
    padding: var(--space-xl) 0;
    background: var(--color-light);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: var(--space-md);
    font-size: 1.25rem;
}

.card-text {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 0.95rem;
    color: var(--color-secondary);
    flex: 1;
}

.card-link {
    display: block;
    padding: var(--space-md);
    text-align: right;
    font-weight: 600;
    color: var(--color-primary);
}

.card-link:hover {
    text-decoration: underline;
}

/*=======================
  Clients Carousel
  =======================*/
.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    width: calc(200%);
    animation: scroll 20s linear infinite;
}

.carousel-item {
    flex: 0 0 auto;
    padding: var(--space-lg);
}

.carousel-item img {
    height: 80px;
    object-fit: contain;
}

.carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/*=======================
  Footer / Contact
  =======================*/
.footer {
    background: var(--color-secondary);
    color: #fff;
    padding: var(--space-lg) 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: space-between;
}

.footer-info p,
.footer-links a,
.footer-policy a {
    display: block;
    margin-bottom: var(--space-sm);
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-policy {
    text-align: right;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px; /* reduced to avoid overlapping content */
    right: var(--space-lg);
    width: 60px;
    height: 60px;
    z-index: 1001;
    animation: pulse 2s infinite;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* scroll-triggered elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .nav-list {
        display: none;
    }

    .nav-list.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .carousel-item img {
        height: 60px;
    }
}
