html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background-color: #f3f4f6; }
[lang="en"] body { font-family: 'Poppins', 'Cairo', sans-serif; }

.gradient-text {
    background: linear-gradient(135deg, #012642 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-bg {
    background: linear-gradient(135deg, rgba(1,38,66,0.93) 0%, rgba(220,38,38,0.88) 100%),
                url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

#electric-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

.service-card-large {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(1, 38, 66, 0.06);
}

.service-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1,38,66,0.03) 0%, rgba(220,38,38,0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

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

.service-card-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #012642, #dc2626);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-large:hover::after {
    transform: scaleX(1);
}

.service-card-large:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px -20px rgba(1, 38, 66, 0.2);
    border-color: rgba(1, 38, 66, 0.15);
}

.service-card-large .icon-box-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    z-index: 2;
}

.service-card-large .icon-box {
    width: 90px;
    height: 90px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px rgba(1, 38, 66, 0.25);
}

.service-card-large:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 20px 50px rgba(1, 38, 66, 0.35);
}

.service-card-large .icon-box::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 32px;
    background: linear-gradient(135deg, #012642, #dc2626);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(8px);
}

.service-card-large:hover .icon-box::before {
    opacity: 0.4;
}

.service-card-large .icon-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: inherit;
    z-index: -1;
}

.service-card-large .card-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-large .card-title {
    text-align: center;
    margin-bottom: 1rem;
}

.service-card-large .card-desc {
    text-align: center;
    flex-grow: 1;
}

.service-card-large .card-actions {
    margin-top: auto;
    padding-top: 1.5rem;
}

.service-card-large .deco-circle {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.04;
    transition: all 0.6s ease;
    z-index: 0;
}

.service-card-large:hover .deco-circle {
    transform: scale(1.5);
    opacity: 0.08;
}

.floating-btn {
    animation: float 3s ease-in-out infinite;
}

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

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.nav-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.section-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #012642, #dc2626);
    border-radius: 2px;
}

.lang-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-hidden {
    display: none !important;
}

.modal-overlay {
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.7);
}

.modal-content {
    animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cta-section {
    background: linear-gradient(135deg, #012642 0%, #dc2626 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: #012642;
    box-shadow: 0 0 0 4px rgba(1, 38, 66, 0.1);
    outline: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #012642, #dc2626);
    z-index: 9999;
    transition: width 0.1s;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.glow-primary { box-shadow: 0 0 20px rgba(1, 38, 66, 0.4); }
.glow-secondary { box-shadow: 0 0 20px rgba(220, 38, 38, 0.4); }

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

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

.counter-value {
    font-variant-numeric: tabular-nums;
}

.bg-generators {
    background: linear-gradient(135deg, rgba(243,244,246,0.70) 0%, rgba(229,231,235,0.70) 100%),
                url('../img/a.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-transformers {
    background: linear-gradient(135deg, rgba(243,244,246,0.65) 0%, rgba(229,231,235,0.65) 100%),
                url('../img/b.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: white;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-panel .menu-header {
    background: linear-gradient(135deg, #012642 0%, #dc2626 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.mobile-menu-panel .menu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.vision-mission-card {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid #e5e7eb;
}

.vision-mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(1, 38, 66, 0.2);
}

.vision-mission-card .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.vision-mission-card .bg-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    opacity: 0.05;
    border-radius: 50%;
}

.footer-main {
    background: linear-gradient(180deg, #0a1628 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-link {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #dc2626);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: #f59e0b;
    transform: translateX(-4px);
}

[dir="ltr"] .footer-link::after {
    right: auto;
    left: 0;
}

[dir="ltr"] .footer-link:hover {
    transform: translateX(4px);
}

.footer-social-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #012642, #dc2626);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-social-btn:hover::before {
    opacity: 1;
}

.footer-social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 10px 25px rgba(1, 38, 66, 0.4);
}

.footer-social-btn i {
    position: relative;
    z-index: 1;
}

.footer-contact-item {
    transition: all 0.3s ease;
    border-radius: 1rem;
    padding: 0.75rem;
    margin: -0.75rem;
}

.footer-contact-item:hover {
    background: rgba(255,255,255,0.03);
}

.footer-contact-item:hover a {
    color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2.5rem !important;
    }
    .footer-grid .flex {
        justify-content: center;
    }
    .footer-contact-item {
        justify-content: center !important;
    }
}

.tooltip-rtl {
    right: 4rem;
    left: auto;
}

.tooltip-ltr {
    left: 4rem;
    right: auto;
}

[dir="ltr"] .tooltip-rtl {
    display: none !important;
}

[dir="rtl"] .tooltip-ltr {
    display: none !important;
}

.hero-title-highlight {
    color: #64b4ff;
    text-shadow: 0 0 40px rgba(100, 180, 255, 0.4), 0 2px 10px rgba(1, 38, 66, 0.5);
    position: relative;
}

.hero-title-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #64b4ff, transparent);
    border-radius: 2px;
}

/* ===== CLIENT LOGOS - PROFESSIONAL DISPLAY ===== */
.client-logo-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    box-shadow: 0 4px 15px rgba(1, 38, 66, 0.06);
}

.client-logo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1,38,66,0.02) 0%, rgba(220,38,38,0.02) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.client-logo-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #012642, #dc2626);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo-card:hover {
    transform: translateY(-10px);
    border-color: rgba(1, 38, 66, 0.1);
    box-shadow: 0 25px 50px -12px rgba(1, 38, 66, 0.18);
}

.client-logo-card:hover::before {
    opacity: 1;
}

.client-logo-card:hover::after {
    transform: scaleX(1);
}

.client-logo-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.client-logo-img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: all 0.5s ease;
    display: block;
}

.client-logo-card:hover .client-logo-img {
    filter: grayscale(0);
    transform: scale(1.08);
}

/* Decorative corner accents */
.client-logo-card .corner-accent {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    opacity: 0;
}

.client-logo-card:hover .corner-accent {
    opacity: 1;
}

.client-logo-card .corner-accent.top-left {
    top: 8px;
    left: 8px;
    border-top-color: #012642;
    border-left-color: #012642;
}

.client-logo-card .corner-accent.top-right {
    top: 8px;
    right: 8px;
    border-top-color: #dc2626;
    border-right-color: #dc2626;
}

.client-logo-card .corner-accent.bottom-left {
    bottom: 8px;
    left: 8px;
    border-bottom-color: #dc2626;
    border-left-color: #dc2626;
}

.client-logo-card .corner-accent.bottom-right {
    bottom: 8px;
    right: 8px;
    border-bottom-color: #012642;
    border-right-color: #012642;
}
