@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', 'Cairo', sans-serif;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

.font-\[flat-jooza\] {
    font-family: 'Cairo', 'Inter', sans-serif !important;
}

body {
    background-color: #ffffff;
    color: #454545;
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(25, 144, 155, 0.05) 0%, transparent 65%),
        linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center top;
}

/* Floating shapes and glowing backgrounds */
.float-shape {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

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

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.06;
    pointer-events: none;
}

/* Custom text and gradient styles */
.text-cyan-glow {
    color: #19909B;
    text-shadow: 0 0 10px rgba(25, 144, 155, 0.1);
}

.text-blue-glow {
    color: #C51B6B;
    text-shadow: 0 0 10px rgba(197, 27, 107, 0.1);
}

.text-digital {
    color: #19909B !important;
}

.text-age {
    color: #C51B6B !important;
}

/* Glassmorphism Refactored to Light Mode */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: rgba(25, 144, 155, 0.2);
    box-shadow: 0 12px 30px 0 rgba(25, 144, 155, 0.08);
}

/* Progress bar styling */
.rs-skill-bar {
    width: 100%;
    margin-bottom: 12px;
}

.skillbar {
    position: relative;
    display: block;
    width: 100%;
    background: #f1f5f9;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.skillbar-title {
    position: absolute;
    top: 0;
    left: 15px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 26px;
    z-index: 2;
}

[dir="rtl"] .skillbar-title {
    left: auto;
    right: 15px;
}

.skillbar-bar {
    height: 100%;
    width: 0px;
    background: linear-gradient(90deg, #C51B6B 0%, #19909B 100%);
    transition: width 1.8s cubic-bezier(0.1, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.skillbar-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: bar-shimmer 2.5s infinite;
}

@keyframes bar-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.skill-bar-percent {
    position: absolute;
    right: 15px;
    top: 0;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    line-height: 26px;
    z-index: 2;
}

[dir="rtl"] .skill-bar-percent {
    right: auto;
    left: 15px;
}

/* Buttons and CTAs */
.btn-primary, .btn-cyan {
    background: linear-gradient(135deg, #19909B 0%, #C51B6B 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 144, 155, 0.25);
    color: #ffffff !important;
}

.btn-primary:hover, .btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 144, 155, 0.4);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b !important;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Language Switcher */
.lang-switch {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: #f8fafc;
}

/* Animated Gradient Text Effect */
.animated-gradient-text {
    background: linear-gradient(90deg, #19909B, #C51B6B, #19909B);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

[dir="rtl"] {
    direction: rtl;
}

.logo {
    width: 45px;
    height: auto;
    margin-right: 15px;
}

[dir="rtl"] .logo {
    margin-right: 0;
    margin-left: 15px;
}

/* Entrance Slide-Up Animation */
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

.animate-fade-in-up-delay-1 {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.animate-fade-in-up-delay-2 {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.shadow-glow {
    box-shadow: 0 0 12px 2px currentColor;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ffffff;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive elements */
@media (max-width: 768px) {
    .glow-orb {
        display: none;
    }
}

/* Logo & Logo Text Animations */
@keyframes logoBreathe {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.08) rotate(3deg);
    }
}
@keyframes textGlowBreathe {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(25, 144, 155, 0.15)) drop-shadow(0 0 2px rgba(197, 27, 107, 0.1));
    }
    50% {
        transform: scale(1.04) translateY(-1px);
        filter: drop-shadow(0 0 10px rgba(25, 144, 155, 0.45)) drop-shadow(0 0 10px rgba(197, 27, 107, 0.35));
    }
}
.logo-animated {
    display: inline-block;
    animation: logoBreathe 3s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.logo-animated:hover {
    animation: none !important;
    transform: rotate(360deg) scale(1.15) !important;
}
.logo-text-animated {
    display: inline-flex;
    align-items: center;
    animation: textGlowBreathe 3s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.logo-text-animated:hover {
    animation: none !important;
    transform: scale(1.1) translateY(-2px) !important;
    filter: drop-shadow(0 0 15px rgba(25, 144, 155, 0.55)) drop-shadow(0 0 15px rgba(197, 27, 107, 0.45)) !important;
}
.logo-text-animated span {
    display: inline-block;
    transition: all 0.4s ease;
}
.logo-text-animated:hover span:first-child {
    transform: rotate(-2deg) scale(1.05);
}
.logo-text-animated:hover span:last-child {
    transform: rotate(2deg) scale(1.05);
}

/* Navigation Link Hover & Active Underline Animation */
.nav-link {
    position: relative;
    padding-bottom: 4px;
    outline: none !important;
    transition: color 0.3s ease;
}
.nav-link:focus, .nav-link:focus-visible {
    outline: none !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: #19909B;
    transition: width 0.3s ease;
}
[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}
.nav-link:hover::after,
.nav-link:focus::after,
.nav-link:active::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active, .nav-link:hover, .nav-link:focus, .nav-link:active {
    color: #19909B !important;
}

/* Custom start/CTA button high contrast & circular styling */
.btn-cyan,
a.btn-cyan,
button.btn-cyan,
.get-started-btn {
    background: var(--color-primary, #19909B) !important;
    color: #ffffff !important;
    border-radius: 9999px !important; /* rounded pill (circle style) */
    font-weight: 700 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.btn-cyan:hover,
a.btn-cyan:hover,
button.btn-cyan:hover,
.get-started-btn:hover {
    background: var(--color-secondary, #C51B6B) !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Global paragraph alignment and justification */
[data-i18n="heroSubtitle"] {
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: center !important;
}

section p.text-center,
p.text-center {
    text-align: center !important;
}

/* ==========================================
   MOBILE-FIRST OPTIMIZATIONS (max-width: 767px)
   ========================================== */
@media (max-width: 767px) {
    /* 1. Global Section Heights & Paddings: Remove stretch and reduce empty space */
    section:not(#home) {
        padding-top: 3.5rem !important; /* Adequate padding to offset fixed navbar */
        padding-bottom: 1.5rem !important;
        min-height: auto !important;
    }
    
    /* Specific tailwind padding overrides for mobile */
    .py-32, .py-24, .py-20, .py-16, .py-12, .py-10,
    .pt-32, .pt-24, .pt-20, .pt-16, .pt-12,
    .pb-32, .pb-24, .pb-20, .pb-16, .pb-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Reduce vertical gaps and margins */
    .my-24, .my-20, .my-16, .my-12, .my-10, .my-8 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .mb-24, .mb-20, .mb-16, .mb-12, .mb-10, .mb-8, .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    .mt-24, .mt-20, .mt-16, .mt-12, .mt-10, .mt-8, .mt-6 {
        margin-top: 1rem !important;
    }

    /* Keep margins inside forms, containers, and groups compact */
    .space-y-16 > :not([hidden]) ~ :not([hidden]),
    .space-y-12 > :not([hidden]) ~ :not([hidden]),
    .space-y-10 > :not([hidden]) ~ :not([hidden]),
    .space-y-8 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
    }

    /* Optimize Grid Layout Gaps on Mobile */
    .gap-16, .gap-12, .gap-10, .gap-8, .gap-6, .gap-4 {
        gap: 0.75rem !important;
    }

    /* 2. Hero Section Mobile Optimization: Avoid oversized above-the-fold */
    #home,
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        padding-top: 5.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* 3. Typography: Increase font size slightly & improve wrapping/line-height */
    h1, .text-4xl, .text-5xl, .text-6xl, .text-7xl {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
        font-weight: 800 !important;
    }
    
    h2, .text-3xl {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        font-weight: 800 !important;
    }
    
    h3, .text-2xl {
        font-size: 1.2rem !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
    }

    h4, .text-xl {
        font-size: 1.05rem !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
    }
    
    p, .text-base, .text-lg, .text-slate-600 {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
    }
    
    .text-sm {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    /* Justify alignment on mobile to prevent awkward line breaks and use full width */
    p:not(.text-center):not(.text-right) {
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    /* 4. Layout & Containers: Use the available screen width efficiently */
    .max-w-7xl, .container, .mx-auto {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* 5. Cards & Components: Make cards more compact and visually connected */
    .glass-card, 
    .why-us-card, 
    .service-card, 
    .testimonial-card,
    .project-card,
    .blog-card {
        padding: 1.15rem !important;
        margin-bottom: 0.25rem !important;
        border-radius: 1rem !important;
    }

    .team-card {
        padding-top: 4.75rem !important;
        padding-bottom: 1.5rem !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        margin-bottom: 0.25rem !important;
        border-radius: 1rem !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .team-grid {
        margin-top: 5.5rem !important;
    }

    .service-card h3 {
        font-size: 9px !important;
    }
    @media (max-width: 374px) {
        .service-card h3 {
            font-size: 8px !important;
        }
    }
    .service-card p {
        font-size: 7.5px !important;
        text-align: start !important;
        text-justify: none !important;
    }
    @media (max-width: 374px) {
        .service-card p {
            font-size: 7px !important;
        }
    }

    .why-us-card {
        border-radius: 1.5rem !important;
    }
    
    /* Optimize roadmap/steps icons & circular roadmap spacing */
    #semicircle-roadmap-container {
        min-height: auto !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    #semicircle-nodes {
        padding-left: 35px !important;
        padding-right: 0 !important;
    }
    
    [dir="rtl"] #semicircle-nodes {
        padding-right: 35px !important;
        padding-left: 0 !important;
    }

    /* Stack grid properly but with neat small spacing */
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }

    .grid-cols-3, .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
    }
}

/* ==========================================
   VALUES CARDS COLORS (Mobile vs. Laptop)
   ========================================== */

/* Mobile view: cards (0, 3, 4) are pink, cards (1, 2, 5) are white */
@media (max-width: 767px) {
    /* Pink Cards on Mobile */
    .value-card-0, .value-card-3, .value-card-4 {
        background-color: var(--color-secondary, #C51B6B) !important;
        border-color: transparent !important;
        box-shadow: 0 20px 25px -5px rgba(197, 27, 107, 0.3), 0 10px 10px -5px rgba(197, 27, 107, 0.3) !important;
    }
    .value-card-0 h4, .value-card-3 h4, .value-card-4 h4 {
        color: #ffffff !important;
    }
    .value-card-0 p, .value-card-3 p, .value-card-4 p {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    .value-card-0 .icon-bg, .value-card-3 .icon-bg, .value-card-4 .icon-bg {
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }

    /* White Cards on Mobile */
    .value-card-1, .value-card-2, .value-card-5 {
        background-color: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    }
    .value-card-1 h4, .value-card-2 h4, .value-card-5 h4 {
        color: var(--color-secondary, #C51B6B) !important;
    }
    .value-card-1 p, .value-card-2 p, .value-card-5 p {
        color: #64748b !important;
    }
    .value-card-1 .icon-bg, .value-card-2 .icon-bg, .value-card-5 .icon-bg {
        background-color: #C51B6B1A !important;
        color: var(--color-secondary, #C51B6B) !important;
    }
}

/* Laptop/Desktop view: Responsibility (3), Credibility (1), Transparency (5) are pink */
@media (min-width: 768px) {
    /* Pink Cards on Laptop */
    .value-card-1, .value-card-3, .value-card-5 {
        background-color: var(--color-secondary, #C51B6B) !important;
        border-color: transparent !important;
        box-shadow: 0 20px 25px -5px rgba(197, 27, 107, 0.3), 0 10px 10px -5px rgba(197, 27, 107, 0.3) !important;
    }
    .value-card-1 h4, .value-card-3 h4, .value-card-5 h4 {
        color: #ffffff !important;
    }
    .value-card-1 p, .value-card-3 p, .value-card-5 p {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    .value-card-1 .icon-bg, .value-card-3 .icon-bg, .value-card-5 .icon-bg {
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }

    /* White Cards on Laptop */
    .value-card-0, .value-card-2, .value-card-4 {
        background-color: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
    }
    .value-card-0 h4, .value-card-2 h4, .value-card-4 h4 {
        color: var(--color-secondary, #C51B6B) !important;
    }
    .value-card-0 p, .value-card-2 p, .value-card-4 p {
        color: #64748b !important;
    }
    .value-card-0 .icon-bg, .value-card-2 .icon-bg, .value-card-4 .icon-bg {
        background-color: #C51B6B1A !important;
        color: var(--color-secondary, #C51B6B) !important;
    }
}

/* ==========================================
   ABOUT FEATURE CARDS COLORS (Mobile vs. Desktop)
   ========================================== */

/* Mobile view: cards 0, 2, 4 are pink; cards 1, 3 are white */
@media (max-width: 1023px) {
    /* Pink Cards on Mobile (0, 2, 4) */
    .about-card-0, .about-card-2, .about-card-4 {
        background-color: var(--color-secondary, #C51B6B) !important;
        border-color: transparent !important;
        box-shadow: 0 20px 25px -5px rgba(197, 27, 107, 0.3), 0 10px 10px -5px rgba(197, 27, 107, 0.3) !important;
    }
    .about-card-0 .about-card-icon, .about-card-2 .about-card-icon, .about-card-4 .about-card-icon {
        color: #ffffff !important;
    }
    .about-card-0 h4, .about-card-2 h4, .about-card-4 h4 {
        color: #ffffff !important;
    }
    .about-card-0 p, .about-card-2 p, .about-card-4 p {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* White Cards on Mobile (1, 3) */
    .about-card-1, .about-card-3 {
        background-color: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.05) !important;
    }
    .about-card-1 .about-card-icon, .about-card-3 .about-card-icon {
        color: var(--color-secondary, #C51B6B) !important;
    }
    .about-card-1 h4, .about-card-3 h4 {
        color: var(--color-primary, #19909B) !important;
    }
    .about-card-1 p, .about-card-3 p {
        color: #64748b !important;
    }
}

/* Desktop/Laptop view: cards 0, 1, 3 are pink; cards 2, 4 are white */
@media (min-width: 1024px) {
    /* Pink Cards on Desktop (0, 1, 3) */
    .about-card-0, .about-card-1, .about-card-3 {
        background-color: var(--color-secondary, #C51B6B) !important;
        border-color: transparent !important;
        box-shadow: 0 20px 25px -5px rgba(197, 27, 107, 0.3), 0 10px 10px -5px rgba(197, 27, 107, 0.3) !important;
    }
    .about-card-0 .about-card-icon, .about-card-1 .about-card-icon, .about-card-3 .about-card-icon {
        color: #ffffff !important;
    }
    .about-card-0 h4, .about-card-1 h4, .about-card-3 h4 {
        color: #ffffff !important;
    }
    .about-card-0 p, .about-card-1 p, .about-card-3 p {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* White Cards on Desktop (2, 4) */
    .about-card-2, .about-card-4 {
        background-color: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.05) !important;
    }
    .about-card-2 .about-card-icon, .about-card-4 .about-card-icon {
        color: var(--color-secondary, #C51B6B) !important;
    }
    .about-card-2 h4, .about-card-4 h4 {
        color: var(--color-primary, #19909B) !important;
    }
    .about-card-2 p, .about-card-4 p {
        color: #64748b !important;
    }
}




