/* ============================================================
   Codesaif Technologies - Modern Technical & SaaS Visual Identity
   Inspired by Vercel, Linear, Stripe & Modern AI SaaS Platforms
   ============================================================ */

:root {
    --cs-primary: #0284c7;
    --cs-primary-hover: #0369a1;
    --cs-primary-light: #e0f2fe;
    --cs-accent: #6366f1;
    --cs-accent-hover: #4f46e5;
    --cs-dark: #090d16;
    --cs-dark-card: #111827;
    --cs-dark-surface: #1f2937;
    --cs-border: #1e293b;
    --cs-text-main: #0f172a;
    --cs-text-muted: #64748b;
    --cs-text-light: #94a3b8;
    --cs-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--cs-font-main);
    color: var(--cs-text-main);
    background-color: #030712;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Navbar */
.navbar-codesaif {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.navbar-codesaif .navbar-brand img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.navbar-codesaif .nav-link {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    transition: color 0.2s ease;
}

.navbar-codesaif .nav-link:hover,
.navbar-codesaif .nav-link.active {
    color: #38bdf8;
}

.btn-store {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.4rem 1.1rem !important;
    transition: all 0.25s ease;
}

.btn-store:hover {
    background: #38bdf8;
    color: #090d16 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-quote-nav {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.3s ease;
}

.btn-quote-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.12) 0%, rgba(3, 7, 18, 1) 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50rem;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.category-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 0.35rem 0.9rem;
    border-radius: 50rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.category-tag:hover {
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

/* Cards & Grid Styling */
.cs-card {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cs-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
}

.cs-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #38bdf8;
    margin-bottom: 1.25rem;
}

/* Fixed Height Dashboard Project Card Styling */
.project-card {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.15);
}

.project-card-img-wrap {
    position: relative;
    width: 100%;
    height: 190px; /* Fixed uniform height */
    overflow: hidden;
    background: #0b0f19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-mockup-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    display: flex;
    flex-direction: column;
}

.dashboard-topbar {
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.dashboard-dot.red { background: #ef4444; }
.dashboard-dot.yellow { background: #f59e0b; }
.dashboard-dot.green { background: #10b981; }

.dashboard-preview-img {
    width: 100%;
    height: calc(100% - 24px);
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.project-card:hover .dashboard-preview-img {
    transform: scale(1.06);
}

/* Responsive SVG/CSS Tech Placeholder Container */
.project-image-placeholder {
    width: 100%;
    height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.95) 80%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #38bdf8;
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.project-image-placeholder i {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.project-image-placeholder span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-transform: uppercase;
}

.project-card-badge {
    position: absolute;
    top: 32px;
    left: 12px;
    z-index: 2;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50rem;
    backdrop-filter: blur(8px);
}

.project-card-external-btn {
    position: absolute;
    top: 32px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.project-card-external-btn:hover {
    background: #38bdf8;
    color: #090d16;
    border-color: #38bdf8;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.project-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5rem;
}

.tech-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 0.35rem;
    display: inline-block;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Priority FlowZap Product Card */
.cs-card-priority {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(17, 24, 39, 0.9) 60%);
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.cs-card-priority:hover {
    border-color: rgba(16, 185, 129, 0.7) !important;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
}

.priority-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 50rem;
}

/* Feature Lists */
.cs-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.cs-feature-list li {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cs-feature-list li i {
    color: #38bdf8;
    font-size: 1rem;
}

/* Section Background Alternation */
.section-dark {
    background-color: #030712;
    padding: 6rem 0;
}

.section-dark-alt {
    background-color: #0b0f19;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 0;
}

/* Section Titles */
.section-subtitle {
    color: #38bdf8;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

/* Digital Marketing & White Label Spotlights */
.spotlight-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3.5rem 3rem;
}

/* Why Codesaif List */
.why-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.why-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Final CTA Section */
.final-cta-box {
    background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.2) 0%, rgba(9, 13, 22, 1) 80%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 2rem;
    padding: 4.5rem 2rem;
    box-shadow: 0 0 50px rgba(2, 132, 199, 0.15);
}

/* Footer Styling */
.footer-codesaif {
    background-color: #020610;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 5rem 0 2.5rem;
    font-size: 0.9rem;
}

.footer-codesaif h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #38bdf8;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon-btn:hover {
    background: #38bdf8;
    color: #090d16;
    border-color: #38bdf8;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
    color: #ffffff;
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Responsive Tweaks */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 5rem 0 4rem;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .spotlight-box {
        padding: 2.5rem 1.5rem;
    }
}

/* Floating WhatsApp Chat Widget */
.floating-wa-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
    color: #ffffff !important;
}

.floating-wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.6);
    z-index: -1;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Smooth Back-to-Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.back-to-top-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-3px);
}

