/* =======================================
   Variables and Fonts (Dribbble Inspired)
======================================= */
:root {
    /* Color Palette */
    --bg-main: #FFFFFF;
    --bg-secondary: #F2F5F9;   /* Light grey for alternated sections */
    --bg-tertiary: #E8EDF5;    /* Slightly darker grey */
    
    --text-primary: #12141D;   /* Almost black */
    --text-secondary: #565D6D; /* Medium gray */
    
    --accent-primary: #5A67F2; /* Indigo blue */
    --accent-hover: #4854D4;
    
    --accent-dark: #1E1B4B;    /* Deep navy */
    
    /* Utility Colors */
    --color-orange: #FF7043;
    --color-green: #26A69A;
    --color-light-blue: #E8EBFF;
    --color-purple: #AB47BC;
    --color-pink: #EC407A;
    --color-teal: #26C6DA;
    
    /* Layout Variables */
    --radius-full: 9999px;
    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 12px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(90, 103, 242, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, strong {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =======================================
   Layout Utilities
======================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

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

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

.flex-row-reverse {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 4rem;
}

@media (max-width: 900px) {
    .flex-row-reverse {
        flex-direction: column;
    }
}

/* =======================================
   Buttons & Badges
======================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(90, 103, 242, 0.3);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-dark {
    background-color: var(--text-primary);
    color: #fff;
}
.btn-dark:hover {
    background-color: var(--accent-primary);
}

.btn-white {
    background-color: #fff;
    color: var(--text-primary);
}
.btn-white:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-text {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.btn-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-primary);
    transition: var(--transition);
}
.btn-text:hover::after {
    width: 100%;
}

/* =======================================
   Navigation Bar
======================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.8;
}
.nav-links a:hover {
    opacity: 1;
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.call-icon {
    color: var(--text-primary);
    opacity: 0.7;
    cursor: pointer;
    font-size: 1.3rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* =======================================
   Hero Section
======================================= */
.hero {
    min-height: 100vh;
    padding-top: 8rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}
.badge-icon {
    color: var(--color-green);
    font-size: 1.1rem;
}

.hero p {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    max-width: 500px;
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.hero-cta .line {
    width: 40px;
    height: 2px;
    background-color: #E2E8F0;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,0.05); /* very soft border */
}

/* Floating Cards UI */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.float-top-left { top: 10%; left: -5%; }
.float-bottom-right { bottom: 15%; right: -5%; animation-delay: 3s; }

.float-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.bg-indigo { background: var(--accent-primary); }
.bg-green { background: var(--color-green); }

.float-card .text {
    display: flex;
    flex-direction: column;
}
.float-card .title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.float-card .subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

/* =======================================
   Trusted Logos
======================================= */
.trusted-section {
    text-align: center;
    padding: 2rem 0 4rem;
}
.trusted-section p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.trusted-logos {
    overflow: hidden;
    padding: 1.5rem 0;
    white-space: nowrap;
    position: relative;
    opacity: 0.85;
}

.logos-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logos-slide {
    display: flex;
    align-items: center;
    gap: 7rem;
    padding-right: 7rem;
}

.logos-slide img {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition);
}

.logos-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =======================================
   Services Grid
======================================= */
.section-title {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    border: 1px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* The Dribbble shot had one active/tinted card */
.active-card {
    background-color: var(--color-light-blue);
    border: 1px solid rgba(90, 103, 242, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.gradient-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-purple { background: linear-gradient(135deg, #8A2BE2 0%, #ab47bc 100%); }
.gradient-orange { background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%); }
.gradient-pink { background: linear-gradient(135deg, #fb3c66 0%, #ff7b93 100%); }
.gradient-green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-teal { background: linear-gradient(135deg, #17ead9 0%, #6078ea 100%); }

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}
.service-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.card-arrow {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}
.service-card:hover .card-arrow {
    background: var(--text-primary);
    color: white;
}

/* Promo Banner inside Services */
.promo-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: white;
}
.promo-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.promo-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 27, 75, 0.7); /* dark overlay */
}
.promo-text h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.promo-text p {
    color: rgba(255,255,255,0.8);
}


/* =======================================
   Feature Highlight Section
======================================= */
.feature-text { flex: 1; }
.feature-image {
    flex: 1;
    position: relative;
}
.feature-image img {
    border-radius: var(--radius-xl);
}

.feature-text h2 { margin-bottom: 1.5rem; }
.feature-text p { margin-bottom: 2rem; }

.check-list {
    margin-bottom: 2rem;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}
.check-icon { color: var(--color-green); }

.float-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}
.float-badge .badge-icon {
    width: 45px; height: 45px;
    background: var(--color-light-blue);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-badge strong { font-size: 1rem; }
.float-badge br { display: none; }

/* =======================================
   Stats Outline
======================================= */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-col {
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0,0,0,0.05);
}
.stat-col:last-child { border-right: none; }

.stat-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.stat-title {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
}
.stat-number small {
    font-size: 1.2rem;
}

.highlight-col {
    background-color: var(--accent-primary);
    color: white !important;
}
.highlight-col .stat-title, .highlight-col .stat-number { color: white; }
.highlight-col .stat-circle {
    background: rgba(255,255,255,0.2);
    color: white;
}


/* =======================================
   Testimonials
======================================= */
.nav-arrows {
    display: flex;
    gap: 0.5rem;
}
.arrow-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-btn:hover {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

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

.testi-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}
.testi-card .testi-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.testi-card p {
    font-size: 0.95rem;
    font-style: italic;
    flex: 1;
    margin-bottom: 2rem;
}
.testi-author {
    display: flex;
    justify-content: flex-end;
}
.author-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}
.author-info strong { font-size: 0.95rem; }
.author-info span { font-size: 0.8rem; color: var(--text-secondary); }


/* =======================================
   Portfolio / Insights
======================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.port-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.port-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.port-image {
    height: 200px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
.port-image h4 { color: white; margin: 0; font-size: 1.5rem; }

.bg-gradient-1 { background: linear-gradient(135deg, #4B1248, #F0C27B); }
.bg-gradient-2 { background: linear-gradient(135deg, #1A2980, #26D0CE); }
.bg-gradient-3 { background: linear-gradient(135deg, #8A2387, #E94057, #F27121); }

.port-content {
    padding: 1.5rem;
}
.port-content .tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}
.port-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}


/* =======================================
   Footer Structure
======================================= */
.footer {
    padding-top: 4rem;
}

.footer-top {
    margin-bottom: 4rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}
.footer-col a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

/* Gradient Strip */
.gradient-strip {
    background: linear-gradient(135deg, #1E1B4B, #9D4EDD);
    border-radius: var(--radius-full);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 4rem;
}
.gradient-strip .strip-btn {
    background: white;
    color: #1E1B4B;
}
.gradient-strip .strip-btn:hover {
    background: var(--bg-secondary);
}

/* Huge CTA Bottom */
.footer-cta {
    padding-bottom: 2rem;
}
.cta-banner {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 5rem 3rem;
    overflow: hidden;
    text-align: center;
    color: var(--text-primary);
}
.cta-banner .cta-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Wash it out slightly */
}
.cta-content {
    position: relative;
    z-index: 1;
}
.cta-content .subtitle {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-primary);
}
.cta-content h2 {
    margin: 1rem auto 3rem;
    max-width: 600px;
}
.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}


/* ==================================
   Floating WhatsApp Button
================================== */
.float-wa {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: transparent;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.float-wa:hover {
    transform: scale(1.1);
}

.wa-icon-img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==================================
   Animations & Responsive
================================== */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .stat-col { border-bottom: 1px solid rgba(0,0,0,0.05); }
    .testimonials-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero {
        flex-direction: column;
        padding-top: 6rem;
    }
    .promo-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    .gradient-strip {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}
