/*
Theme Name: Digivo
Description: Pixel Perfect Restoration
Version: 2.0
*/

html, body { max-width: 100vw; overflow-x: hidden; }

/* ===== UNIVERSAL ALIGNMENT =====
   Force all sections and containers to share
   the exact same horizontal margins/padding
   so right and left content edges always align.
================================= */
section > .container,
footer > .container {
    max-width: 1200px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.container {
    max-width: 1200px;
}

section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
:root {
    --bg-main: #050505;
    --bg-secondary: #0a0f1c;
    --color-teal: #14b8a6;
    --color-teal-glow: rgba(20, 184, 166, 0.4);
    --color-purple: #6366f1;
    --color-purple-glow: rgba(99, 102, 241, 0.4);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    /* Override Bootstrap defaults for dark theme */
    --bs-body-color: #f8fafc;
    --bs-heading-color: #f8fafc;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: 'Tajawal', sans-serif !important;
    font-size: 1.05rem;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

.logo-font {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 900;
    letter-spacing: -1px;
}
h1, h2, h3, h4, h5, h6, .display-4, .display-5, .display-6, .main-title {
    font-family: 'Tajawal', sans-serif !important;
    color: var(--text-light);
    font-weight: 700;
}

h1 { font-size: 2rem !important; }
h2 { font-size: 1.7rem !important; }
h3 { font-size: 1.4rem !important; }
h4 { font-size: 1.2rem !important; }
h5 { font-size: 1.1rem !important; }
h6 { font-size: 1rem !important; font-weight: 500 !important; }

.display-4 { font-size: 2.2rem !important; font-weight: 800 !important; }
.display-5 { font-size: 2rem !important; font-weight: 800 !important; }
.display-6 { font-size: 1.7rem !important; font-weight: 700 !important; }

.main-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    line-height: 1.4;
}

.fs-5 { font-size: 1.1rem !important; }
.lead { font-size: 1.15rem !important; }

.text-teal { color: var(--color-teal); }
.text-purple { color: var(--color-purple); }
.text-muted { color: var(--text-muted) !important; }

.gradient-text-teal {
    background: linear-gradient(135deg, #4fd1c5, var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #a5b4fc, var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.pt-6 { padding-top: 5rem !important; }
.pb-6 { padding-bottom: 5rem !important; }
.my-6 { margin-top: 5rem !important; margin-bottom: 5rem !important; }
.mt-6 { margin-top: 5rem !important; }
.mb-6 { margin-bottom: 5rem !important; }

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0f1c 0%, #050505 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 500px; height: 500px; background: var(--color-purple); top: -200px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--color-teal); bottom: -100px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #3b82f6; top: 40%; left: 50%; opacity: 0.2; animation-delay: -10s; }

.grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Navbar */
.glass-nav {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: all 0.3s;
}

.glass-nav.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 700;
    padding: 10px 15px !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-teal) !important;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    padding: 12px 28px;
    box-shadow: 0 4px 20px var(--color-purple-glow);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.6);
}

.btn-premium-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--color-teal);
    border-radius: 50px;
    font-weight: 700;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: var(--color-teal);
    color: var(--bg-main);
    box-shadow: 0 0 15px var(--color-teal-glow);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white !important;
    border-radius: 50px;
    font-weight: 700;
    padding: 12px 28px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px; /* Reduced to better center content with the fixed navbar */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.site-main {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove default Gutenberg block margins for our custom blocks */
.wp-block-digivo-hero-section, 
.wp-block-digivo-about-section,
.wp-block-digivo-services-grid,
.wp-block-digivo-portfolio-grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 50px;
    color: var(--color-teal);
    font-weight: 700;
    font-size: 0.9rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-teal);
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Removing main-title from here since it was moved to the top typography section */

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
}

.stat-item {
    padding: 20px;
    border-right: 1px solid var(--glass-border);
}
.stat-item:first-child { border-right: none; }
.stat-item h2 { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 5px; font-family: 'Outfit', sans-serif;}
.stat-item p { color: var(--text-muted); margin: 0; font-weight: 700;}

@media (max-width: 768px) {
    .main-title { font-size: 2rem !important; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 15px; }
}

/* Marquee */
.marquee-wrapper {
    background: linear-gradient(90deg, var(--color-purple), var(--color-teal), var(--color-purple));
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg) scale(1.05);
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    align-items: center;
}

.marquee-content span { 
    font-size: 1.2rem; 
    font-weight: 900; 
    color: transparent; 
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
    white-space: nowrap; 
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.marquee-content span:hover {
    color: #fff;
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.marquee-content i { 
    font-size: 0.9rem; 
    color: #fff; 
    margin: 0 25px; 
    opacity: 0.8;
}

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

/* About Section */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.ai-node-system {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    overflow: visible !important;
}

.center-node {
    font-size: 2.2rem;
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 50%;
    border: 2px solid var(--color-teal);
    box-shadow: 0 0 40px var(--color-teal-glow);
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.orbit-path {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.floating-node {
    position: absolute;
    width: 65px;
    height: 65px;
    background: var(--color-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 0 25px var(--color-purple-glow);
    z-index: 3;
}

.node-a { top: 15%; right: 5%; animation: float 4s ease-in-out infinite; background: var(--color-teal); box-shadow: 0 0 25px var(--color-teal-glow); }
.node-b { bottom: 10%; right: 10%; animation: float 5s ease-in-out infinite 1s; }
.node-c { top: 30%; left: 0%; animation: float 6s ease-in-out infinite 0.5s; background: #3b82f6; box-shadow: 0 0 25px rgba(59, 130, 246, 0.5); }

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

@keyframes spin { 100% { transform: rotate(360deg); } }

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* New Clean Services Grid */
.service-card-pro {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: 0.4s ease;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.service-card-pro:hover {
    transform: translateY(-10px);
    border-color: var(--color-teal);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.1);
}

.service-card-pro::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-teal));
    opacity: 0; transition: 0.4s;
}

.service-card-pro:hover::before { opacity: 1; }

.service-icon {
    font-size: 3rem;
    color: var(--color-teal);
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-purple);
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: 0.3s;
}

.service-link:hover {
    color: var(--color-teal);
    gap: 8px; /* Adds space making the arrow move */
}

/* Why Us / Features */
.feature-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    transition: 0.3s;
    text-align: start;
}

.feature-box:hover {
    background: rgba(20, 184, 166, 0.05);
    border-color: rgba(20, 184, 166, 0.2);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-teal);
    margin-bottom: 15px;
}

/* CTA Banner */
.cta-banner {
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: var(--color-purple);
    filter: blur(150px);
    opacity: 0.5;
    z-index: 0;
}

.glass-input {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: white !important;
    padding: 15px 20px;
    border-radius: 0 50px 50px 0 !important; /* RTL */
}

.glass-input:focus {
    box-shadow: none !important;
    border-color: var(--color-teal) !important;
}

.cta-form .btn {
    border-radius: 50px 0 0 50px !important; /* RTL */
    padding-left: 30px;
    padding-right: 30px;
}

/* Footer */
.footer {
    background: #02040a;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: start;
    margin-top: 80px; /* Space between last block and footer */
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}
.footer-links a:hover { color: var(--color-teal); padding-right: 5px; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: white;
    margin-left: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--color-teal);
    transform: translateY(-3px);
}

/* Reveal Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }

/* Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* AI Hexagon Logo */
.ai-hexagon-container {
    display: inline-flex;
    position: relative;
}
.ai-hexagon {
    width: 32px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-teal));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-hexagon-inner {
    width: 28px;
    height: 32px;
    background: var(--bg-main);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.fs-2 .ai-hexagon {
    width: 44px; height: 50px;
}
.fs-2 .ai-hexagon-inner {
    width: 38px; height: 44px;
    font-size: 20px;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 768px) {
    .py-6 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .pt-6 { padding-top: 3rem !important; }
    .pb-6 { padding-bottom: 3rem !important; }
    .my-6 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
    .mt-6 { margin-top: 3rem !important; }
    .mb-6 { margin-bottom: 3rem !important; }
    
    .display-4 { font-size: 1.8rem !important; }
    .display-5 { font-size: 1.6rem !important; }
    .main-title { font-size: 2rem !important; }
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    
    .portfolio-img { height: 200px !important; }
    .glass-panel { padding: 25px !important; }
    
    .hero-section { text-align: center; }
    
    .about-image-wrapper img, 
    img[style*="height: 500px"] {
        height: 300px !important;
    }

    /* Fix AI Node System Overflow on Mobile */
    .ai-node-system { transform: scale(0.6); height: 200px !important; margin-right: -40px; }
    
    /* Fix Hero Section */
    .hero-section { min-height: auto; padding-top: 150px; padding-bottom: 50px; }
    
    /* Fix Cards padding */
    .service-card-pro { padding: 30px 20px !important; }
    .glass-panel { padding: 20px !important; }
    
    /* Fix CTA input group */
    .cta-banner { padding: 40px 20px !important; }
    .cta-form { display: flex; flex-direction: column; gap: 15px; }
    .cta-form .glass-input { border-radius: 50px !important; text-align: center; }
    .cta-form .btn { border-radius: 50px !important; width: 100%; padding: 15px; }
    
    /* Center Footer */
    .footer { text-align: center !important; }
    .social-links { justify-content: center !important; margin: 0 auto; }
    .footer-contact li { justify-content: center !important; }
    .footer-links { padding-right: 0 !important; }
    .footer .navbar-brand { justify-content: center !important; width: 100%; }
    
    /* Fix Stats */
    .stat-item { border-right: none !important; border-bottom: 1px solid var(--glass-border); padding: 15px; }
    .stat-item:last-child { border-bottom: none; }
    
    /* Global margin fixes */
    /* removed container overflow */


    .btn-group-mobile { flex-direction: column; width: 100%; }
    .btn-group-mobile .btn { width: 100%; margin-bottom: 15px; }
}
@media (max-width: 768px) {
    .d-flex.flex-column { gap: 15px !important; }
    .hero-section .btn { width: 100%; margin-bottom: 15px; }
    .hero-section .btn:last-child { margin-bottom: 0; }
    .container { padding-left: 20px !important; padding-right: 20px !important; width: 100% !important; max-width: 100vw !important;}
    .marquee-wrapper { width: 100vw; left: 50%; margin-left: -50vw; }
    .reveal-left, .reveal-right { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* Missing Utilities from Backup */
.max-w-700 { max-width: 700px; }
.line-height-lg { line-height: 1.8 !important; }

/* Reset WordPress wrappers */
.site-main, .entry-content, .entry-header { padding: 0 !important; margin: 0 !important; }
.wp-block-group, .wp-block-columns { margin: 0 !important; padding: 0 !important; }
.wp-block-post-content { max-width: 100% !important; }

/* Portfolio Styles */
.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}
.portfolio-img {
    height: 250px;
    width: 100%;
    background-color: #1a1f2c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(5,5,5,0.9) 0%, transparent 100%);
    opacity: 0.6;
}
.portfolio-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}
.portfolio-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(20, 184, 166, 0.2);
    color: var(--color-teal);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 3;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(20, 184, 166, 0.4);
}
.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-teal);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
}
.portfolio-card:hover .portfolio-img i {
    transform: scale(1.1);
    color: rgba(255,255,255,0.3);
    transition: 0.4s;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--color-teal);
    color: #000;
    border-color: var(--color-teal);
}

/* Blog Styles */
.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-purple);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}
.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}
.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.5;
    transition: 0.3s;
}
.blog-card:hover .blog-title {
    color: var(--color-teal);
}
.blog-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
}
.read-more {
    color: var(--color-purple);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.read-more:hover {
    color: var(--color-teal);
}

/* Article/Single Content Styles */
.article-content h2 { margin-top: 40px; margin-bottom: 20px; font-size: 1.8rem !important; }
.article-content h3 { margin-top: 30px; margin-bottom: 15px; font-size: 1.5rem !important; color: var(--color-teal); }
.article-content p { font-size: 1.15rem !important; line-height: 2 !important; margin-bottom: 20px; color: var(--text-muted) !important; }
.article-content ul { font-size: 1.15rem !important; line-height: 2 !important; color: var(--text-muted) !important; margin-bottom: 20px; }
.article-content li { margin-bottom: 10px; }
.author-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}
.author-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-teal); }

/* Animations/Reveal */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Fix for Editor: Reveal everything by default */
.editor-styles-wrapper .reveal-up, 
.editor-styles-wrapper .reveal-left, 
.editor-styles-wrapper .reveal-right {
    opacity: 1 !important;
    transform: none !important;
}

/* Portfolio Grid Styles */
.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.portfolio-img {
    height: 250px;
    width: 100%;
    background-color: #1a1f2c;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(5,5,5,0.9) 0%, transparent 100%);
    opacity: 0.6;
}
.portfolio-content {
    padding: 25px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}
.portfolio-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(20, 184, 166, 0.2);
    color: var(--color-teal);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 3;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(20, 184, 166, 0.4);
}
.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-teal);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
    cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--color-teal);
    color: #000;
    border-color: var(--color-teal);
}

.portfolio-item.hidden {
    display: none !important;
}

/* Service Details Blocks (Process & FAQ) */
.process-step {
    transition: transform 0.3s ease;
}
.process-step:hover {
    transform: translateX(-10px); /* RTL */
}
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.3);
    flex-shrink: 0;
}
.step-content {
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.process-step:hover .step-content {
    border-color: var(--color-teal);
    background: rgba(20, 184, 166, 0.05);
}

.custom-accordion .accordion-item {
    background: transparent;
}
.custom-accordion .accordion-button {
    font-size: 1.15rem;
    padding: 20px 25px;
    border-bottom: 1px solid var(--glass-border);
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--color-teal) !important;
    background: rgba(20, 184, 166, 0.05) !important;
    border-bottom: 1px solid transparent;
}
.custom-accordion .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
    transition: transform 0.3s ease;
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: none; /* keep it teal if possible, or leave white */
}
.custom-accordion .accordion-body {
    padding: 20px 25px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Divider for About Section */
.about-section {
    border-top: 1px solid rgba(108, 117, 125, 0.25);
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 35px;
    left: 35px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { transform: scale(1); opacity: 0.8; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 2rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    left: calc(100% + 14px);
    background: rgba(10, 15, 28, 0.95);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 54px;
        height: 54px;
    }
    .whatsapp-float i { font-size: 1.7rem; }
    .wa-tooltip { display: none; }
}
