/* ===================================================
   EgyGold Contracting - Landing Page Styles
   Colors from Logo: Orange #E8751A, Gray #6D6E70, Dark #2C2C2C
   =================================================== */

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

/* ── CSS Custom Properties ── */
:root {
    /* Brand Colors */
    --primary: #E8751A;
    --primary-light: #F4943E;
    --primary-dark: #C45F0E;
    --primary-glow: rgba(232, 117, 26, 0.3);
    --secondary: #6D6E70;
    --secondary-light: #8A8B8D;
    --secondary-dark: #4A4B4D;
    --dark: #1A1A2E;
    --dark-2: #16213E;
    --dark-3: #0F3460;
    --light: #F8F9FA;
    --light-2: #E9ECEF;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-muted: #6C757D;
    --text-light: #ADB5BD;
    --overlay-dark: rgba(26, 26, 46, 0.85);
    --overlay-gradient: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(15, 52, 96, 0.8));

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E8751A, #F4943E);
    --gradient-dark: linear-gradient(135deg, #1A1A2E, #16213E);
    --gradient-hero: linear-gradient(135deg, rgba(26, 26, 46, 0.92) 0%, rgba(232, 117, 26, 0.15) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 8px 30px rgba(232, 117, 26, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-family: 'Cairo', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body,
body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Utility Classes ── */
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.section-padding {
    padding: var(--section-padding);
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(232, 117, 26, 0.1), rgba(232, 117, 26, 0.05));
    border: 1px solid rgba(232, 117, 26, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.section-badge i {
    font-size: 14px;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-title span {
    color: var(--primary);
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 3px;
    opacity: 0.3;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ── Scroll Animations ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(-60px);
}

.animate-on-scroll.slide-right.animated {
    transform: translateX(0);
}

.animate-on-scroll.slide-left {
    transform: translateX(60px);
}

.animate-on-scroll.slide-left.animated {
    transform: translateX(0);
}

.animate-on-scroll.scale-up {
    transform: scale(0.85);
}

.animate-on-scroll.scale-up.animated {
    transform: scale(1);
}

.animate-on-scroll.fade-in {
    transform: none;
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }
.delay-7 { transition-delay: 0.7s !important; }
.delay-8 { transition-delay: 0.8s !important; }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition-base);
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .brand-name {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.navbar-brand .brand-tagline {
    font-size: var(--font-size-xs);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(232, 117, 26, 0.4);
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(232, 117, 26, 0.4);
}

.nav-cta::before { display: none !important; }

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    background: none;
    border: none;
}

.navbar-toggle span {
    width: 28px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-base);
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ══════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--gradient-hero);
}

/* Animated particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}

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

.hero-content {
    position: relative;
    z-index: 4;
    padding-top: 100px;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(232, 117, 26, 0.15);
    border: 1px solid rgba(232, 117, 26, 0.3);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 8px;
    background: rgba(232, 117, 26, 0.3);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.7s both;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(232, 117, 26, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(232, 117, 26, 0.1);
    transform: translateY(-3px);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--dark-2);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease 1.1s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.hero-stat .stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ══════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════ */
.about-section {
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 117, 26, 0.05), transparent);
    border-radius: 50%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    left: 30px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-primary);
    text-align: center;
}

[dir="rtl"] .about-image-badge,
body.rtl .about-image-badge {
    left: auto;
    right: 30px;
}

.about-image-badge .badge-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 900;
    line-height: 1;
}

.about-image-badge .badge-text {
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-top: 4px;
}

.about-content .about-text {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 35px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.about-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.about-feature .feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(232, 117, 26, 0.1), rgba(232, 117, 26, 0.05));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.about-feature .feature-text {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
}

/* ══════════════════════════════════════════
   SERVICES SECTION
   ══════════════════════════════════════════ */
.services-section {
    background: var(--white);
    position: relative;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.service-tab {
    padding: 12px 28px;
    border: 2px solid var(--light-2);
    border-radius: 50px;
    background: transparent;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-tab:hover,
.service-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(232, 117, 26, 0.05);
}

.service-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: none;
}

.service-card.visible {
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-image .service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.service-card:hover .service-card-image .service-overlay {
    opacity: 1;
}

.service-card-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    box-shadow: var(--shadow-primary);
    z-index: 2;
}

[dir="rtl"] .service-card-icon,
body.rtl .service-card-icon {
    left: auto;
    right: 15px;
}

.service-card-body {
    padding: 24px;
}

.service-card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.service-card:hover .service-card-title {
    color: var(--primary);
}

.service-card-desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.8;
}

/* ══════════════════════════════════════════
   STATS/COUNTERS SECTION
   ══════════════════════════════════════════ */
.stats-section {
    background: var(--dark);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    opacity: 0.15;
}

.stats-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.stat-item:hover {
    background: rgba(232, 117, 26, 0.1);
    border-color: rgba(232, 117, 26, 0.3);
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(232, 117, 26, 0.2), rgba(232, 117, 26, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 28px;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 5px;
    line-height: 1;
}

.stat-number .counter-suffix {
    color: var(--primary);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ══════════════════════════════════════════
   PROJECTS / PORTFOLIO SECTION
   ══════════════════════════════════════════ */
.projects-section {
    background: var(--light);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: background 0.4s ease;
}

.project-card:hover .project-card-overlay {
    background: linear-gradient(to top, rgba(232, 117, 26, 0.9), rgba(26, 26, 46, 0.6) 60%);
}

.project-card-content {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-card-content {
    transform: translateY(0);
}

.project-card-category {
    font-size: var(--font-size-xs);
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.project-card-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--white);
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ══════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════ */
.contact-section {
    background: var(--white);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: rgba(232, 117, 26, 0.2);
    transform: translateY(-3px);
}

.contact-info-card .card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.contact-info-card .card-content h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-info-card .card-content p,
.contact-info-card .card-content a {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-info-card .card-content a:hover {
    color: var(--primary);
}

.phone-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-sm) !important;
    direction: ltr;
}

.phone-link i {
    color: var(--primary);
    font-size: 14px;
}

.whatsapp-icon { color: #25D366 !important; }

/* Map */
.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 450px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(232, 117, 26, 0.03));
}

.footer-main {
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand img {
    height: 50px;
}

.footer-brand-name {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--white);
}

.footer-desc {
    font-size: var(--font-size-sm);
    line-height: 1.9;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
    font-size: 16px;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

body.ltr .footer-title::after {
    right: auto;
    left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '←';
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.3s;
}

body.ltr .footer-links a::before {
    content: '→';
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 8px;
}

body.ltr .footer-links a:hover {
    padding-right: 0;
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: var(--font-size-sm);
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright a {
    color: var(--primary);
    font-weight: 600;
}

/* ══════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: var(--shadow-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.ltr .scroll-top {
    left: auto;
    right: 30px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(232, 117, 26, 0.5);
}

/* ══════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

body.ltr .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* ══════════════════════════════════════════
   LOADING SCREEN
   ══════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 100px;
    margin-bottom: 30px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar-inner {
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: preloaderBar 1.5s ease-in-out infinite;
}

@keyframes preloaderBar {
    0% { width: 0; margin-left: 0; }
    50% { width: 70%; margin-left: 15%; }
    100% { width: 0; margin-left: 100%; }
}

/* ══════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-xl);
        gap: 5px;
    }

    body.ltr .navbar-nav {
        right: auto;
        left: -100%;
    }

    .navbar-nav.open {
        right: 0;
    }

    body.ltr .navbar-nav.open {
        left: 0;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 12px 18px;
    }

    .navbar-toggle {
        display: flex;
    }

    .nav-cta-desktop {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-stat .stat-number {
        font-size: var(--font-size-2xl);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .cta-title {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════
   CUSTOM ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotateIn {
    from { transform: rotate(-180deg); opacity: 0; }
    to { transform: rotate(0); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Gradient text utility */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect utility */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tilt effect */
.tilt-effect {
    transition: transform 0.3s ease;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--primary) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Magnetic hover for buttons */
.magnetic-btn {
    transition: transform 0.3s ease;
}