:root {
    --primary-color: #2C8AE2; /* From Logo */
    --secondary-color: #28B2E4; /* From Logo */
    --accent-color: #0d6efd;
    
    /* --- UPDATED: Lighter & Softer Dark Mode Palette --- */
    --dark-bg: #111827;      /* Lighter than #0b0f19 (Deep Slate Blue) */
    --dark-surface: #1f2937; /* Lighter than #111827 (Rich Charcoal) */
    --dark-border: #374151;  /* Lighter than #1f2937 (Soft Gray Blue) */
    
    --light-bg: #ffffff;
    --light-surface: #f8f9fa;
    --text-dark: #212529;
    --text-light: #f3f4f6; /* Brighter white for better contrast on lighter darks */
    
    /* Updated Fonts as per request */
    --font-primary: 'IBM Plex Sans Arabic', sans-serif;
    --font-secondary: 'Cairo', sans-serif;

    /* Footer Theme Variables */
    --footer-bg: #f8f9fa;
    --footer-text-main: #212529;
    --footer-text-muted: #6c757d;
    --footer-border: rgba(0, 0, 0, 0.1);
    --footer-input-bg: #ffffff;
    --footer-input-border: #dee2e6;
    --footer-social-bg: rgba(0, 0, 0, 0.05);
    --footer-social-hover-color: #ffffff;
    --logo-filter: none;
    --footer-wave-fill: #f8f9fa;
}

body {
    font-family: var(--font-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode (Default) */
body.light-mode {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

body.light-mode .bg-light-alt {
    background-color: var(--light-surface);
}

body.light-mode .navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 138, 226, 0.3);
    box-shadow: 0 10px 30px -10px rgba(44, 138, 226, 0.15); /* Your Pro Shadow */
}

body.light-mode .service-card {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

body.light-mode .contact-form {
    background-color: #fff;
}

body.light-mode #theme-toggle {
    color: #333; /* Dark Grey Icon */
}

body.light-mode #theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Light circle bg */
    color: var(--primary-color); /* Turns Blue on hover */
    transform: rotate(15deg);
}

body.light-mode .timeline-content {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

body.light-mode .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

body.light-mode .timeline-icon i {
    background: #fff;
    color: var(--primary-color);
}

body.light-mode .navbar-nav .nav-link {
    color: rgba(0,0,0,0.7);
}

body.light-mode .navbar-nav .nav-link.active,
body.light-mode .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Dark Mode */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-light);

    /* Footer Dark Variables */
    --footer-bg: #111315;
    --footer-text-main: #ffffff;
    --footer-text-muted: #adb5bd;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-input-bg: rgba(255, 255, 255, 0.05);
    --footer-input-border: rgba(255, 255, 255, 0.1);
    --footer-social-bg: rgba(255, 255, 255, 0.1);
    --footer-social-hover-color: #ffffff;
    --logo-filter: brightness(0) invert(1);
    --footer-wave-fill: #111315;
}

body.dark-mode .bg-light-alt {
    background-color: var(--dark-surface);
}

body.dark-mode .navbar.navbar-scrolled {
    background-color: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2c8ae2;
    box-shadow: 0 4px 30px rgba(44, 138, 226, 0.15); /* Your Pro Glow */
}

body.dark-mode .navbar-toggler-icon {
    filter: invert(1);
}

body.dark-mode .text-muted {
    color: #9ca3af !important;
}

body.dark-mode .service-card {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body.dark-mode .contact-form {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
}

body.dark-mode .form-control {
    background-color: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

body.dark-mode .form-control:focus {
    background-color: #111827;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 138, 226, 0.1);
}

body.dark-mode #theme-toggle {
    color: #ffffff; /* Force White Icon */
}

body.dark-mode #theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Soft white circle bg */
    color: #FFD700; /* Gold color for the Sun */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); /* Sun Glow effect */
    transform: rotate(45deg);
}

body.dark-mode .timeline-content {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.dark-mode .timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(44, 138, 226, 0.15);
}

body.dark-mode .timeline-icon i {
    background: var(--dark-bg); /* خلفية داكنة للأيقونة */
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-mode .modal-content {
    background-color: var(--dark-surface); /* Dark background */
    color: var(--text-light);
    border: 1px solid var(--dark-border);
}

body.dark-mode .modal-header {
    border-bottom-color: var(--dark-border);
}

body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Make close button white */
}

body.dark-mode .modal-body .form-control,
body.dark-mode .modal-body .input-group-text {
    background-color: var(--dark-bg);
    border-color: #374151;
    color: var(--text-light);
}

body.dark-mode .modal-body .form-control::placeholder {
    color: #6b7280;
}

body.dark-mode .modal-body .input-group:focus-within .input-group-text,
body.dark-mode .modal-body .form-control:focus {
    border-color: var(--primary-color);
    background-color: #1a202c;
}

body.dark-mode .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
}

body.dark-mode .navbar-nav .nav-link.active,
body.dark-mode .navbar-nav .nav-link:hover {
    color: #fff;
}

body.dark-mode .icon-floating {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .icon-floating:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(44, 138, 226, 0.3);
}

body.dark-mode .navbar-toggler.custom-toggler span {
    background: #fff;
}

body.dark-mode .navbar-toggler.custom-toggler[aria-expanded="true"] span {
    background: var(--primary-color);
}

body.dark-mode .custom-modal-content {
    background-color: var(--dark-surface);
}

body.dark-mode .form-control-pro {
    background-color: var(--dark-bg); /* Darker input bg */
    color: var(--text-light);
    border: 1px solid var(--dark-border);
}

body.dark-mode .form-control-pro:focus {
    background-color: #1f2937; /* Slightly lighter on focus */
    border-color: var(--primary-color);
}

body.dark-mode .form-control-pro::placeholder {
    color: #6b7280;
}

body.dark-mode .modal-close-btn {
    filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-mode .fabTrigger .background {
    background-color: var(--primary-color);
    border-color: var(--dark-surface);
}

body.dark-mode .work-card {
    background-color: var(--dark-surface);
    border: 1px solid var(--dark-border);
}

body.dark-mode .work-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(44, 138, 226, 0.15) !important;
}

body.dark-mode .work-img-wrapper.bg-light-alt {
    background-color: rgba(255, 255, 255, 0.02) !important; /* Subtle dark bg */
}

body.dark-mode .page-header {
    background: linear-gradient(180deg, rgba(44,138,226,0.05) 0%, rgba(17, 24, 39, 0) 100%);
}

body.dark-mode .work-logo {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); 
}

body.dark-mode .work-card:hover .work-logo {
    box-shadow: 0 0 25px rgba(44, 138, 226, 0.6) !important; 
    border: 1px solid var(--primary-color);
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Navbar Base Styles --- */
.navbar {
    transition: all 0.3s ease; /* Smooth transition for shadow and background */
    border-bottom: 1px solid transparent; /* Hidden at the top */
    box-shadow: none; /* No shadow at the top (cleaner look) */
}

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

.nav-link {
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    color: inherit;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

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

/* --- Theme Toggle Button --- */
#theme-toggle {
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Common Styles */
.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   Timeline Process Section (Pro Design)
   ========================================= */

.timeline-container {
    position: relative;
    padding: 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-row {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.timeline-content, .timeline-space {
    width: 45%;
}

.timeline-content {
    padding: 25px;
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-icon {
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-icon i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid var(--primary-color);
}

.timeline-row:hover .timeline-icon i {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(44, 138, 226, 0.5);
}

.date-badge {
    position: absolute;
    top: -15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(44, 138, 226, 0.3);
}

.left-side .date-badge {
    left: 20px;
}
.right-side .date-badge {
    right: 20px;
}

/* =========================================
   Contact Modal Styling
   ========================================= */

.modal-content {
    border-radius: 20px;
    background-color: #fff; /* Light mode default */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-header .btn-close {
    margin-left: 0; 
    margin-right: auto; /* RTL Fix for close button */
}

.modal-body .input-group-text {
    border-color: #dee2e6;
    border-radius: 0.375rem 0 0 0.375rem; /* RTL Rounded corners */
}

.modal-body .form-control {
    border-color: #dee2e6;
    border-radius: 0 0.375rem 0.375rem 0; /* RTL Rounded corners */
    padding: 0.7rem;
}

.modal-body .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}
.modal-body .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}
.modal-body .input-group:focus-within i {
    color: var(--primary-color) !important;
}

/* Background Elements */
.tech-background {
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(44, 138, 226, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 138, 226, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.code-snippets {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    opacity: 0.2;
    font-size: 0.9rem;
    white-space: nowrap;
}

.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.4;
}

.orb-1 { width: 300px; height: 300px; background: var(--primary-color); top: 10%; left: 10%; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary-color); bottom: 10%; right: 10%; }
.orb-3 { width: 200px; height: 200px; background: #8b5cf6; top: 40%; right: 30%; opacity: 0.2; }
.orb-4 { width: 150px; height: 150px; background: #06b6d4; bottom: 30%; left: 20%; opacity: 0.3; }

/* Process Section */
.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(44, 138, 226, 0.2);
    position: relative;
    z-index: 1;
}

.process-step:hover .step-number {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Services */
.service-card {
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

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

/* Feature Box */
.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.feature-box i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 138, 226, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Animations classes (handled by JS/GSAP) */
.animate-text, .animate-up {
    opacity: 0;
    transform: translateY(20px);
}

/* --- About Section Interactive Animation --- */
.about-visual {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-bg {
    max-height: 100%;
    width: auto;
    z-index: 1;
}

.about-char {
    max-height: 85%;
    width: auto;
    z-index: 2;
}

.icon-floating {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(44, 138, 226, 0.15);
    z-index: 3;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.icon-floating:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 15px 35px rgba(44, 138, 226, 0.25);
    z-index: 10;
}

/* Icon Positioning */
.icon-1 { top: 10%; left: 75%; }
.icon-2 { top: 25%; left: 88%; }
.icon-3 { top: 45%; left: 92%; }
.icon-4 { top: 65%; left: 88%; }
.icon-5 { top: 80%; left: 75%; }
.icon-6 { top: 30%; left: 65%; } 

.icon-7 { top: 10%; left: 25%; }
.icon-8 { top: 25%; left: 12%; }
.icon-9 { top: 45%; left: 8%; }
.icon-10 { top: 65%; left: 12%; }
.icon-11 { top: 80%; left: 25%; }
.icon-12 { top: 30%; left: 35%; }

/* =========================================
   PRO NAVBAR UPGRADES
   ========================================= */

/* --- 1. Custom Animated Toggler (Hamburger) --- */
.navbar-toggler.custom-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    transition: .5s ease-in-out;
    cursor: pointer;
    box-shadow: none !important; /* Remove blue outline on click */
}

.navbar-toggler.custom-toggler span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark); /* Default Color */
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Positioning the 3 lines */
.navbar-toggler.custom-toggler span:nth-child(1) { top: 0px; }
.navbar-toggler.custom-toggler span:nth-child(2) { top: 10px; }
.navbar-toggler.custom-toggler span:nth-child(3) { top: 20px; }

/* Transformation to 'X' when open */
.navbar-toggler.custom-toggler[aria-expanded="true"] span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
    background: var(--primary-color); /* Highlight color when open */
}

.navbar-toggler.custom-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    left: -60px; /* Fly out effect */
}

.navbar-toggler.custom-toggler[aria-expanded="true"] span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
    background: var(--primary-color);
}

/* Dropdown Animation Keyframes */
@keyframes dropdownSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   PRO CONTACT MODAL
   ========================================= */

/* Modal Container */
.custom-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden; /* To clip the sidebar */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Close Button Position */
.modal-close-btn {
    position: absolute;
    top: 20px;
    left: 20px; /* RTL Left */
    z-index: 10;
    opacity: 0.5;
    transition: 0.3s;
}
.modal-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Left Sidebar (Visual) */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
}

/* Decorative Circle in Sidebar */
.decoration-circle {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* --- Input Styling (The "Merged" Look) --- */
.input-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

/* The Icon inside the input */
.input-icon {
    position: absolute;
    top: 50%;
    right: 15px; /* RTL Position */
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
    z-index: 2;
}

/* Fix icon position for Textarea */
.textarea-wrapper .input-icon {
    top: 20px;
    transform: none;
}

/* The Input Field */
.form-control-pro {
    background-color: #f8f9fa; /* Light Gray BG */
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 50px 12px 15px; /* Right padding for icon */
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-pro:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 138, 226, 0.1);
}

/* Change Icon Color on Focus */
.input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

/* Hover Lift Effect for Button */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 138, 226, 0.3);
}

/* =========================================
   fabWidget 
   ========================================= */

.fabWidget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    transition: all 0.3s;
}

/* Trigger Button Design */
.fabTrigger .background {
    background-color: var(--primary-color);
    border-radius: 4rem 4rem 4rem 0;
    box-shadow: 0 4px 15px rgba(44, 138, 226, 0.4);
    height: 60px;
    left: 10px;
    border: solid 2px #fff;
    position: absolute;
    top: 10px;
    width: 60px;
    animation: wave 2s linear infinite;
    transition: background-color 0.3s;
}

/* Wave animation */
@keyframes wave {
    0% {
        box-shadow: 0px 0px 0px 0px rgba(44, 138, 226, 0.5), 0px 0px 0px 0px rgba(44, 138, 226, 0.3);
    }
    30% {
        box-shadow: 0px 0px 0px 5px rgba(44, 138, 226, 0.3), 0px 0px 0px 10px rgba(44, 138, 226, 0.1);
    }
    70% {
        box-shadow: 0px 0px 0px 10px rgba(44, 138, 226, 0.1), 0px 0px 0px 20px rgba(44, 138, 226, 0);
    }
    100% {
        box-shadow: 0px 0px 0px 0px transparent, 0px 0px 0px 0px transparent;
    }
}

.fabList {
    visibility: hidden;
    opacity: 1;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fabButton {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 6px;
    width: 60px;
    height: 60px;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #ffffffe0;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.fabButton:hover {
    cursor: pointer;
}

.fabButton.active {
    transform: translateY(0px);
    opacity: 1;
}

.fabButton svg {
    width: 100%;
    height: 100%;
}

.active .fabButton {
    visibility: visible;
    opacity: 1;
    transform: translateY(-15px);
}

.fabOverlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
}

.fabOverlay.active {
    opacity: 1;
    visibility: visible;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    opacity: 0;
    visibility: hidden;
    cursor: default;
    pointer-events: none;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    display: block;
    position: absolute;
    top: 50%;
    right: 100%;
    padding: 7px;
    text-align: center;
    border-radius: 4px;
    background: #2C8AE2;
    color: #f3f4f6;
    font-size: 0.8em;
    white-space: nowrap;
    transform: translateY(-50%);
    transition: all 0.3s ease-in-out;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    right: 120%;
}

.chat-bubble {
    cursor: pointer;
    position: relative;
}

.chat-bubble .bubble {
    transform-origin: 50%;
    transition: transform 500ms cubic-bezier(0.17, 0.61, 0.54, 0.9);
}

.chat-bubble .line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.75;
    stroke-linecap: round;
    transition: stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-bubble .line1 {
    stroke-dasharray: 60 90;
    stroke-dashoffset: -20;
}

.chat-bubble .line2 {
    stroke-dasharray: 67 87;
    stroke-dashoffset: -18;
}

.chat-bubble .circle {
    fill: #ffffff;
    stroke: none;
    transform-origin: 50%;
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.active .bubble {
    transform: translateX(24px) translateY(4px) rotate(45deg);
}

.active .line1 {
    stroke-dashoffset: 21;
}

.active .line2 {
    stroke-dashoffset: 30;
}

.active .circle {
    transform: scale(0);
}

.iconnum1 {
    border-radius: 4rem 4rem 0 4rem;
    border: solid 4px #2ECE7D;
}

.iconnum2 {
    border-radius: 0 4rem 4rem 4rem;
    border: solid 4px #2C8AE2;
}

.iconnum3 {
    border-radius: 4rem 4rem 4rem 0;
    border: solid 4px #2ECE7D;
}

.iconnum4 {
    border-radius: 4rem 0 4rem 4rem;
    border: solid 4px #FE9E48;
}

/* =========================================
   Contact Section Visuals
   ========================================= */

.contact-visual {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Layer 1: Background City */
.contact-bg {
    max-height: 100%;
    width: auto;
    z-index: 1;
    opacity: 0.6; 
    position: absolute;
    bottom: 0;
}

/* Layer 2: Character (Shifted Down & Right) */
.contact-char {
    height: 85%;       
    width: auto;
    z-index: 2;        
    object-fit: contain;
    
    /* Overriding Bootstrap positioning to move it */
    top: 68% !important;   /* Moves Down (was 50%) */
    left: 57% !important;  /* Moves Right (was 50%) */
}

/* Layer 3: Icons (Top Layer) */
.contact-icons {
    width: 100%;
    max-width: 550px;
    z-index: 3;       
    opacity: 0.9;
    pointer-events: none; 
}

/* =========================================
   2. FOOTER STYLING
   ========================================= */

/* Shape Divider */
.footer-shape-wrapper {
    line-height: 0;
    width: 100%;
    overflow: hidden;
    margin-bottom: -1px; /* Prevents gap */
}

.footer-wave path {
    fill: var(--footer-wave-fill);
    transition: fill 0.5s ease;
}

/* Main Footer Container */
.pro-footer {
    border-top: 1px solid rgba(44, 138, 226, 0.3);
    color: var(--footer-text-muted);
    transition: background-color 0.5s ease, color 0.5s ease;
    font-size: 0.95rem;
}

/* Typography */
.footer-title {
    color: var(--footer-text-main);
    transition: color 0.5s ease;
}

.footer-desc, .footer-text-muted {
    color: var(--footer-text-muted) !important;
    transition: color 0.5s ease;
}

/* Title Underline */
.title-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

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

.footer-links a {
    color: var(--footer-text-muted) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover, 
.hover-highlight:hover {
    color: var(--primary-color) !important;
    transform: translateX(-5px);
}

/* Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--footer-social-bg);
    color: var(--footer-text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--primary-color);
    color: var(--footer-social-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Inputs */
.form-control-footer {
    background-color: var(--footer-input-bg);
    border: 1px solid var(--footer-input-border);
    color: var(--footer-text-main);
    transition: all 0.3s ease;
}

.form-control-footer:focus {
    background-color: var(--footer-input-bg);
    border-color: var(--primary-color);
    color: var(--footer-text-main);
    box-shadow: none;
}

.form-control-footer::placeholder {
    color: var(--footer-text-muted);
    opacity: 0.7;
}

/* Divider & Logo */
.footer-divider {
    border-color: var(--footer-border);
    opacity: 1;
    transition: border-color 0.5s ease;
}

.text-primary {
   color: var(--primary-color) !important;
}

/* =========================================
   Our Works Page
   ========================================= */

.work-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.work-img-wrapper {
    transition: all 0.4s ease;
    overflow: hidden;
}

.work-logo {
    transition: transform 0.5s ease;
    filter: grayscale(40%);
    opacity: 0.8;
    background-color: #ffffff;  
    border-radius: 14px;        
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color);
}

.work-card:hover .work-logo {
    transform: scale(1.1);
    filter: grayscale(0%);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Page Header Tweaks */
.page-header {
    background: linear-gradient(180deg, rgba(44,138,226,0.03) 0%, rgba(255,255,255,0) 100%);
}

/* =========================================
   Responsive Design (Mobile & RTL)
   ========================================= */

@media (max-width: 991px) {
    .timeline-line {
        left: auto;
        right: 20px; /* للغة العربية RTL */
        transform: none;
    }
    
    .timeline-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }
    
    .timeline-space {
        display: none;
    }
    
    .timeline-content {
        width: calc(100% - 60px); /* ترك مساحة للأيقونة */
        margin-right: 60px; /* مسافة يمين للأيقونة */
        margin-left: 0;
    }
    
    .timeline-icon {
        width: 40px;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        justify-content: center;
        align-items: flex-start;
    }

    .timeline-icon i {
        margin-top: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .left-side .date-badge, 
    .right-side .date-badge {
        left: auto; 
        right: 15px; /* توحيد المكان */
    }

    .hero-img {
        max-width: 60%; /* Smaller on mobile */
        margin-bottom: 20px;
    }

    .hero-text {
        text-align: center !important;
    }
    .hero-visual {
        display: none; /* Simplify for mobile or replace with image */
    }

    .about-visual {
        height: 400px;
    }
    .icon-floating {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .about-bg {
        opacity: 0.5; /* Fade bg slightly on mobile to make icons pop more */
    }

    .navbar-collapse {
        /* Create a solid card-like look */
        position: absolute;
        top: 100%; /* Push it directly below the navbar */
        left: 0;
        right: 0;
        width: 90%; /* Slight margin on sides */
        margin: 10px auto; /* Center it */
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        
        /* Animation */
        transform-origin: top;
        animation: dropdownSlide 0.3s ease-out forwards;
    }
    .navbar-nav {
        padding: 0;
    }

    /* Light Mode Dropdown Style */
    body.light-mode .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95); /* Solid White with tiny transparency */
        backdrop-filter: blur(15px); /* Strong blur */
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    /* Dark Mode Dropdown Style */
    body.dark-mode .navbar-collapse {
        background-color: rgba(17, 24, 39, 0.95); /* Matches var(--dark-surface) */
        backdrop-filter: blur(15px);
        border: 1px solid var(--dark-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* Adjust Link Spacing in Mobile */
    .navbar-nav .nav-link {
        padding: 12px 15px;
        border-radius: 8px;
        margin: 5px 0;
        text-align: center;
        transition: background 0.2s;
    }

    /* Mobile Link Hover Effect */
    body.light-mode .navbar-nav .nav-link:hover,
    body.light-mode .navbar-nav .nav-link.active {
        background-color: rgba(44, 138, 226, 0.1); /* Light Blue BG */
        color: var(--primary-color);
    }

    body.dark-mode .navbar-nav .nav-link:hover,
    body.dark-mode .navbar-nav .nav-link.active {
        background-color: rgba(44, 138, 226, 0.2);
        color: var(--primary-color);
    }
    
    /* Hide the underline effect on mobile (since we use background) */
    .nav-link::after {
        display: none;
    }

    .contact-visual {
        height: 400px;
        margin-top: 50px;
    }
    .contact-char {
        height: 85%; 
        top: 68% !important;   
        left: 57% !important;
    }
}

@media (max-width: 576px) {
    .about-visual {
        height: 350px;
    }
    .icon-floating {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    /* Bring icons closer on small screens */
    .icon-1 { left: 80%; }
    .icon-2 { left: 90%; }
    .icon-3 { left: 90%; }
    .icon-4 { left: 90%; }
    .icon-5 { left: 80%; }
    
    .icon-7 { left: 20%; }
    .icon-8 { left: 10%; }
    .icon-9 { left: 10%; }
    .icon-10 { left: 10%; }
    .icon-11 { left: 20%; }

    .contact-visual {
        height: 350px;
    }
}
