/* ======================================
   JannySourcing - Main Stylesheet
   ====================================== */

/* ===== CSS Variables ===== */
:root {
    color-scheme: light; /* Ensure the site renders in light mode even if system is dark */
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --secondary-color: #1565C0;
    --accent-color: #FF9800;
    --light-color: #F1FAEE;
    --dark-color: #1D3557;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* Force Light Mode Backgrounds */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #ffffff !important;
        color: #333333 !important;
    }
    .hero-bg {
        background-color: #ffffff !important;
    }
    .logo-img,
    .footer-logo-img {
        background-color: #ffffff;
        border-radius: 10px;
        padding: 4px;
        box-shadow: var(--shadow-sm);
    }
}

/* ===== Scroll Reveal Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animation Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .fade-in-left, .fade-in-right, .fade-in-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .testimonials-track {
        animation: none;
    }
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    /* Force white background to prevent dark mode issues */
    background-color: #ffffff !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ===== Section Styles ===== */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05));
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-header {
    margin-bottom: 50px;
}

/* ===== Top Bar ===== */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left i {
    color: var(--primary-color);
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    color: var(--white);
    opacity: 0.8;
}

.top-bar-right a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark-color);
}

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

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

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

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

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

/* Logo Image Styles */
.logo-img {
    height: 45px;
    width: auto;
    border-radius: 8px;
}

.nav-cta {
    padding: 10px 24px;
    font-size: 13px;
}

.mobile-cta {
    display: none;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/gradient_bg.png') no-repeat center center/cover;
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-overlay {
    display: none; /* Remove old overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-cta .btn-outline {
    color: var(--dark-color);
    border-color: var(--dark-color);
}

.hero-cta .btn-outline:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    flex: 1 1 auto;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== About Section ===== */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

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

.about-image {
    position: relative;
}

.image-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-light);
}

.image-placeholder i {
    font-size: 64px;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.badge-number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 20px;
}

.about-content {
    padding-left: 20px;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--dark-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 18px;
}

/* ===== Services Section ===== */
.services {
    padding: 100px 0;
    background-color: var(--gray-100);
}

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

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.service-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    gap: 10px;
}

/* ===== Products Section ===== */
.products {
    padding: 100px 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: linear-gradient(135deg, var(--gray-100), var(--white));
    padding: 40px 24px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.product-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.product-card:hover .product-icon {
    background: var(--primary-color);
}

.product-card:hover .product-icon i {
    color: var(--white);
}

.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.products-cta {
    margin-top: 50px;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

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

/* ===== Process Section ===== */
.process {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
}

.process .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.process .section-title {
    color: var(--white);
}

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

.process .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Why Choose Us Section ===== */
.why-us {
    padding: 100px 0;
    background-color: var(--white);
}

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

.why-us-text {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.why-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.why-content p {
    color: var(--text-light);
    font-size: 15px;
}

/* Actual Image Styles */
.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.why-us-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.why-us-image .image-placeholder {
    height: 500px;
    border-radius: var(--border-radius-lg);
}

/* Footer Logo Image */
.footer-logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 100px 0;
    background-color: var(--gray-100);
    overflow: hidden;
}

/* Testimonials Marquee Slider */
.testimonials-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin: 0 -20px;
    padding: 20px;
    cursor: grab;
}

.testimonials-wrapper:active {
    cursor: grabbing;
}

.testimonials-wrapper::before,
.testimonials-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--gray-100), transparent);
}

.testimonials-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--gray-100), transparent);
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    user-select: none;
    will-change: transform;
}

.testimonials-track.dragging {
    cursor: grabbing;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.3333%);
    }
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex: 0 0 380px;
    min-width: 380px;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #FFB800;
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-avatar i {
    font-size: 24px;
    color: var(--white);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

/* Centered contact info (no form) */
.contact-info-centered {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-centered h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.contact-info-centered .contact-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-centered .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.contact-info-centered .contact-social {
    margin-top: 30px;
}

.contact-info-centered .social-links {
    justify-content: center;
}

@media (max-width: 768px) {
    .contact-info-centered .contact-items {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-light);
    font-size: 15px;
}

.contact-social {
    margin-top: 40px;
}

.contact-social h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 16px;
}

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

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--gray-100);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
    font-size: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== WhatsApp Chat Widget ===== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
}

.whatsapp-chat-box.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.whatsapp-header {
    background-color: #075E54;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.whatsapp-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.profile-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-info p {
    font-size: 12px;
    opacity: 0.8;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-chat:hover {
    opacity: 1;
}

.whatsapp-body {
    padding: 20px;
    background-color: #E5DDD5;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    min-height: 200px;
}

.message-bubble {
    background-color: white;
    padding: 12px 16px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid white;
    border-left: 10px solid transparent;
}

.message-bubble p {
    font-size: 14px;
    color: #111b21;
    margin-bottom: 4px;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.45);
    display: block;
    text-align: right;
}

.whatsapp-footer {
    padding: 15px 20px;
    background-color: #f0f2f5;
}

.btn-whatsapp-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 10px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-whatsapp-start:hover {
    background-color: #1da851;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 990;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Base adjustments */
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .top-bar {
        display: none;
    }
    
    /* Header & Navigation */
    .header {
        top: 0;
    }
    
    .navbar {
        padding: 12px 0;
        width: 100%;
    }
    
    .logo {
        flex-shrink: 0;
        max-width: 140px;
    }
    
    .logo-img {
        height: 38px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    .nav-menu {
        position: fixed;
        top: 62px;
        left: 0;
        width: 100%;
        height: calc(100vh - 62px);
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: var(--transition);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }
    
    .nav-cta {
        display: none;
    }

    .mobile-cta {
        display: block;
        margin-top: 20px;
        border-bottom: none;
    }
    
    .mobile-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hamburger {
        display: flex;
        padding: 8px;
        margin-right: -8px;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
        overflow: visible;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.25;
        padding: 0;
    }
    
    .hero-title .highlight {
        display: inline;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
        text-align: center;
        padding: 0;
        line-height: 1.5;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
        padding: 0;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        margin: 0;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 24px 0 0 0;
        border-top: 1px solid rgba(0,0,0,0.08);
        width: 100%;
    }
    
    .stat-item {
        flex: none;
        width: auto;
        padding: 18px 12px;
        background: #f8f9fa;
        border-radius: 10px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .stat-number {
        display: block;
        font-size: 26px;
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 10px;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .hero-wave {
        display: none;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-tag {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .section-title {
        font-size: 28px;
        padding: 0 10px;
        margin-bottom: 10px;
    }
    
    .section-desc {
        font-size: 15px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    /* About Section */
    .about {
        padding: 50px 0;
    }
    
    .about-grid,
    .why-us-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 10px;
    }
    
    .about-img {
        height: 250px; /* Reduced height */
    }
    
    .about-content {
        padding-left: 0;
        text-align: center;
    }
    
    .about-text {
        font-size: 15px;
        text-align: left; /* Keep text left aligned for readability */
        padding: 0 10px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: left;
        padding: 0 10px;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .experience-badge {
        right: 10px;
        bottom: -15px;
        width: 100px;
        height: 100px;
    }
    
    .badge-number {
        font-size: 28px;
    }
    
    .badge-text {
        font-size: 10px;
        padding: 0 10px;
    }
    
    /* Services Section */
    .services {
        padding: 50px 0;
    }
    
    .services-grid,
    .process-timeline,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
        margin: 0 10px; /* Add side margin */
    }
    
    .service-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .service-icon i {
        font-size: 26px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-desc {
        font-size: 14px;
    }
    
    /* Products Section */
    .products {
        padding: 50px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 5px;
    }
    
    .product-card {
        padding: 20px 10px;
    }
    
    .product-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }
    
    .product-icon i {
        font-size: 22px;
    }
    
    .product-card h3 {
        font-size: 13px;
    }
    
    .products-cta {
        margin-top: 32px;
    }
    
    .products-cta p {
        font-size: 14px;
    }
    
    /* Process Section */
    .process {
        padding: 60px 0;
    }
    
    .process-step {
        padding: 28px 20px;
    }
    
    .step-number {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .step-content h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .step-content p {
        font-size: 14px;
    }
    
    /* Why Choose Us */
    .why-us {
        padding: 60px 0;
    }
    
    .why-us-content {
        text-align: center;
    }
    
    .why-us-text {
        font-size: 15px;
    }
    
    .why-us-list {
        gap: 20px;
    }
    
    .why-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .why-icon {
        width: 56px;
        height: 56px;
    }
    
    .why-icon i {
        font-size: 22px;
    }
    
    .why-content h4 {
        font-size: 16px;
    }
    
    .why-content p {
        font-size: 14px;
    }
    
    .why-us-img {
        height: 300px;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
        min-width: 280px;
        padding: 28px 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .testimonial-rating i {
        font-size: 16px;
    }
    
    .author-avatar {
        width: 48px;
        height: 48px;
    }
    
    .author-info h4 {
        font-size: 14px;
    }
    
    .author-info span {
        font-size: 12px;
    }
    
    .testimonials-wrapper {
        margin: 0 -16px;
        padding: 16px;
    }
    
    .testimonials-wrapper::before,
    .testimonials-wrapper::after {
        width: 30px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .cta-content p {
        font-size: 15px;
        margin-bottom: 24px;
        padding: 0 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Contact Section */
    .contact {
        padding: 60px 0;
    }
    
    .contact-info-centered {
        padding: 0 10px;
    }
    
    .contact-info-centered h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .contact-info-centered .contact-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
    }
    
    .contact-icon i {
        font-size: 18px;
    }
    
    .contact-details h4 {
        font-size: 14px;
    }
    
    .contact-details p {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding-bottom: 40px;
    }
    
    .footer-logo-img {
        margin: 0 auto;
    }
    
    .footer-about p {
        font-size: 14px;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 14px;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    /* WhatsApp Widget */
    .whatsapp-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .whatsapp-float-btn {
        width: 54px;
        height: 54px;
        font-size: 28px;
    }
    
    .whatsapp-chat-box {
        position: fixed;
        bottom: 80px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: 340px;
    }
    
    .whatsapp-header {
        padding: 16px;
    }
    
    .profile-avatar {
        font-size: 32px;
    }
    
    .profile-info h4 {
        font-size: 14px;
    }
    
    .profile-info p {
        font-size: 11px;
    }
    
    .whatsapp-body {
        min-height: 160px;
        padding: 16px;
    }
    
    .message-bubble p {
        font-size: 13px;
    }
    
    .whatsapp-footer {
        padding: 12px 16px;
    }
    
    .btn-whatsapp-start {
        font-size: 13px;
        padding: 10px;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 16px;
        right: 80px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-cta {
        gap: 10px;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-item {
        padding: 14px 8px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .about, .services, .products, .process, .why-us, .testimonials, .contact {
        padding: 50px 0;
    }
    
    .about-img, .why-us-img {
        height: 220px;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        right: 5px;
        bottom: -10px;
    }
    
    .badge-number {
        font-size: 22px;
    }
    
    .badge-text {
        font-size: 8px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        padding: 20px 12px;
    }
    
    .product-icon {
        width: 48px;
        height: 48px;
    }
    
    .product-icon i {
        font-size: 20px;
    }
    
    .product-card h3 {
        font-size: 12px;
    }
    
    .service-card, .process-step {
        padding: 24px 18px;
    }
    
    .testimonial-card {
        flex: 0 0 260px;
        min-width: 260px;
        padding: 24px 18px;
    }
    
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 22px;
    }
    
    .cta-content p {
        font-size: 14px;
    }
    
    .cta-buttons {
        padding: 0 10px;
    }
    
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: 70px;
    }
    
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-grid {
        gap: 24px;
        padding-bottom: 30px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .service-card:hover,
    .product-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .service-card:active,
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    
    .whatsapp-widget {
        bottom: max(16px, env(safe-area-inset-bottom));
        right: max(16px, env(safe-area-inset-right));
    }
    
    .back-to-top {
        bottom: max(16px, env(safe-area-inset-bottom));
    }
}
