/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Image Optimization */
img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Enhanced Lazy Loading Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    will-change: opacity;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Image placeholder while loading */
img[loading="lazy"]:not(.loaded) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 200px;
}

/* Responsive image sizes */
.gallery-image {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Mobile image optimization */
@media (max-width: 768px) {
    .gallery-image {
        aspect-ratio: 4/3;
        max-height: 250px;
    }
    
    .hero-profile-img,
    .about-image img {
        max-width: 100%;
        height: auto;
        max-height: 400px;
    }
}

/* Gallery Images Optimization */
.gallery-image {
    object-fit: cover;
    will-change: transform;
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Hero Image Optimization */
.hero-profile-img {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Service Icons Optimization */
.service-icon-img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

/* About Image Optimization */
.about-image img {
    object-fit: cover;
    image-rendering: auto;
}

:root {
    --primary-color: #0073ff;
    --primary-dark: #0056cc;
    --primary-light: #3399ff;
    --secondary-color: #111111;
    --secondary-light: #333333;
    --btn-primary: #0073ff;
    --btn-secondary: #111111;
    --accent-color: #22d3ee;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --whatsapp-color: #25d366;
    --facebook-color: #1877f2;
    --shadow-sm: 0 1px 2px 0 rgba(0, 115, 255, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 115, 255, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 115, 255, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 115, 255, 0.2);
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    width: 100%;
    max-width: 100vw;
    position: relative;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* RTL Global Styles */
html[dir="rtl"] {
    direction: rtl;
}

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

/* RTL Text Alignment */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] div,
html[dir="rtl"] li,
html[dir="rtl"] td,
html[dir="rtl"] th {
    text-align: right;
    direction: rtl;
}

/* RTL Lists */
html[dir="rtl"] ul,
html[dir="rtl"] ol {
    padding-right: 0;
    padding-left: 1.5rem;
    text-align: right;
}

/* RTL Navigation */
html[dir="rtl"] .nav-menu {
    flex-direction: row;
}

html[dir="rtl"] .nav-menu a::after {
    right: 0;
    left: auto;
}

/* RTL Buttons */
html[dir="rtl"] .btn {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL Forms */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] input::placeholder,
html[dir="rtl"] textarea::placeholder {
    text-align: right;
    direction: rtl;
}

/* RTL Cards - Keep center alignment for service cards */
html[dir="rtl"] .card,
html[dir="rtl"] .case-study-card,
html[dir="rtl"] .testimonial-card,
html[dir="rtl"] .blog-card {
    text-align: right;
    direction: rtl;
}

/* Service cards keep center alignment for icons */
html[dir="rtl"] .service-card {
    direction: rtl;
}

html[dir="rtl"] .service-card .service-icon {
    margin: 0 auto 1.5rem;
}

/* RTL Section Headers - Keep center */
html[dir="rtl"] .section-header {
    text-align: center;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .section-subtitle {
    text-align: center;
}

/* RTL Service Features */
html[dir="rtl"] .service-features {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .service-features li {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[dir="rtl"] .service-features li i {
    margin-left: 0.5rem;
    margin-right: 0;
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    * {
        /* Reduce animations on mobile for better performance */
        animation-duration: 0.25s !important;
        transition-duration: 0.15s !important;
    }
    
    /* Disable heavy effects on mobile */
    .about-section::before,
    .about-section::after,
    .services::before,
    .services::after {
        display: none;
    }
    
    /* Reduce shadow complexity */
    .service-card,
    .case-study-card,
    .testimonial-card,
    .blog-card,
    .performance-card,
    .before-after-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
    
    /* Simplify hover effects */
    .service-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .performance-card:hover,
    .before-after-card:hover {
        transform: translateY(-3px) !important;
    }
    
    /* Optimize font rendering */
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    /* Disable complex animations */
    .counter-icon {
        animation: none !important;
    }
    
    /* Reduce padding on mobile */
    .services,
    .case-studies,
    .testimonials,
    .contact,
    .about-section,
    .blog-section {
        padding: 3rem 0 !important;
    }
    
    .before-after-section,
    .performance-section {
        padding: 2rem 0 !important;
        margin-top: 2rem !important;
    }
}

/* Hide scrollbar for all elements */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Prevent horizontal scroll on main elements */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure Bootstrap rows don't overflow */
/* Bootstrap row - only override if not using Bootstrap grid */
.row:not(.case-studies-gallery):not(.g-3):not(.g-4) {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
}

.row > * {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure Bootstrap row works correctly */
.row.g-3,
.row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

/* Fix for Bootstrap columns */
[class*="col-"] {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

/* Ensure all text elements don't overflow */
h1, h2, h3, h4, h5, h6, p, span, a, li, td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure buttons and inputs are responsive */
button, input, select, textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Ensure Bootstrap container doesn't overflow */
.container-fluid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 576px) {
    .nav-brand {
        font-size: 1.2rem;
        max-width: calc(100vw - 100px);
    }
}

@keyframes shimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #0073ff 0%, #0056cc 50%, #3399ff 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-profile-img {
    width: 300px;
    height: 300px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    transition: all 0.4s ease;
}

/* Responsive image sizing */
@media (max-width: 1400px) {
    .hero-profile-img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 1200px) {
    .hero-profile-img {
        width: 250px;
        height: 250px;
    }
}

.hero-profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-placeholder {
    width: 300px;
    height: 300px;
    max-width: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    text-align: center;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .image-placeholder {
        width: 180px;
        height: 180px;
        font-size: 3rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .image-placeholder {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
        padding: 1rem;
    }
}

.image-placeholder i {
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1rem;
    margin-top: 1rem;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1400px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1400px) {
    .hero-subtitle {
        font-size: 1.35rem;
    }
}

@media (max-width: 1200px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1400px) {
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 1200px) {
    .hero-description {
        font-size: 1.05rem;
    }
}

.hero-skills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 1s ease-out backwards;
}

.skill-badge:nth-child(1) {
    animation-delay: 0.2s;
}

.skill-badge:nth-child(2) {
    animation-delay: 0.4s;
}

.skill-badge:nth-child(3) {
    animation-delay: 0.6s;
}

.skill-badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.skill-badge i {
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--btn-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:hover::before {
    width: 200px;
    height: 200px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 115, 255, 0.3);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
        font-size: 1.5rem;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Counter Section */
.counter-section {
    background: var(--bg-white);
    padding: 4rem 0;
    box-shadow: var(--shadow-md);
}

/* Counter grid now uses Bootstrap */

.counter-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
    position: relative;
    overflow: hidden;
}

.counter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.6s ease;
}

.counter-item:hover::before {
    left: 100%;
}

.counter-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.2);
    border-color: var(--primary-light);
}

.counter-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

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

.counter-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: titleGlow 3s ease-in-out infinite;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1400px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 2rem;
    }
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(14, 165, 233, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.6));
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

/* Services grid now uses Bootstrap */

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    padding-top: 2.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 992px) {
    .service-card {
        min-height: auto;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.25);
    border-color: var(--primary-light);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.service-card:hover .service-icon::before {
    width: 200px;
    height: 200px;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.service-icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

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

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Suitable For Section */
.service-suitable-for {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    position: relative;
}

.service-suitable-for::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(to left, transparent, #d0d0d0, transparent);
}

.suitable-for-intro {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-align: right;
    font-style: italic;
}

.suitable-for-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #0056cc;
    margin-bottom: 1rem;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-direction: row;
    letter-spacing: -0.3px;
}

.suitable-for-title::before {
    content: '✓';
    color: #0056cc;
    font-weight: bold;
    font-size: 1.2rem;
}

.suitable-for-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.suitable-for-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-end;
    transition: all 0.3s ease;
    text-align: right;
    flex-direction: row-reverse;
}

.suitable-for-list li i {
    color: #0056cc;
    font-size: 0.9rem;
    min-width: 18px;
    width: 18px;
    text-align: center;
}

.suitable-for-list li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* What You Get Section */
.service-what-you-get {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    position: relative;
}

.service-what-you-get::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(to left, transparent, #d0d0d0, transparent);
}

.what-you-get-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #22c55e;
    margin-bottom: 1rem;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-direction: row;
    letter-spacing: -0.3px;
}

.what-you-get-title::before {
    content: '🎁';
    font-size: 1.3rem;
}

.what-you-get-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.what-you-get-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-end;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: right;
    flex-direction: row-reverse;
}

.what-you-get-list li i {
    color: #22c55e;
    font-size: 0.9rem;
    min-width: 18px;
    width: 18px;
    text-align: center;
}

.what-you-get-list li:hover {
    color: var(--success-color);
    transform: translateX(5px);
}

/* Service CTA Button */
.service-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.btn-service-cta {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-service-cta:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
    color: white;
}

.btn-service-cta i {
    font-size: 0.9rem;
}

.service-features {
    list-style: none;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-features li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--success-color);
    font-size: 0.9rem;
}

/* Case Studies Section */
.case-studies {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 50%, var(--bg-white) 100%);
    position: relative;
}

/* Case Studies Filters */
.case-studies-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Case Studies Gallery - Now uses Bootstrap grid */
.case-studies-gallery {
    margin-bottom: 3rem;
    width: 100%;
}

/* Ensure Bootstrap row works correctly */
.case-studies-gallery.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

/* Reset any conflicting styles on columns */
.case-studies-gallery [class*="col-"] {
    position: relative;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.gallery-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: var(--bg-light);
    margin: 0 auto;
    object-fit: contain;
    overflow: hidden;
    transform: scale(1);
}

/* Mockup container styles */
.mockup-container {
    position: relative;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
    z-index: 1;
}

.mockup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.mockup-container::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #94a3b8;
    border-radius: 3px;
    z-index: 2;
}

/* Apply mockup effect only to specific images */
.mockup-container .gallery-image {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transform: scale(1);
}

.mockup-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 115, 255, 0.2);
    z-index: 10;
    position: relative;
}

.mockup-container:hover .gallery-image {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.15);
}

/* Design Badge */
.design-badge {
    position: absolute;
    top: 45px;
    right: 20px;
    background: rgba(0, 115, 255, 0.95);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 115, 255, 0.3);
}

@media (max-width: 768px) {
    .gallery-image {
        border-radius: 10px;
    }
}

.gallery-image.hidden,
.hidden {
    display: none !important;
}

/* Override hidden for visible gallery items - let Bootstrap grid handle display */
.case-studies-gallery > div.hidden {
    display: none !important;
}

.case-studies-gallery .gallery-image:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Before/After Section */
.before-after-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: var(--bg-light);
    border-radius: 20px;
}

.before-after-card {
    position: relative;
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.before-after-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.comparison-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}

.comparison-label.success {
    background: rgba(34, 197, 94, 0.9);
}

.comparison-image {
    width: 100%;
    height: 300px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-comparison {
    text-align: center;
    color: var(--text-light);
}

.placeholder-comparison i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.placeholder-comparison.success i {
    color: #22c55e;
}

.placeholder-comparison p {
    margin: 0;
    font-size: 0.9rem;
}

/* Performance Section */
.performance-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: 20px;
}

.performance-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.performance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.performance-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.performance-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.performance-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.performance-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Performance Images Gallery */
.performance-images-gallery {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--bg-light);
}

.performance-images-gallery h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2rem;
}

.performance-image {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.performance-image {
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.performance-image:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 115, 255, 0.2);
    z-index: 10;
    position: relative;
}

/* Mockup Styles for Design Images */
.gallery-image[data-category="facebook"],
.gallery-image[data-category="google-ads"] {
    position: relative;
}

.gallery-image[data-category="facebook"]::before,
.gallery-image[data-category="google-ads"]::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(0, 115, 255, 0.1), rgba(17, 17, 17, 0.05));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image[data-category="facebook"]:hover::before,
.gallery-image[data-category="google-ads"]:hover::before {
    opacity: 1;
}

/* Mockup Frame Effect */
.mockup-container {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.mockup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 20px 20px 0 0;
}

.mockup-container img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Design Category Badge */
.design-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 115, 255, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.gallery-image:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.15);
    z-index: 10;
    position: relative;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

#loadMoreBtn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

#loadMoreBtn.hidden {
    display: none;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    animation: rotate 25s linear infinite reverse;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                display 0.3s ease;
    cursor: pointer;
    position: relative;
    background: var(--bg-white);
    border: 2px solid transparent;
    will-change: opacity, transform;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
    border-color: var(--primary-light);
}

.portfolio-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-image .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    color: var(--primary-color);
    border: none;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.4s ease;
}

.portfolio-image .image-placeholder i {
    font-size: 4rem;
    opacity: 0.7;
}

.portfolio-image .image-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.portfolio-item:hover .portfolio-image .image-placeholder {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--primary-dark);
}

.portfolio-item:hover .portfolio-image .image-placeholder i {
    transform: scale(1.1);
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(6, 182, 212, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    animation: fadeInSlide 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.testimonial-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.testimonial-card.active .testimonial-content {
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.2);
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-role {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .testimonial-controls {
        gap: 0.75rem;
    }
    
    .testimonial-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .testimonial-dots {
        gap: 0.4rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 25px;
    }
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--bg-white);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

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

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Logo Bar */
.logo-bar {
    padding: 3rem 0;
    background: var(--bg-light);
}

/* Logos grid now uses Bootstrap */

.logo-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-placeholder {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 10px;
    color: var(--text-light);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

/* Contact content now uses Bootstrap */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: right 0.5s ease;
}

.contact-item:hover::before {
    right: 100%;
}

.contact-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-item:hover .contact-icon::after {
    width: 150px;
    height: 150px;
}

.contact-item:hover .contact-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon.whatsapp {
    background: var(--whatsapp-color);
    position: relative;
}

.contact-icon.whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>') center/70% no-repeat;
    opacity: 0.9;
}

.contact-icon.email {
    background: var(--primary-color);
    position: relative;
}

.contact-icon.email::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>') center/60% no-repeat;
    opacity: 0.9;
}

.contact-icon.facebook {
    background: var(--facebook-color);
    position: relative;
    overflow: hidden;
}

.contact-icon.facebook::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>') center/60% no-repeat;
    opacity: 0.9;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.about-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

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

.about-content .section-header {
    text-align: right;
}

.about-content .about-text {
    text-align: right;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text p {
    line-height: 1.8;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border-right: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: default;
}

.about-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    border-right-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.about-list li i {
    margin-top: 0.25rem;
    font-size: 1.2rem;
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.about-list li:hover i {
    transform: scale(1.2);
}

.about-highlights {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.about-highlights:hover {
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.15);
    transform: translateY(-5px);
}

.about-highlights h3 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.about-highlights h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-achievements {
    margin-top: 2rem;
}

.achievement-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.achievement-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.achievement-item:hover::before {
    opacity: 1;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.achievement-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.about-image-wrapper {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

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

.about-image {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
    transition: all 0.4s ease;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(14, 165, 233, 0.4);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(6, 182, 212, 0.15));
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-image:hover::before {
    opacity: 0.5;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(15px);
    padding: 1rem 1.75rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    animation: pulse 2s ease-in-out infinite, slideInDown 0.6s ease-out 0.4s both;
    z-index: 10;
    border: 2px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.about-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
    border-color: var(--primary-color);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-badge i {
    font-size: 1.3rem;
    color: var(--secondary-color);
    animation: rotateIcon 3s ease-in-out infinite;
}

@keyframes rotateIcon {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Blog Section */
.blog-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content .blog-category {
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
    word-wrap: break-word;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.blog-link i {
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(-5px);
}

/* Blog Article Styles (used in blog.html) */
.blog-article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.blog-article-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-article-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.blog-article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.blog-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-article-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.blog-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-article-content {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-article-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.blog-article-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-article-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.blog-article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.blog-article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-article-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.blog-article-content pre {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-article-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.blog-tips {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-right: 4px solid var(--primary-color);
}

.blog-tips h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-results {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.result-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-white);
    border-radius: 10px;
    border-right: 3px solid var(--primary-color);
}

.blog-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

/* Blog Article Responsive Styles */
@media (max-width: 768px) {
    .blog-article-title {
        font-size: 1.75rem;
    }
    
    .blog-article-content {
        font-size: 1rem;
    }
    
    .blog-article-content h3 {
        font-size: 1.5rem;
    }
    
    .blog-article-content h4 {
        font-size: 1.25rem;
    }
    
    .blog-article-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-article-title {
        font-size: 1.5rem;
    }
    
    .blog-article-content .lead {
        font-size: 1.1rem;
    }
    
    .blog-tips {
        padding: 1.5rem;
    }
}

/* Footer */
/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.floating-contact-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    position: relative;
}

.floating-contact-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 30px -5px rgba(14, 165, 233, 0.3);
}

.floating-contact-toggle.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.floating-contact-menu {
    position: absolute;
    bottom: 80px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    font-size: 1.3rem;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: var(--shadow-xl);
}

.floating-btn .floating-tooltip {
    position: absolute;
    right: 70px;
    background: var(--text-dark);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.floating-btn .floating-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-dark);
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

.floating-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    animation-delay: 0.1s;
}

.floating-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
}

.floating-phone {
    background: linear-gradient(135deg, var(--success-color), #059669);
    animation-delay: 0.2s;
}

.floating-phone:hover {
    background: linear-gradient(135deg, #059669, var(--success-color));
}

.floating-email {
    background: linear-gradient(135deg, #ea4335, #c5221f);
    animation-delay: 0.3s;
}

.floating-email:hover {
    background: linear-gradient(135deg, #c5221f, #ea4335);
}

/* Floating Buttons Animation */
.floating-contact-menu.active .floating-btn {
    animation: slideInLeft 0.4s ease forwards;
}

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

/* Responsive Floating Buttons */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-contact-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-btn .floating-tooltip {
        right: 65px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        bottom: 15px;
        left: 15px;
    }
    
    .floating-contact-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .floating-btn .floating-tooltip {
        display: none;
    }
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
/* Extra Large devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large devices (desktops, 1200px and up) */
@media (max-width: 1399.98px) {
    .container {
        padding: 0 30px;
    }
}

/* Medium devices (tablets, 992px and up) */
@media (max-width: 1199.98px) {
    .container {
        padding: 0 25px;
    }
    
    .hero-profile-img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 70px;
        right: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .hamburger {
        display: flex;
    }
    
    .hero-profile-img {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Small devices (landscape phones, 768px and up) */
@media (max-width: 991.98px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 3rem;
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-profile-img {
        width: 180px;
        height: 180px;
    }
    
    .hero-skills {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }

    .service-card {
        min-height: auto;
        padding: 2rem;
    }
    
    .counter-item {
        padding: 1.5rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .testimonial-content {
        padding: 2rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .services,
    .case-studies,
    .testimonials,
    .contact {
        padding: 2.5rem 0;
    }
    
    .counter-section {
        padding: 2.5rem 0;
    }
    
    .logo-bar {
        padding: 2rem 0;
    }
}

/* Lightbox Wrapper */
.lightbox-wrapper {
    display: block;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    z-index: 1;
}

.lightbox-wrapper:hover {
    z-index: 10;
}

.lightbox-wrapper:hover::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.9;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.lightbox-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
}

.lightbox-wrapper:hover img {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Lightbox2 Custom Styles */
#lightbox {
    direction: rtl;
    z-index: 9999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto !important;
}

/* Ensure lightbox is visible when open */
#lightbox:not([style*="display: none"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure lightbox overlay is clickable */
#lightboxOverlay,
.lb-overlay,
.lb-outerContainer {
    z-index: 9998 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
}

/* Make sure overlay is clickable even when lightbox is open */
#lightbox.lb-open ~ #lightboxOverlay,
.lb-open ~ .lb-overlay {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Lightbox container */
#lightbox #lightboxContainer {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

/* Lightbox image container */
#lightbox #lightboxContainer #lightboxImage {
    pointer-events: auto !important;
}

/* Professional Floating Close Button - Top Right Corner */
.floating-close-button {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    line-height: 1 !important;
    text-align: center !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: auto !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    font-family: Arial, sans-serif !important;
    font-weight: 300 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Show button when visible */
.floating-close-button[style*="display: flex"],
.floating-close-button[style*="display:flex"] {
    visibility: visible !important;
    opacity: 1 !important;
}

.floating-close-button:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.floating-close-button:active {
    transform: scale(0.95) !important;
}

/* Show button when lightbox is open */
#lightbox:not([style*="display: none"]) ~ .floating-close-button,
body:has(#lightbox:not([style*="display: none"])) .floating-close-button {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Lightbox Overlay - Click Outside to Close (Professional Feature) */
#lightboxOverlay,
.lb-overlay {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10000 !important;
}

/* Lightbox outer container - also clickable to close */
.lb-outerContainer {
    cursor: default !important;
}

.lb-outerContainer:not(:has(.lb-container:hover)) {
    cursor: pointer !important;
}

/* Lightbox close button - ensure it's clickable */
#lightbox #lightboxContainer .lb-close,
#lightbox .lb-close,
a.lb-close,
button.lb-close,
.lb-close {
    z-index: 10001 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: none !important;
    color: white !important;
    font-size: 28px !important;
    line-height: 50px !important;
    text-align: center !important;
    text-decoration: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Ensure close button is always visible and clickable */
#lightbox.lb-open .lb-close,
.lb-open .lb-close,
#lightbox .lb-close {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10002 !important;
    cursor: pointer !important;
}

/* Make sure close button works even when lightbox is open */
#lightbox[style*="display: block"] .lb-close,
#lightbox:not([style*="display: none"]) .lb-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10003 !important;
}

#lightbox #lightboxContainer .lb-close:hover,
#lightbox .lb-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1) !important;
}

/* Lightbox navigation buttons */
#lightbox .lb-nav a.lb-prev,
#lightbox .lb-nav a.lb-next {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10000 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

#lightbox .lb-nav a.lb-prev:hover,
#lightbox .lb-nav a.lb-next:hover {
    opacity: 1;
}

/* Lightbox data container */
#lightbox .lb-dataContainer {
    pointer-events: auto !important;
    z-index: 10000 !important;
}

#lightbox .lb-dataContainer .lb-data .lb-details {
    text-align: right;
}

#lightbox .lb-dataContainer .lb-data .lb-number {
    text-align: right;
    direction: rtl;
}

/* Ensure ESC key works - add event listener in JS */
/* Make sure body scroll is disabled when lightbox is open */
body.lb-disable-scrolling {
    overflow: hidden !important;
}

/* AOS Animations - Custom Styles */
[data-aos] {
    pointer-events: auto;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar .container {
        padding: 0.75rem 15px;
    }
    
    .nav-brand {
        font-size: 1rem;
        max-width: calc(100vw - 80px);
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.75rem 12px;
    }
    
    .nav-brand {
        font-size: 0.95rem;
        max-width: calc(100vw - 70px);
    }
    
    .hero {
        padding-top: 60px;
        padding-bottom: 2rem;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .hero-profile-img {
        width: 140px;
        height: 140px;
        border-width: 4px;
    }
    
    .hero-skills {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .skill-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .skill-badge i {
        font-size: 1rem;
    }
    
    .hero-cta {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn i {
        font-size: 0.9rem;
    }
    
    .counter-item {
        padding: 1.25rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .counter-icon {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-stars {
        font-size: 1.2rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .contact-item {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .case-studies-filters {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .about-section,
    .blog-section {
        padding: 2.5rem 0;
    }
    
    .about-text .lead {
        font-size: 1rem;
    }
    
    .about-highlights {
        padding: 1.25rem;
    }
    
    .about-list li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .achievement-item {
        padding: 1rem;
    }
    
    .achievement-number {
        font-size: 1.75rem;
    }
    
    .achievement-label {
        font-size: 0.8rem;
    }
    
    .about-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

