/* ==== CSS Variables and Reset ==== */
:root {
    --primary-color: #D32F2F;
    --primary-light: #ef5350;
    --primary-dark: #c62828;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(211, 47, 47, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset for fixed header */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

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

.bg-light {
    background-color: var(--bg-light);
}

section {
    padding: 80px 0;
}

/* ==== Buttons ==== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline-white:hover {
    background-color: white;
    color: var(--primary-color);
}


/* ==== Typography Helpers ==== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
}


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

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.appear {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* ==== Navbar ==== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    object-fit: contain;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}
.mobile-toggle svg {
    width: 30px;
    height: 30px;
}


/* ==== Hero Section ==== */
.hero {
    padding-top: 140px; /* Accommodate navbar */
    padding-bottom: 60px;
    position: relative;
    background: linear-gradient(135deg, rgba(211,47,47,0.03) 0%, rgba(211,47,47,0.08) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8a80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

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

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    padding: 20px;
}

.hero-image {
    position: relative;
    z-index: 2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

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

.floating-card.top-left {
    top: 40px;
    left: -30px;
    animation-delay: 0s;
}

.floating-card.bottom-right {
    bottom: 50px;
    right: -30px;
    animation-delay: 3s;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon svg {
    width: 20px;
    height: 20px;
}

.card-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.hero-bg-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80%;
    height: 90%;
    background: linear-gradient(135deg, rgba(211,47,47,0.1) 0%, rgba(211,47,47,0.02) 100%);
    border-radius: 30px;
    z-index: 1;
    transform: rotate(6deg);
}

.wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}


/* ==== Why Outsource Section ==== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.why-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.why-card .icon-wrap {
    width: 60px;
    height: 60px;
    background-color: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
}
.why-card .icon-wrap svg {
    width: 30px;
    height: 30px;
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.why-card p, .why-card ul {
    color: var(--text-muted);
}
.why-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}
.why-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}


/* ==== Services Section ==== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.service-icon svg {
    width: 45px;
    height: 45px;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

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


/* ==== Tagline Banner ==== */
.tagline-banner {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: 70px 0;
}
.tagline-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.tagline-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}


/* ==== Core Strengths Section ==== */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.strength-item {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.strength-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}
.strength-content h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.strength-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


/* ==== Process Section ==== */
.process-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    text-align: center;
    min-width: 120px;
    padding: 0 10px;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--bg-white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.step-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
}
.step-num {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-dark);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.process-connector {
    flex: 1;
    height: 3px;
    background-color: rgba(211, 47, 47, 0.2);
    margin-top: 40px; /* aligning with center of 80px circle */
    z-index: 1;
    min-width: 30px;
}


/* ==== Vision/Purpose/Strategy ==== */
.vps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.vps-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.vps-card:hover {
    box-shadow: var(--shadow-lg);
}

.vps-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}
.vps-icon svg {
    width: 30px;
    height: 30px;
}

.vps-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.vps-card p {
    color: var(--text-muted);
}


/* ==== CTA Section ==== */
.cta-section {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 60px 0;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.mt-4 { margin-top: 2rem; }


/* ==== Footer ==== */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 70px 0 20px;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3, .footer h4 {
    color: #fff;
    margin-bottom: 20px;
}
.footer p, .footer li a {
    color: #aaa;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.footer li {
    margin-bottom: 12px;
}
.footer li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
}
.social-icons a:hover {
    background-color: var(--primary-color);
}
.social-icons a svg {
    width: 20px;
    height: 20px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}


/* ==== Media Queries ==== */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        margin: 0 auto 30px;
    }
    .hero-actions {
        justify-content: center;
    }
    
    .process-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .process-connector {
        width: 3px;
        height: 40px;
        margin: 10px 0;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}
