/* ==========================================================================
   INDOFASTCLOUD — ELEGANT DESIGN SYSTEM v2.0
   A centralized design token layer + premium component library.
   Loaded globally via header.php BEFORE page-specific styles.
   ========================================================================== */

/* ===== 1. DESIGN TOKENS ===== */
:root {
    /* — Brand Palette — */
    --ifc-blue:        #2563eb;
    --ifc-blue-light:  #3b82f6;
    --ifc-blue-dark:   #1d4ed8;
    --ifc-indigo:      #4f46e5;
    --ifc-cyan:        #06b6d4;
    --ifc-cyan-light:  #22d3ee;
    --ifc-green:       #10b981;
    --ifc-orange:      #f59e0b;
    --ifc-pink:        #ec4899;
    --ifc-purple:      #7c3aed;

    /* — Neutral Palette (Dark Mode Default) — */
    --ifc-bg-primary:   #0b1121;
    --ifc-bg-secondary: #0f172a;
    --ifc-bg-elevated:  #1e293b;
    --ifc-bg-surface:   rgba(255, 255, 255, 0.03);
    --ifc-bg-glass:     rgba(15, 23, 42, 0.80);

    /* — Text — */
    --ifc-text-primary:   #f1f5f9;
    --ifc-text-secondary: #94a3b8;
    --ifc-text-muted:     #64748b;
    --ifc-text-accent:    var(--ifc-cyan);

    /* — Borders — */
    --ifc-border:        rgba(255, 255, 255, 0.06);
    --ifc-border-hover:  rgba(6, 182, 212, 0.30);
    --ifc-border-subtle: rgba(255, 255, 255, 0.04);

    /* — Shadows — */
    --ifc-shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.15);
    --ifc-shadow-md:  0 8px 24px rgba(0, 0, 0, 0.25);
    --ifc-shadow-lg:  0 20px 50px rgba(0, 0, 0, 0.40);
    --ifc-shadow-glow: 0 0 30px rgba(6, 182, 212, 0.15);

    /* — Radii — */
    --ifc-radius-sm:  8px;
    --ifc-radius-md:  14px;
    --ifc-radius-lg:  20px;
    --ifc-radius-xl:  28px;
    --ifc-radius-pill: 50px;

    /* — Gradients — */
    --ifc-gradient-brand:  linear-gradient(135deg, var(--ifc-blue), var(--ifc-cyan));
    --ifc-gradient-subtle: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(6,182,212,0.10));
    --ifc-gradient-accent: linear-gradient(135deg, var(--ifc-indigo), var(--ifc-cyan-light));
    --ifc-gradient-text:   linear-gradient(90deg, var(--ifc-cyan), var(--ifc-blue), var(--ifc-purple));

    /* — Typography — */
    --ifc-font-body:    'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ifc-font-heading: 'Plus Jakarta Sans', sans-serif;
    --ifc-font-mono:    'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* — Spacing — */
    --ifc-space-xs:  0.25rem;
    --ifc-space-sm:  0.5rem;
    --ifc-space-md:  1rem;
    --ifc-space-lg:  1.5rem;
    --ifc-space-xl:  2rem;
    --ifc-space-2xl: 3rem;
    --ifc-space-3xl: 5rem;

    /* — Transitions — */
    --ifc-ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --ifc-ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ifc-duration:  0.3s;
}


/* ===== 2. GLOBAL RESET ENHANCEMENTS ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ifc-font-body);
    color: var(--ifc-text-primary);
    background: var(--ifc-bg-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ifc-font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

::selection {
    background: rgba(6, 182, 212, 0.30);
    color: #fff;
}

a {
    transition: color var(--ifc-duration) var(--ifc-ease),
                opacity var(--ifc-duration) var(--ifc-ease);
}

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


/* ===== 3. PREMIUM NAVBAR ===== */
/* ---- Shared (both Bootstrap & Tailwind) ---- */
.ifc-navbar {
    background: var(--ifc-bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--ifc-border);
    transition: all var(--ifc-duration) var(--ifc-ease);
    padding: 0.75rem 0;
    z-index: 1050;
}

.ifc-navbar.scrolled {
    background: rgba(11, 17, 33, 0.95);
    box-shadow: var(--ifc-shadow-md);
    padding: 0.5rem 0;
}

/* Brand */
.ifc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.ifc-brand-icon {
    width: 64px;
    height: 64px;
    background: var(--ifc-gradient-brand);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: white;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25);
    transition: transform var(--ifc-duration) var(--ifc-ease),
                box-shadow var(--ifc-duration) var(--ifc-ease);
}

.ifc-brand:hover .ifc-brand-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35);
}

.ifc-brand-text {
    font-family: var(--ifc-font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.ifc-brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ifc-brand-subtitle {
    font-size: 0.75rem;
    color: var(--ifc-text-secondary);
    letter-spacing: 1px;
    margin-top: -2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Nav Links */
.ifc-nav-link {
    color: var(--ifc-text-secondary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    border-radius: var(--ifc-radius-sm);
    transition: all var(--ifc-duration) var(--ifc-ease);
    position: relative;
    text-decoration: none;
}

.ifc-nav-link:hover,
.ifc-nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.ifc-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--ifc-gradient-brand);
    border-radius: 2px;
}

/* CTA Button in Nav */
.ifc-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px !important;
    background: var(--ifc-gradient-brand);
    color: white !important;
    border-radius: var(--ifc-radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
    transition: all var(--ifc-duration) var(--ifc-ease);
    border: none;
}

.ifc-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.40);
    color: white !important;
}

/* Dropdown */
.ifc-dropdown {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--ifc-radius-lg);
    padding: 10px;
    min-width: 260px;
    box-shadow: var(--ifc-shadow-lg), 0 0 0 1px rgba(0,0,0,0.3);
    animation: ifc-fadeInDown 0.25s var(--ifc-ease);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.ifc-dropdown-item {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--ifc-radius-sm);
    padding: 10px 14px;
    transition: all 0.2s var(--ifc-ease);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ifc-dropdown-item:hover,
.ifc-dropdown-item.active {
    background: rgba(37, 99, 235, 0.12);
    color: #fff !important;
}

.ifc-dropdown-icon {
    width: 32px;
    height: 32px;
    background: var(--ifc-gradient-subtle);
    border-radius: var(--ifc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--ifc-cyan);
    flex-shrink: 0;
    transition: all 0.2s var(--ifc-ease);
}

.ifc-dropdown-item:hover .ifc-dropdown-icon {
    background: var(--ifc-gradient-brand);
    color: #fff;
}

/* Theme Toggle */
.ifc-theme-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ifc-text-secondary);
    border: 1px solid var(--ifc-border);
    transition: all var(--ifc-duration) var(--ifc-ease);
    font-size: 1rem;
}

.ifc-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ifc-cyan);
    border-color: var(--ifc-border-hover);
    transform: rotate(15deg);
}

.ifc-theme-toggle .moon-icon { display: none; }
.ifc-theme-toggle .sun-icon { display: block; }
body.light-theme .ifc-theme-toggle .moon-icon { display: block; }
body.light-theme .ifc-theme-toggle .sun-icon { display: none; }


/* ===== 4. ANIMATIONS ===== */
@keyframes ifc-fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ifc-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes ifc-scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes ifc-slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes ifc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.3); }
}

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

@keyframes ifc-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(6,182,212,0.2); }
    50%      { box-shadow: 0 0 40px rgba(6,182,212,0.4); }
}

/* Scroll-triggered entrance classes (add via JS IntersectionObserver or manually) */
.ifc-animate {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s var(--ifc-ease), transform 0.6s var(--ifc-ease);
}

.ifc-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

.ifc-animate-delay-1 { transition-delay: 0.1s; }
.ifc-animate-delay-2 { transition-delay: 0.2s; }
.ifc-animate-delay-3 { transition-delay: 0.3s; }
.ifc-animate-delay-4 { transition-delay: 0.4s; }


/* ===== 5. PREMIUM COMPONENTS ===== */

/* — Section Layout — */
.ifc-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.ifc-section-dark {
    background: var(--ifc-bg-primary);
}

.ifc-section-darker {
    background: var(--ifc-bg-secondary);
}

.ifc-section-gradient {
    background: linear-gradient(135deg, var(--ifc-indigo) 0%, var(--ifc-blue) 50%, var(--ifc-cyan) 100%);
}

/* — Tags & Badges — */
.ifc-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.08);
    color: var(--ifc-cyan);
    border: 1px solid rgba(6, 182, 212, 0.20);
    border-radius: var(--ifc-radius-pill);
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--ifc-space-lg);
}

.ifc-tag .dot {
    width: 8px;
    height: 8px;
    background: var(--ifc-cyan);
    border-radius: 50%;
    animation: ifc-pulse 2s infinite;
}

/* — Section Titles — */
.ifc-heading-xl {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    color: var(--ifc-text-primary);
    line-height: 1.1;
    margin-bottom: var(--ifc-space-lg);
}

.ifc-heading-lg {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    color: var(--ifc-text-primary);
    line-height: 1.15;
    margin-bottom: var(--ifc-space-md);
}

.ifc-heading-md {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: var(--ifc-text-primary);
}

.ifc-gradient-text {
    background: var(--ifc-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ifc-subtitle {
    color: var(--ifc-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 600px;
}

/* — Buttons — */
.ifc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--ifc-radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--ifc-duration) var(--ifc-ease);
    border: none;
    cursor: pointer;
}

.ifc-btn-primary {
    background: var(--ifc-gradient-brand);
    color: white !important;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
}

.ifc-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(6, 182, 212, 0.40);
    color: white !important;
}

.ifc-btn-outline {
    background: transparent;
    color: var(--ifc-text-secondary) !important;
    border: 1px solid var(--ifc-border);
}

.ifc-btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ifc-border-hover);
    color: var(--ifc-text-primary) !important;
    transform: translateY(-2px);
}

/* — Cards — */
.ifc-card {
    background: var(--ifc-bg-surface);
    border: 1px solid var(--ifc-border);
    border-radius: var(--ifc-radius-xl);
    padding: 36px 28px;
    transition: all 0.4s var(--ifc-ease);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ifc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ifc-gradient-brand);
    opacity: 0;
    transition: opacity var(--ifc-duration) var(--ifc-ease);
}

.ifc-card:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--ifc-border-hover);
    transform: translateY(-6px);
    box-shadow: var(--ifc-shadow-lg), var(--ifc-shadow-glow);
}

.ifc-card:hover::before {
    opacity: 1;
}

.ifc-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--ifc-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--ifc-space-lg);
}

/* — Glass Surface — */
.ifc-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ifc-border);
    border-radius: var(--ifc-radius-lg);
}


/* ===== 6. FOOTER SYSTEM ===== */
.ifc-footer {
    background: var(--ifc-bg-primary);
    border-top: 1px solid var(--ifc-border);
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
}

.ifc-footer::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ifc-cyan), var(--ifc-blue), var(--ifc-purple), transparent);
}

.ifc-footer h5 {
    color: var(--ifc-text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--ifc-space-md);
    letter-spacing: 0.3px;
}

.ifc-footer a {
    color: var(--ifc-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--ifc-duration) var(--ifc-ease),
                padding-left var(--ifc-duration) var(--ifc-ease);
}

.ifc-footer a:hover {
    color: var(--ifc-cyan);
    padding-left: 4px;
}

.ifc-footer-bottom {
    border-top: 1px solid var(--ifc-border);
    margin-top: var(--ifc-space-xl);
    padding-top: var(--ifc-space-md);
    text-align: center;
    color: var(--ifc-text-muted);
    font-size: 0.85rem;
}

.ifc-footer-brand {
    font-family: var(--ifc-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--ifc-gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ===== 7. INTERSECTION OBSERVER SCRIPT (inline-friendly) ===== */
/* Add this JS snippet in pages to enable .ifc-animate: */
/*
<script>
document.addEventListener('DOMContentLoaded', () => {
    const observer = new IntersectionObserver((entries) => {
        entries.forEach(e => { if (e.isIntersecting) e.target.classList.add('in-view'); });
    }, { threshold: 0.1 });
    document.querySelectorAll('.ifc-animate').forEach(el => observer.observe(el));
});
</script>
*/


/* ===== 8. RESPONSIVE REFINEMENTS ===== */
@media (max-width: 992px) {
    .ifc-section {
        padding: 60px 0;
    }

    .ifc-heading-xl {
        font-size: 2rem;
    }

    .ifc-heading-lg {
        font-size: 1.6rem;
    }

    .ifc-navbar {
        padding: 0.6rem 0;
    }
}

@media (max-width: 576px) {
    .ifc-card {
        padding: 24px 20px;
    }

    .ifc-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .ifc-section {
        padding: 48px 0;
    }
}
/* WhatsApp Float Button Global Style */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; text-decoration: none;
}
.whatsapp-float:hover { background-color: #128c7e; color: #FFF; transform: translateY(-5px); box-shadow: 2px 5px 20px rgba(0,0,0,0.4); }
@media (max-width: 767px) { .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 26px; } }

