/* ============================================
   SapCod - Web Development Page Styles
   Ultra Premium Design with Animations
   ============================================ */

/* ===== Hero Section ===== */
.wd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 80px;
    background: #fafbfc;
    overflow: hidden;
    isolation: isolate;
}

[data-theme="dark"] .wd-hero {
    background: #060610;
}

.wd-hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#wdCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.wd-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
    animation: wdOrbFloat 12s ease-in-out infinite;
}
.wd-hero-orb.wd-orb-1 { width: 500px; height: 500px; background: #0066ff; top: -150px; right: -100px; }
.wd-hero-orb.wd-orb-2 { width: 400px; height: 400px; background: #339966; bottom: -100px; left: -80px; animation-delay: 5s; }

@keyframes wdOrbFloat {
    0%,100%{transform:translate(0,0)scale(1)}
    50%{transform:translate(40px,-30px)scale(1.1)}
}

.wd-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,102,255,0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,102,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 35%, transparent 70%);
}

.wd-hero-content {
    position: relative; z-index: 1; text-align: center; max-width: 850px; margin: 0 auto;
}

.wd-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 50px; margin-bottom: 24px;
    font-size: 0.8rem; font-weight: 600; color: #0066ff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    animation: wdFadeUp 0.6s ease both;
}
[data-theme="dark"] .wd-hero-badge { background: #1a1a2e; border-color: #2a2a4a; }

.badge-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
    animation: wdPulse 2s infinite;
}
@keyframes wdPulse {
    0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)}
    50%{box-shadow:0 0 0 12px rgba(34,197,94,0)}
}

.wd-hero-content h1 {
    font-size: 3.5rem; font-weight: 900; line-height: 1.12;
    color: #0f172a; margin-bottom: 18px; letter-spacing: -1.5px;
    animation: wdFadeUp 0.6s ease 0.1s both;
}
[data-theme="dark"] .wd-hero-content h1 { color: #f1f5f9; }

.wd-gradient {
    background: linear-gradient(90deg, #0066ff, #339966, #8b5cf6, #0066ff);
    background-size: 300% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wdGradientFlow 3s ease infinite;
}
@keyframes wdGradientFlow {
    0%,100%{background-position:0% 50%}
    50%{background-position:100% 50%}
}

.wd-hero-content p {
    font-size: 1.1rem; color: #64748b; line-height: 1.7;
    max-width: 600px; margin: 0 auto 30px;
    animation: wdFadeUp 0.6s ease 0.2s both;
}
[data-theme="dark"] .wd-hero-content p { color: #94a3b8; }

.wd-hero-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    animation: wdFadeUp 0.6s ease 0.3s both;
}

.wd-btn-primary {
    padding: 16px 32px; background: #0066ff; color: #fff;
    border-radius: 14px; text-decoration: none; font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.3s; box-shadow: 0 8px 30px rgba(0,102,255,0.25);
}
.wd-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0,102,255,0.4); }

.wd-btn-outline {
    padding: 16px 30px; background: #fff; color: #0066ff;
    border: 2px solid #e2e8f0; border-radius: 14px;
    text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s;
}
[data-theme="dark"] .wd-btn-outline { background: #1a1a2e; border-color: #2a2a4a; color: #60a5fa; }
.wd-btn-outline:hover { border-color: #0066ff; }

.wd-hero-stats {
    display: flex; gap: 30px; justify-content: center; margin-top: 40px;
    animation: wdFadeUp 0.6s ease 0.4s both;
}

.wd-stat { text-align: center; }
.wd-stat-icon { font-size: 1.5rem; margin-bottom: 4px; }
.wd-stat-val { font-size: 1.6rem; font-weight: 800; color: #0066ff; }
.wd-stat-lbl { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }

@keyframes wdFadeUp {
    from{opacity:0;transform:translateY(25px)}
    to{opacity:1;transform:translateY(0)}
}

/* ===== Container & Section Common ===== */
.wd-services, .wd-tech, .wd-process, .wd-cta { padding: 100px 0; }
.wd-services, .wd-process { background: #fff; }
[data-theme="dark"] .wd-services, [data-theme="dark"] .wd-process { background: #0a0a1a; }
.wd-tech { background: #f8fafc; }
[data-theme="dark"] .wd-tech { background: #0e0e22; }

.wd-section-header { text-align: center; margin-bottom: 60px; }

.wd-chip {
    display: inline-block; padding: 8px 18px;
    background: rgba(0,102,255,0.06); border: 1px solid rgba(0,102,255,0.12);
    border-radius: 50px; font-size: 0.78rem; font-weight: 700;
    color: #0066ff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px;
}

.wd-section-header h2 {
    font-size: 2.6rem; font-weight: 800; color: #0f172a; margin-bottom: 10px;
}
[data-theme="dark"] .wd-section-header h2 { color: #e8e8f0; }
.wd-section-header h2 .highlight { color: #0066ff; }
.wd-section-header p { color: #888; font-size: 1rem; }

/* ===== Services Showcase ===== */
.wd-services-showcase { display: flex; flex-direction: column; gap: 80px; }

.wd-service-block {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.wd-service-block.reverse { direction: rtl; }
.wd-service-block.reverse .wd-service-info { direction: ltr; }

.wd-service-visual { position: relative; display: flex; justify-content: center; }

/* Browser Mockup */
.wd-browser-mockup {
    width: 100%; max-width: 420px; background: #fff;
    border-radius: 16px; overflow: hidden;
    border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    animation: wdFloat 5s ease-in-out infinite;
}
[data-theme="dark"] .wd-browser-mockup { background: #1a1a30; border-color: #2a2a4a; }

@keyframes wdFloat {
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-10px)}
}

.browser-header {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 14px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0;
}
[data-theme="dark"] .browser-header { background: #1e293b; border-color: #334155; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red{background:#ef4444}.browser-dot.yellow{background:#f59e0b}.browser-dot.green{background:#22c55e}
.browser-url {
    flex: 1; background: #fff; border-radius: 6px; padding: 4px 10px;
    font-size: 0.65rem; color: #888; margin-left: 8px; font-family: monospace;
}
[data-theme="dark"] .browser-url { background: #0f0f23; }

.browser-body { padding: 16px; }
.browser-layout { display: flex; gap: 10px; }
.browser-sidebar { width: 60px; height: 120px; background: #f1f5f9; border-radius: 8px; animation: wdBrowserPulse 2s ease infinite; }
.browser-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.browser-hero { height: 50px; background: linear-gradient(135deg, #0066ff, #4d94ff); border-radius: 8px; opacity: 0.15; animation: wdBrowserPulse 2s ease infinite 0.3s; }
.browser-cards { display: flex; gap: 8px; }
.browser-card { flex: 1; height: 60px; background: #f1f5f9; border-radius: 6px; animation: wdBrowserPulse 2s ease infinite 0.6s; }
@keyframes wdBrowserPulse {
    0%,100%{opacity:1}50%{opacity:0.5}
}

/* E-Commerce Mockup */
.wd-ecommerce-mockup {
    width: 100%; max-width: 380px; background: #fff;
    border-radius: 16px; overflow: hidden;
    border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    animation: wdFloat 5s ease-in-out infinite 1s;
}
[data-theme="dark"] .wd-ecommerce-mockup { background: #1a1a30; border-color: #2a2a4a; }
.ec-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0;
}
.ec-logo { font-weight: 800; color: #0066ff; font-size: 1.1rem; }
.ec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.ec-product { background: #f8fafc; border-radius: 10px; overflow: hidden; }
.ec-product-img { height: 80px; background: linear-gradient(135deg, #e0e7ff, #d1fae5); animation: wdBrowserPulse 2s infinite; }
.ec-product-info { padding: 8px; }
.ec-product-name { height: 8px; background: #e2e8f0; border-radius: 4px; margin-bottom: 5px; width: 70%; }
.ec-product-price { height: 8px; background: #e2e8f0; border-radius: 4px; width: 40%; }

/* App Mockup */
.wd-app-mockup {
    width: 100%; max-width: 420px; background: #fff;
    border-radius: 16px; overflow: hidden; display: flex;
    border: 1px solid #e2e8f0; box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    animation: wdFloat 5s ease-in-out infinite 2s; min-height: 250px;
}
[data-theme="dark"] .wd-app-mockup { background: #1a1a30; border-color: #2a2a4a; }
.app-sidebar {
    width: 50px; background: #f8fafc; padding: 12px 8px;
    display: flex; flex-direction: column; gap: 8px; border-right: 1px solid #e2e8f0;
}
.app-menu-item { height: 8px; background: #e2e8f0; border-radius: 4px; }
.app-menu-item.active { background: #0066ff; width: 80%; }
.app-content { flex: 1; padding: 14px; }
.app-header { height: 30px; background: #f1f5f9; border-radius: 6px; margin-bottom: 12px; }
.app-table { display: flex; flex-direction: column; gap: 8px; }
.app-table-row { height: 12px; background: #f1f5f9; border-radius: 4px; }
.app-table-row:nth-child(2){width:80%}.app-table-row:nth-child(3){width:60%}

/* Floating Tags */
.wd-float-tag {
    position: absolute; padding: 8px 16px; background: #fff;
    border-radius: 10px; font-size: 0.72rem; font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06); animation: wdTagFloat 3s ease-in-out infinite;
}
[data-theme="dark"] .wd-float-tag { background: #1e293b; color: #e0e0e0; }
.wd-float-tag.tag-top { top: -10px; right: -10px; color: #0066ff; }
.wd-float-tag.tag-bottom { bottom: -10px; left: -10px; color: #339966; animation-delay: 1.5s; }
.wd-float-tag.green-tag { color: #339966; }
.wd-float-tag.purple-tag { color: #8b5cf6; }

@keyframes wdTagFloat {
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-8px)}
}

/* Service Info */
.wd-service-info { position: relative; }
.wd-service-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 16px;
}
.icon-blue{background:rgba(0,102,255,0.08);color:#0066ff}
.icon-green{background:rgba(51,153,102,0.08);color:#339966}
.icon-purple{background:rgba(139,92,246,0.08);color:#8b5cf6}

.wd-service-info h3 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
[data-theme="dark"] .wd-service-info h3 { color: #e0e0e0; }
.wd-service-info p { font-size: 0.95rem; color: #64748b; line-height: 1.7; margin-bottom: 16px; }
[data-theme="dark"] .wd-service-info p { color: #94a3b8; }

.wd-feature-list { list-style: none; padding: 0; }
.wd-feature-list li {
    font-size: 0.88rem; color: #475569; padding: 6px 0;
    display: flex; align-items: flex-start; gap: 10px;
}
[data-theme="dark"] .wd-feature-list li { color: #94a3b8; }
.wd-feature-list li i { color: #22c55e; margin-top: 3px; font-size: 0.75rem; }

/* ===== Tech Showcase ===== */
.wd-tech-showcase {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}

.wd-tech-category {
    background: #fff; border-radius: 20px; padding: 35px 24px;
    text-align: center; border: 1px solid #e2e8f0;
    transition: all 0.3s;
}
[data-theme="dark"] .wd-tech-category { background: #1a1a30; border-color: #2a2a4a; }
.wd-tech-category:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }

.wd-tech-icon-wrap {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(0,102,255,0.06); color: #0066ff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 16px;
}

.wd-tech-category h4 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 20px; }

.wd-tech-orbit {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}

.tech-bubble {
    padding: 8px 16px; background: #f1f5f9; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; color: #475569;
    transition: all 0.3s; animation: wdBubbleFloat 3s ease infinite;
    animation-delay: calc(var(--i) * 0.3s);
}
[data-theme="dark"] .tech-bubble { background: #0f0f23; color: #94a3b8; }
.tech-bubble:hover { background: #0066ff; color: #fff; transform: scale(1.05); }

@keyframes wdBubbleFloat {
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-6px)}
}

/* ===== Process ===== */
.wd-process-flow {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 0; max-width: 1000px; margin: 0 auto; flex-wrap: wrap;
}

.wd-process-card {
    text-align: center; width: 180px; padding: 25px 15px;
    background: #fff; border-radius: 20px; border: 1px solid #e2e8f0;
    transition: all 0.3s; position: relative;
}
[data-theme="dark"] .wd-process-card { background: #1a1a30; border-color: #2a2a4a; }
.wd-process-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }

.wd-process-num {
    font-size: 2.5rem; font-weight: 900; color: rgba(0,102,255,0.08);
    position: absolute; top: 10px; left: 15px; line-height: 1;
}

.wd-process-icon-wrap {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin: 0 auto 12px;
}
.p-blue{background:rgba(0,102,255,0.1);color:#0066ff}
.p-green{background:rgba(51,153,102,0.1);color:#339966}
.p-purple{background:rgba(139,92,246,0.1);color:#8b5cf6}
.p-orange{background:rgba(245,158,11,0.1);color:#f59e0b}

.wd-process-card h4 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.wd-process-card p { font-size: 0.8rem; color: #64748b; line-height: 1.5; margin-bottom: 8px; }
.wd-process-tag {
    font-size: 0.65rem; padding: 4px 10px; background: #f1f5f9;
    border-radius: 6px; color: #0066ff; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.wd-process-connector {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 10px; margin-top: 50px;
}
.connector-line { width: 40px; height: 2px; background: linear-gradient(90deg, #0066ff, #339966); opacity: 0.3; }
.connector-arrow { color: #0066ff; font-size: 0.7rem; margin-top: 2px; }

/* ===== CTA ===== */
.wd-cta-wrapper {
    background: linear-gradient(135deg, #0066ff, #0044cc);
    border-radius: 28px; padding: 60px 40px; text-align: center;
    color: #fff; position: relative; overflow: hidden;
}
.wd-cta-glow {
    position: absolute; width: 300px; height: 300px;
    background: rgba(255,255,255,0.05); border-radius: 50%;
    top: -50px; right: -50px; filter: blur(50px);
}

.wd-cta-wrapper h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; position: relative; }
.wd-cta-wrapper p { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; position: relative; }
.wd-cta-wrapper .wd-gradient {
    background: linear-gradient(90deg, #fff, #cbd5e1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.wd-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

.wd-btn-white {
    padding: 16px 30px; background: #fff; color: #0066ff;
    border-radius: 14px; text-decoration: none; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s;
}
.wd-btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .wd-service-block, .wd-service-block.reverse {
        grid-template-columns: 1fr; direction: ltr; gap: 40px;
    }
    .wd-service-visual { order: -1; max-width: 400px; margin: 0 auto; }
    .wd-tech-showcase { grid-template-columns: repeat(2, 1fr); }
    .wd-hero-content h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
    .wd-hero-content h1 { font-size: 2rem; }
    .wd-tech-showcase { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .wd-process-flow { flex-direction: column; align-items: center; gap: 20px; }
    .wd-process-card { width: 100%; max-width: 280px; }
    .wd-process-connector { display: none; }
    .wd-hero-stats { gap: 20px; flex-wrap: wrap; }
    .wd-float-tag { display: none; }
    .wd-section-header h2 { font-size: 2rem; }
    .wd-cta-wrapper { padding: 40px 20px; }
    .wd-cta-wrapper h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .wd-hero-content h1 { font-size: 1.7rem; }
    .wd-hero-actions { flex-direction: column; align-items: center; }
    .wd-btn-primary, .wd-btn-outline { width: 100%; justify-content: center; }
}