/* ======================= VARIABLES & BASE ======================= */
:root {
    --primary: #2563eb;
    --secondary: #0f172a;
    --accent: #22c55e;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.text-primary { color: var(--primary) !important; }
.bg-primary-soft { background-color: rgba(37, 99, 235, 0.1); }
.bg-success-soft { background-color: rgba(34, 197, 94, 0.15); }
.bg-dark-custom { background-color: var(--secondary); }
.bg-light-custom { background-color: var(--bg-light); }
.text-light-muted { color: #94a3b8; }
.border-dashed { border-style: dashed !important; }

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

/* ======================= UTILITY COMPONENTS ======================= */
.btn-pill {
    border-radius: 50rem !important;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-outline-dark:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ======================= ANIMATIONS & EFFECTS ======================= */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: blobMove 15s infinite alternate;
}

.blob-1 { top: -100px; left: -100px; width: 400px; height: 400px; background: rgba(37, 99, 235, 0.2); }
.blob-2 { bottom: -100px; right: -100px; width: 500px; height: 500px; background: rgba(34, 197, 94, 0.15); animation-delay: -5s; }
.blob-3 { top: 20%; right: -10%; width: 400px; height: 400px; background: rgba(37, 99, 235, 0.3); }
.blob-4 { top: -50%; left: 20%; width: 400px; height: 400px; background: rgba(34, 197, 94, 0.2); }

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Scroll Reveal Baseline */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal[data-reveal="fade-up"] { transform: translateY(40px); }
.reveal[data-reveal="fade-right"] { transform: translateX(-40px); }
.reveal[data-reveal="fade-left"] { transform: translateX(40px); }
.reveal[data-reveal="zoom-in"] { transform: scale(0.9); }
.reveal.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ======================= HEADER ======================= */
#mainNav {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
}

#mainNav.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s;
}

/* ======================= HERO ======================= */
#hero {
    background-color: var(--bg-light);
}

.hero-illustration svg {
    max-width: 100%;
    height: auto;
}

/* ======================= CARDS (SERVICES, TRUST, ETC) ======================= */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.service-card:hover, .trust-card:hover, .tech-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.08);
}

.service-card:hover .icon-box {
    background-color: var(--primary);
    color: white !important;
}

/* Brand Cards */
.brand-card {
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    min-height: 100px;
}
.brand-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Process Timeline */
.process-card {
    position: relative;
    z-index: 1;
}
.process-icon span {
    color: var(--primary);
    font-weight: 800;
    opacity: 0.2;
}
.timeline-line {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

/* Portfolio */
.portfolio-card {
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
.portfolio-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.portfolio-img {
    height: 200px;
    transition: transform 0.3s;
}
.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}
.bg-gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.bg-gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.bg-gradient-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

/* Footer */
footer a {
    transition: color 0.3s;
}
footer a:hover {
    color: white !important;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: background 0.3s;
}
.social-icon:hover {
    background: var(--primary);
    color: white;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 999;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Accordion Customization */
.accordion-button:not(.collapsed) {
    background-color: var(--bg-light);
    color: var(--text-dark);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    .hero-illustration { margin-top: 3rem; }
}