:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-dark .nav-link,
.navbar-dark .navbar-brand,
.navbar-dark .navbar-brand span {
    color: #ffffff !important;
    opacity: 1 !important;
}

.navbar-light .nav-link,
.navbar-light .navbar-brand,
.navbar-light .navbar-brand span {
    color: #000000 !important;
    opacity: 1 !important;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active,
.navbar-light .nav-link:hover,
.navbar-light .nav-link.active,
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    opacity: 1 !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    z-index: 1;
    overflow: hidden;
    padding-bottom: 100px;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.65));
    z-index: -1;
}

.hero h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* Custom Shape Divider Hero */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #f8f9fa;
    /* Matches the bg-light of the about section */
}

/* Typing Writer Cursor */
.typed-text {
    font-weight: 700;
    color: #ffc107;
}

.type-cursor {
    font-weight: 400;
    color: #ffc107;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Float Animation */
.floating-element {
    animation: floatMotion 6s ease-in-out infinite;
}

@keyframes floatMotion {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Modal Custom styling */
.modal-modern .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    overflow: hidden;
}

.modal-modern .modal-header {
    border-bottom: none;
    padding: 30px 30px 10px;
}

.modal-modern .modal-body {
    padding: 20px 30px 30px;
}

.modal-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.badge-vision {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.badge-mission {
    background: rgba(255, 193, 7, 0.15);
    color: #ffb300;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    background-color: #eff1f3 !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;

}

.icon-wrapper {
    transition: all 0.3s ease;
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Works Cards */
.work-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.work-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover img {
    transform: scale(1.05);
}

.work-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

/* Transitions */
.transition {
    transition: all 0.3s ease-in-out;
}

/* About Section Specialty Buttons */
.special-box {
    border: 2px solid rgba(13, 110, 253, 0.08) !important;
    background: #ffffff;
    border-radius: 24px !important;
}

.specialty-mini-btn {
    border: 1px solid #f1f3f5 !important;
    background: #faf9f8;
    border-radius: 18px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialty-mini-btn:hover {
    transform: translateY(-6px);
    background: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.1);
}

.specialty-mini-btn .icon-circle {
    transition: transform 0.3s ease;
}

.specialty-mini-btn:hover .icon-circle {
    transform: scale(1.12);
}

.specialty-mini-btn span {
    font-size: 0.85rem;
    color: #495057;
    transition: color 0.3s ease;
}

.specialty-mini-btn:hover span {
    color: #0d6efd !important;
}

/* Subtle backgrounds for icons */
.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.12) !important;
}

.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.12) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.12) !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.12) !important;
}

.bg-success-subtle {
    background-color: rgba(40, 167, 69, 0.12) !important;
}

/* Why Us Section Premium Cards */
.why-card {
    border: 1px solid #f1f3f5 !important;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(13, 110, 253, 0.07) !important;
    border-color: rgba(13, 110, 253, 0.12) !important;
}

.red-divider {
    width: 32px;
    height: 3px;
    background-color: #ef4444;
    margin: 12px auto;
    border-radius: 2px;
}

.why-icon-box {
    width: 80px;
    height: 80px;
    background-image: url('../img/why_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin: 0 auto 15px auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.why-icon-box img {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.why-icon-box i {
    font-size: 2rem;
    color: #0d6efd !important;
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon-box {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.12);
}

.why-card:hover .why-icon-box img,
.why-card:hover .why-icon-box i {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .border-divider-left {
        border-left: 1px solid #f1f3f5 !important;
    }
}

/* Footer Social Showcase Premium Cards */
.bg-dark-card {
    background-color: #161a21 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.social-btn {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.facebook-btn {
    background: #3b5998 !important;
}

.facebook-btn:hover {
    background: #4c70ba !important;
}

.twitter-btn {
    background: #000000 !important;
}

/* Modern X branding */
.twitter-btn:hover {
    background: #222222 !important;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.instagram-btn:hover {
    filter: brightness(1.15);
}

.whatsapp-btn {
    background: #25d366 !important;
}

.whatsapp-btn:hover {
    background: #2cdb70 !important;
}

/* Modern Clean Works Buttons */
.modern-work-btn-card {
    border: 1px solid #f1f3f5 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.modern-work-btn-card:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 110, 253, 0.15) !important;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.08) !important;
}

.modern-work-btn-card:hover .modern-work-btn-logo {
    transform: scale(1.08) rotate(3deg);
    background-color: rgba(13, 110, 253, 0.05) !important;
}

.modern-work-btn-card:hover .hover-indicator {
    opacity: 1 !important;
}

/* Service Cards */
.service-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #f1f3f5 !important;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 110, 253, 0.15) !important;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.08) !important;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

.service-card:hover .explore-badge {
    opacity: 1 !important;
    transform: translateY(0);
}

.explore-badge {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

/* Specialty Vertical Cards under Hero */
.specialty-card-vertical {
    height: 100%;
    min-height: 200px;
    padding-top: 2.2rem !important;
    padding-bottom: 2.2rem !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
    cursor: pointer;
}

.specialty-card-vertical:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08) !important;
    background-color: #fdfdfd !important;
}

.icon-circle-vertical {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.specialty-card-vertical:hover .icon-circle-vertical {
    transform: scale(1.1) rotate(5deg);
}

/* Custom theme helpers */
.bg-teal {
    background-color: rgba(20, 184, 166, 0.1) !important;
    color: #14b8a6 !important;
}

.text-teal {
    color: #14b8a6 !important;
}

.border-teal {
    border-bottom-color: #14b8a6 !important;
}

.bg-orange {
    background-color: rgba(249, 115, 22, 0.1) !important;
    color: #f97316 !important;
}

.text-orange {
    color: #f97316 !important;
}

.border-orange {
    border-bottom-color: #f97316 !important;
}

.border-warning {
    border-bottom-color: #ffc107 !important;
}

.border-danger {
    border-bottom-color: #dc3545 !important;
}

.border-info {
    border-bottom-color: #0dcaf0 !important;
}

.border-primary {
    border-bottom-color: #0d6efd !important;
}

.fs-8 {
    font-size: 0.8rem;
}

.fs-9 {
    font-size: 0.65rem;
}

/* Micro-interaction hover lift */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease !important;
}

.hover-lift:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4) !important;
}

/* Custom Deep Golden Yellow Buttons for Hero */
.btn-dark-yellow {
    background-color: #05b0ff !important;
    color: #121b2d !important;
    border: none !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-dark-yellow:hover {
    background-color: #e5bc00 !important;
    color: #000000 !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(255, 209, 5, 0.45) !important;
}

/* Explore All Services Button */
.btn-explore-all-services {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.9rem 2.8rem;
    border: none;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-explore-all-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    z-index: -1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.btn-explore-all-services:hover {
    color: #121b2d !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 152, 0, 0.4);
}

.btn-explore-all-services:hover::before {
    opacity: 1;
}

.btn-explore-all-services .transition-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-explore-all-services:hover .transition-icon {
    transform: translateX(-6px);
}

/* Explore All Clients Button */
.btn-explore-all-clients {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.9rem 2.8rem;
    border: none;
    box-shadow: 0 10px 25px rgba(33, 37, 41, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-explore-all-clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    z-index: -1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.btn-explore-all-clients:hover {
    color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.35);
}

.btn-explore-all-clients:hover::before {
    opacity: 1;
}

.btn-explore-all-clients .transition-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-explore-all-clients:hover .transition-icon {
    transform: translateX(-6px);
}

/* Cinematic Splash Overlay */
.cinematic-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
}

/* Background slides that scale and fade like a video scene */
.splash-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.15);
    transition: opacity 1.5s ease-in-out, transform 10s linear;
    z-index: 1;
}

.splash-slide.active {
    opacity: 1;
    transform: scale(1.0);
}

/* Dark transparent vignette overlay */
.cinematic-splash-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

/* Light sweep glare effect */
.splash-light-sweep {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%);
    transform: rotate(-45deg);
    animation: lightSweep 6s infinite linear;
    z-index: 3;
    pointer-events: none;
}

@keyframes lightSweep {
    0% {
        transform: translate(-30%, -30%) rotate(-45deg);
    }

    100% {
        transform: translate(30%, 30%) rotate(-45deg);
    }
}

/* Content wrapper */
.splash-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
}

/* Phases animations */
.splash-phase {
    animation: zoomFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.splash-logo-wrapper {
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    padding: 15px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    animation: logoGlow 4s infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes logoGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 40px rgba(255, 193, 7, 0.35);
        border-color: rgba(255, 193, 7, 0.5);
    }
}

.splash-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.splash-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.splash-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.splash-domain-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.splash-domain-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.splash-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Animations for icons */
.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}

.animate-flash {
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    0% {
        opacity: 0.6;
        filter: drop-shadow(0 0 2px rgba(255, 193, 7, 0.4));
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.9));
    }
}

/* Controls style */
.splash-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 15px;
}

/* Progress bar style */
.splash-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.splash-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #ffc107 100%);
    transition: width 0.1s linear;
}

/* Hide helper class */
.splash-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.text-teal {
    color: #20c997 !important;
}