/* ============================================
   Infosof Technologies V2.0 — Custom Styles
   ============================================ */

/* --- Base & Resets --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #3b82f6, #10b981); border-radius: 4px; }

/* --- Navigation --- */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.nav-link:hover { color: #2563eb; background: #eff6ff; }
.nav-active { color: #2563eb; background: #eff6ff; }

/* --- Header Scroll Effect --- */
.header-scrolled { background: rgba(255,255,255,0.95) !important; box-shadow: 0 4px 30px rgba(0,0,0,0.08); }

/* --- Animations Keyframes --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
@keyframes glow {
    from { box-shadow: 0 0 20px rgba(59,130,246,0.3); }
    to { box-shadow: 0 0 40px rgba(59,130,246,0.6); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}
@keyframes gradient-x {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Hero Gradient Background --- */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #1d4ed8 70%, #0f172a 100%);
    background-size: 200% 200%;
    animation: gradient-x 15s ease infinite;
}

/* --- Glass Card --- */
.glass-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
}

/* --- Service Card --- */
.service-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border-color: #bfdbfe;
}
.service-card:hover::before { transform: scaleX(1); }

/* --- Stat Counter --- */
.stat-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: scale(1.05); }

/* --- Testimonial Card --- */
.testimonial-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* --- Industry Badge --- */
.industry-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.3s ease;
}
.industry-badge:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.12);
}

/* --- CTA Gradient Button --- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.cta-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}
.cta-primary:hover {
    box-shadow: 0 12px 35px rgba(37,99,235,0.45);
    transform: translateY(-2px);
}
.cta-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 25px rgba(16,185,129,0.3);
}
.cta-green:hover {
    box-shadow: 0 12px 35px rgba(16,185,129,0.45);
    transform: translateY(-2px);
}
.cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* --- Particle Effect in Hero --- */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

/* --- Section Separator --- */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* --- Portfolio Filter --- */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 15px rgba(37,99,235,0.25);
}

/* --- Blog Card --- */
.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s ease;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}
.blog-card img { transition: transform 0.5s ease; }
.blog-card:hover img { transform: scale(1.05); }

/* --- Contact Form --- */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}
.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

/* --- WhatsApp Pulse --- */
#whatsapp-sticky::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37,211,102,0.4);
    animation: pulse-ring 2s cubic-bezier(0.4,0,0.6,1) infinite;
    z-index: -1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-gradient { min-height: auto; padding: 4rem 0 3rem; }
}
