/* TCC Tactical Premium Design System */
:root {
    --tcc-gold: #C5A059;
    --tcc-gold-light: #F1D299;
    --tcc-gold-glow: rgba(197, 160, 89, 0.2);
    --tcc-primary: #0A0A0A;
    --tcc-secondary: #141414;
    --tcc-glass: rgba(10, 10, 10, 0.85);
    --tcc-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    scroll-behavior: smooth;
    background-color: var(--tcc-primary);
    color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
}

.font-ar { font-family: 'Cairo', sans-serif; }
.font-en { font-family: 'Montserrat', sans-serif; }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--tcc-gold) 0%, var(--tcc-gold-light) 50%, var(--tcc-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section spacing */
.section-padding {
    padding: 10rem 1.5rem; /* Consistent large spacing */
}
@media (max-width: 1024px) {
    .section-padding { padding: 8rem 1.5rem; }
}
@media (max-width: 768px) {
    .section-padding { padding: 6rem 1.25rem; }
}

/* ─── Navbar ─── */
.tcc-nav {
    background: rgba(10, 10, 10, 0.98); /* More opaque for mobile */
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    transition: var(--tcc-transition);
}
@media (min-width: 769px) {
    .tcc-nav {
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}
.tcc-nav.scrolled {
    background: #000;
    height: 70px;
}

/* ─── Mobile Menu ─── */
#mobile-menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    background: rgba(0,0,0,0.9);
    pointer-events: none;
}
#mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
#mobile-menu-panel {
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 51;
    pointer-events: none;
}
#mobile-menu-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.glass-panel {
    background: #141414; /* Solid background for mobile panel */
    border: 1px solid rgba(197, 160, 89, 0.2);
}
@media (min-width: 769px) {
    .glass-panel {
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(10px);
    }
}

/* ─── Lang Toggle ─── */
.lang-toggle {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}
.lang-toggle a {
    color: #666;
    transition: var(--tcc-transition);
}
.lang-toggle a.active {
    color: var(--tcc-gold);
}
.lang-toggle a:hover {
    color: #fff;
}

/* ─── Premium Trust Cards Redesign ─── */
.trust-card {
    position: relative;
    background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
}
.trust-card-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tcc-gold) 0%, var(--tcc-gold-light) 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-card:hover .trust-card-top-border {
    width: 100%;
}
.trust-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.trust-card:hover .trust-card-glow {
    opacity: 1;
}
.trust-card-number {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(197, 160, 89, 0.25);
    transition: color 0.5s ease;
}
[dir="rtl"] .trust-card-number {
    right: auto;
    left: 1.25rem;
}
.trust-card:hover .trust-card-number {
    color: var(--tcc-gold);
}
.trust-card-icon-container {
    position: relative;
    width: 6.5rem;
    height: 6.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-card-outer-ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(197, 160, 89, 0.25);
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-card:hover .trust-card-outer-ring {
    border-color: var(--tcc-gold);
    transform: rotate(45deg) scale(1.08);
}
.trust-card-inner-ring {
    position: absolute;
    inset: 0.5rem;
    background: rgba(197, 160, 89, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}
.trust-card:hover .trust-card-inner-ring {
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.3);
}
.trust-card-icon {
    font-size: 2.25rem;
    color: var(--tcc-gold);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-card:hover .trust-card-icon {
    transform: scale(1.15);
    color: var(--tcc-gold-light);
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}
.trust-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    transition: color 0.5s ease;
}
.trust-card:hover .trust-card-title {
    color: var(--tcc-gold-light);
}
.trust-card-divider {
    width: 2rem;
    height: 1px;
    background: rgba(197, 160, 89, 0.3);
    margin-bottom: 1.25rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.trust-card:hover .trust-card-divider {
    width: 4rem;
    background: var(--tcc-gold);
    box-shadow: 0 0 5px var(--tcc-gold);
}
.trust-card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    transition: color 0.5s ease;
}
.trust-card:hover .trust-card-desc {
    color: #cbd5e1;
}
.trust-card:hover {
    border-color: rgba(197, 160, 89, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 160, 89, 0.05);
}

/* ─── Hero ─── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Space for fixed nav */
}
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
}
.hero-section .reveal {
    animation: fadeIn 1.5s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hud-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
    pointer-events: none;
}
.topo-pattern {
    position: absolute;
    inset: 0;
    background-image: url('../images/topo.svg'); /* Fallback or placeholder */
    background-size: cover;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
    will-change: auto; /* Prevent unnecessary blur on some browsers */
}
.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Watermark */
.hero-section .opacity-\[0\.08\] {
    opacity: 0.05 !important; /* Reduced from 0.064 to ~0.05 (additional 20% reduction) */
}

/* ─── Stats Bar ─── */
.stats-bar {
    background: #0f0f0f;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}
.stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--tcc-gold);
    display: block;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.75rem; /* Increased and unified */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    font-weight: 600;
    display: block;
    min-height: 3em;
    max-width: 150px;
    margin: 0 auto;
}

/* ─── Tactical Frame ─── */
.about-image-container {
    padding: 0; /* Remove padding to allow image to grow */
    overflow: visible;
}
.about-image {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1); /* Increased base size by 10% */
}
.about-image-container:hover .about-image {
    transform: scale(1.15); /* Soft hover zoom */
}
.tactical-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--tcc-gold);
    border-left: 2px solid var(--tcc-gold);
    z-index: 20;
    box-shadow: -5px -5px 15px var(--tcc-gold-glow);
}
.tactical-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--tcc-gold);
    border-right: 2px solid var(--tcc-gold);
    z-index: 20;
    box-shadow: 5px 5px 15px var(--tcc-gold-glow);
}

/* ─── Why TCC Cards ─── */
.eng-card {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 320px; /* Increased card height */
    display: flex;
    flex-direction: column;
}
.eng-card i {
    transition: transform 0.5s ease;
    font-size: 3.5rem !important; /* Increased icon size by ~20% */
}
.eng-card:hover {
    border-color: var(--tcc-gold) !important;
    transform: translateY(-15px); /* Subtle lift animation */
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.9), 0 0 20px var(--tcc-gold-glow);
}
.eng-card:hover i {
    transform: scale(1.1);
}

/* ─── Partners ─── */
.partner-card {
    min-width: 350px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #0f0f0f;
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 4px;
    transition: var(--tcc-transition);
    margin-right: 20px;
    padding: 2rem;
}
.partner-logo-wrapper {
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02); /* Subtle contrast for logos */
    border-radius: 4px;
}
.partner-logo {
    max-height: 100px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    filter: brightness(1.2); /* Improve clarity on dark bg */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.partner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    transition: var(--tcc-transition);
}
.partner-card:hover {
    background: rgba(197, 160, 89, 0.05);
    border-color: var(--tcc-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--tcc-gold-glow);
}
.partner-card:hover .partner-logo {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1.5);
}
.partner-card:hover .partner-name {
    color: var(--tcc-gold);
}

/* Responsive slider for mobile */
@media (max-width: 768px) {
    .marquee-content {
        gap: 15px !important;
        animation-duration: 40s !important; /* Faster for fewer pixels to travel */
    }
    .partner-card {
        min-width: 220px;
        height: 220px;
        margin-right: 0;
        padding: 1.5rem;
    }
    .partner-logo-wrapper {
        height: 100px;
    }
    .partner-logo {
        max-height: 60px;
        max-width: 150px;
    }
    .partner-name {
        font-size: 0.8rem;
    }
}

/* ─── Identity Section ─── */
.brand-message-section {
    padding: 12rem 1rem; /* More whitespace */
    background: #050505;
    text-align: center;
}
.brand-text {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.5em;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255,255,255,0.05);
}
@media (max-width: 768px) {
    .brand-text { font-size: 1.5rem; letter-spacing: 0.2em; }
    .brand-message-section { padding: 6rem 1rem; }
}

/* ─── Buttons ─── */
.btn-gold {
    background: var(--tcc-gold);
    color: #000;
    transition: var(--tcc-transition);
    padding: 1.25rem 3.5rem !important; /* Larger buttons */
    font-size: 1.15rem !important;
}
.btn-gold:hover {
    background: #d4b47a;
    transform: scale(1.05);
}
.btn-outline-gold {
    border: 1px solid var(--tcc-gold);
    color: var(--tcc-gold);
    transition: var(--tcc-transition);
    padding: 1.25rem 3.5rem !important; /* Larger buttons */
    font-size: 1.15rem !important;
}
.btn-outline-gold:hover {
    background: rgba(197, 160, 89, 0.1);
    transform: scale(1.05);
}
.btn-pulse {
    animation: pulse-gold 2.5s infinite;
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
    70% { box-shadow: 0 0 0 14px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* ─── Form elements ─── */
.form-underline input,
.form-underline textarea,
.form-underline select {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.form-underline input:focus,
.form-underline textarea:focus,
.form-underline select:focus {
    border-bottom-color: var(--tcc-gold) !important;
    outline: none;
}

/* ─── Marquee ─── */
.marquee-wrapper { 
    overflow: hidden; 
    width: 100%; 
    position: relative;
    padding: 20px 0;
}
.marquee-content {
    display: inline-flex;
    transition: transform 0.5s ease-out;
    overflow-x: auto; /* Enable scrolling */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}
.marquee-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}
.marquee-content:hover { animation-play-state: paused; }

/* Slider Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--tcc-gold);
    color: #000;
    border: none;
    border-radius: 50%;
    z-index: 30;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.marquee-wrapper:hover .slider-nav-btn {
    opacity: 1;
    visibility: visible;
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.slider-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}
[dir="rtl"] .prev-btn { left: auto; right: 20px; }
[dir="rtl"] .next-btn { right: auto; left: 20px; }
[dir="rtl"] .prev-btn i { transform: rotate(180deg); }
[dir="rtl"] .next-btn i { transform: rotate(180deg); }

/* ─── Tactical cards (01-04) ─── */
.tactical-card {
    position: relative;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 1.5rem;
    transition: var(--tcc-transition);
}
.tactical-card:hover {
    border-color: var(--tcc-gold);
    transform: translateY(-4px);
}

/* ─── Glass Card ─── */
 .glass-card {
     background: rgba(20, 20, 20, 0.7);
     border: 1px solid rgba(255, 255, 255, 0.05);
     backdrop-filter: blur(10px);
 }
 @media (max-width: 768px) {
     .glass-card {
         backdrop-filter: none; /* Fix mobile blur issue */
         background: rgba(20, 20, 20, 0.95);
     }
 }
 .glass-card:hover {
     border-color: var(--tcc-gold);
 }

/* ─── Contact Methods ─── */
.contact-method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    transition: var(--tcc-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-method-card:hover {
    background: rgba(197, 160, 89, 0.05);
    border-color: var(--tcc-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}
.contact-method-card i {
    transition: var(--tcc-transition);
}
.contact-method-card:hover i {
    transform: scale(1.2);
    color: var(--tcc-gold-light);
}

/* ─── Dashboard steps ─── */
.dashboard-step {
    position: relative;
    padding: 1.25rem 1.5rem;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-left: 3px solid var(--tcc-gold);
    transition: var(--tcc-transition);
}
[dir="rtl"] .dashboard-step {
    border-left: 1px solid rgba(197, 160, 89, 0.15);
    border-right: 3px solid var(--tcc-gold);
}
.step-bg-num {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
}
[dir="rtl"] .step-bg-num { right: auto; left: 0; }

/* ─── Grid pattern ─── */
.bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ─── Tactical divider ─── */
.tactical-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tcc-gold), transparent);
    margin: 1.5rem 0;
}

/* ─── Industries Section ─── */
.industry-card {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}
.industry-card:hover {
    border-color: var(--tcc-gold);
    background: rgba(197, 160, 89, 0.03);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 20px rgba(197, 160, 89, 0.1);
}

/* ─── Timeline ─── */
@media (min-width: 1024px) {
    .approach-step::after {
        content: '';
        position: absolute;
        top: 32px;
        right: -50%;
        width: 100%;
        height: 2px; /* Thicker line */
        background: rgba(197, 160, 89, 0.1);
        z-index: 0;
        transition: all 0.8s ease;
    }
    .approach-step:last-child::after { display: none; }
    .approach-step:hover::after {
        background: var(--tcc-gold);
        opacity: 0.8;
        box-shadow: 0 0 10px var(--tcc-gold);
    }
}
.approach-step .w-16 {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 5rem !important; /* Increased icon size (w-20) */
    height: 5rem !important;
}
.approach-step i {
    font-size: 1.75rem !important; /* Increased icon size inside */
}
.approach-step:hover .w-16 {
    border-color: var(--tcc-gold);
    transform: scale(1.15) translateY(-8px);
    box-shadow: 0 15px 30px var(--tcc-gold-glow);
    background: var(--tcc-gold) !important;
}
.approach-step:hover i {
    color: #000 !important;
}

/* ─── About Image ─── */
.about-image-container {
    position: relative;
    padding: 15px;
    transition: var(--tcc-transition);
}
.about-image {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-image-container:hover .about-image {
    transform: scale(1.1);
}

/* ─── Animation Fixes (Blur Prevention) ─── */
.reveal, .eng-card, .partner-card, .btn-gold, .btn-outline-gold {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
[dir="rtl"] .marquee-content {
    animation-name: marquee-rtl;
}
@keyframes marquee-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
.project-card img {
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover img {
    transform: scale(1.1);
}

/* ─── Form Focus ─── */
.form-underline input:focus, 
.form-underline textarea:focus {
    border-bottom-color: var(--tcc-gold) !important;
    padding-left: 15px !important;
    transition: all 0.3s ease;
}

/* ─── Mobile Optimizations ─── */
@media (max-width: 768px) {
    .stat-num { font-size: 2rem; }
    .hero-section h1 {
        font-size: 2.1rem !important;
        line-height: 1.2;
    }
    .hero-section p {
        font-size: 1rem !important;
    }
    .stat-num {
        font-size: 1.75rem;
    }
    .stat-label {
        font-size: 9px;
        letter-spacing: 0.1em;
    }
    h2 {
        font-size: 2rem !important;
    }
    .eng-card {
        padding: 2rem !important;
        min-height: auto !important;
    }
    .tactical-card {
        margin-bottom: 0.75rem;
    }
    .partner-card {
        min-width: 200px !important;
        padding: 1.5rem !important;
    }
    .partner-logo {
        height: 4rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-pulse, .marquee-content { animation: none; }
    .reveal { opacity: 1 !important; }
}
