/* Mektup Custom Design Enhancements */

/* --- Application Form Glassmorphism & Modern Inputs --- */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    padding: 50px !important;
    border-radius: 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12) !important;
}

.custom-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2B4965;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-left: 5px;
}

.custom-form .form-control {
    background-color: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    height: 50px;
    padding: 10px 20px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: none;
}

.custom-form textarea.form-control {
    height: auto;
    padding-top: 15px;
}

.custom-form .form-control:focus {
    background-color: #fff;
    border-color: #107494;
    /* Mektup Blue */
    box-shadow: 0 0 0 4px rgba(16, 116, 148, 0.1);
}

.custom-form .form-control::placeholder {
    color: #aaa;
    font-weight: 400;
}

.custom-form .btn {
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(16, 116, 148, 0.2);
    transition: all 0.3s ease;
}

.custom-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 116, 148, 0.3);
}


/* --- Premium Dark Footer --- */
.footer-wrapper {
    background-color: #2B4965 !important;
    /* Mektup Dark Blue */
    color: #ecf0f1 !important;
    padding-top: 80px;
    padding-bottom: 30px;
}

/* Application Form Professional Styling */
#apply {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

#apply .section-text h4 {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #2B4965 !important;
    letter-spacing: -0.5px;
}

#apply .section-text p {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: rgba(43, 73, 101, 0.8) !important;
    margin-bottom: 40px !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#apply .contact-form-wrapper {
    background: #fff !important;
    padding: 50px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#apply .contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

#apply .custom-form .form-group label {
    font-weight: 600;
    color: #2B4965;
    margin-bottom: 8px;
}

#apply .custom-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

#apply .custom-form .form-control:focus {
    border-color: #107494;
    box-shadow: 0 0 0 4px rgba(16, 116, 148, 0.1);
}

#apply .btn.grdnt-orange {
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

#apply .btn.grdnt-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.3);
}

/* Footer Logo Styles */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    /* White logo for dark footer */
}

.footer-logo:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Social Icons Professional Styling */
.footer-wrapper .social-icons {
    display: flex !important;
    gap: 15px;
    padding: 0 !important;
    margin-top: 20px;
    list-style: none;
}

.footer-wrapper .social-icons li {
    margin: 0 !important;
    padding: 0;
}

.footer-wrapper .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-wrapper .social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-wrapper .social-icons a[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.footer-wrapper .social-icons a[aria-label="YouTube"]:hover {
    background: #FF0000;
    border-color: transparent;
}

.footer-wrapper .social-icons a[aria-label="LinkedIn"]:hover {
    background: #0077b5;
    border-color: transparent;
}

/* Application Form Professional Styling */
#apply .section-text h4 {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #2B4965 !important;
}

#apply .section-text p {
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: rgba(43, 73, 101, 0.8) !important;
    margin-bottom: 40px !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#apply .contact-form-wrapper {
    background: #fff !important;
    padding: 50px !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-widget h3 {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.footer-widget p {
    color: #bdc3c7;
    font-size: 15px;
    line-height: 1.6;
}

.footer-widget h6 {
    color: #65BD97;
    /* Mektup Green */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-size: 14px;
}

.footer-widget ul li a {
    color: #dfe6e9;
    /* Light Gray */
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: #fff;
    transform: translateX(5px);
    text-decoration: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

/* Social Icons in Footer */
.footer-widget .social-icons li {
    display: inline-block;
    margin-right: 15px;
}

.footer-widget .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-widget .social-icons a:hover {
    background: #107494;
    /* Mektup Blue */
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
}

.copyright strong {
    color: #fff;
}

/* --- Hero Section Floating Bubbles Animation --- */
.hero-visual-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
    /* Adjust based on phone image size */
    margin: 0 auto;
}

.hero-main-img {
    position: relative;
    z-index: 10;
    width: 100%;
    animation: float-main 6s ease-in-out infinite;
}

.floating-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    font-size: 14px;
    font-weight: 600;
    color: #2B4965;
    opacity: 0;
    animation-fill-mode: forwards;
}

.floating-bubble i {
    font-size: 18px;
    color: #107494;
}

/* Specific Bubble Positions & Animations */
.bubble-1 {
    top: 10%;
    left: -10%;
    animation: float-bubble 5s ease-in-out infinite 0s, fade-in 1s ease-out forwards 0.5s;
}

.bubble-2 {
    top: 20%;
    right: -15%;
    animation: float-bubble 6s ease-in-out infinite 1s, fade-in 1s ease-out forwards 1s;
}

.bubble-3 {
    bottom: 25%;
    left: -15%;
    animation: float-bubble 7s ease-in-out infinite 0.5s, fade-in 1s ease-out forwards 1.5s;
}

.bubble-4 {
    bottom: 10%;
    right: -5%;
    animation: float-bubble 5.5s ease-in-out infinite 2s, fade-in 1s ease-out forwards 2s;
}

/* Animations */
@keyframes float-main {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-bubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide bubbles on mobile to prevent overflow */
@media (max-width: 768px) {
    .floating-bubble {
        display: none;
    }
}

/* --- Global Interactive Animations --- */

/* Feature Cards Lift & Glow */
.col-feat .item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    /* Ensure rounded corners */
}

.col-feat .item:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.col-feat .item:hover .icon i,
.col-feat .item:hover .icon span {
    animation: pulse-icon 1s infinite;
}

/* Step Icons Pulse */
.work-process .item:hover .icon-bg-lg {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(16, 116, 148, 0.3);
    transition: all 0.3s ease;
}

.work-process .item:hover .icon-bg-lg span {
    animation: shake-icon 0.5s ease-in-out;
}

/* MIA Image Subtle Float */
.overview-img img {
    animation: float-subtle 4s ease-in-out infinite;
}

/* Animations Keyframes */
@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shake-icon {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes float-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* --- Professional Header Redesign --- */

/* --- Phone Frame Styling for Screenshots --- */
.phone-frame {
    position: relative;
    border: 10px solid #101010;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: #000;
    display: inline-block;
    /* Aligns within the swiper slide */
    max-width: 300px;
    /* Limit width */
    margin: 0 auto;
}

.phone-frame:before {
    /* Notch / Camera area simulation */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 15px;
    background: #101010;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}

.phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    /* Inner radius matching frame */
}

/* Static Phone Frame for Content Sections */
.static-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.static-phone-frame {
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    border: 8px solid #1a1a1a;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #000;
    position: relative;
}

.static-phone-frame:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 12px;
    background: #1a1a1a;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 10;
}

.static-phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 17px;
}

/* Responsive adjustments for static frames */
@media (max-width: 991px) {
    .static-phone-frame {
        max-width: 250px;
        border-width: 6px;
    }
}

@media (max-width: 767px) {
    .static-phone-frame {
        max-width: 220px;
        border-width: 5px;
    }

    .static-frame {
        padding: 15px;
    }
}

/* Navbar Base Styles - Redesign v2 */
#navbar.navbar-custom {
    padding: 25px 0 !important;
    background: #ffffff !important;
    /* White Background Default */
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    /* Subtle border */
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* --- Header Alignment Fixes --- */
#navbar.navbar-custom .container>.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#navbar.navbar-custom .navbar-header {
    float: none;
    display: flex;
    align-items: center;
}

#navbar.navbar-custom .navbar-collapse {
    float: none;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

#navbar.navbar-custom .right-nav {
    float: none;
    display: flex;
    align-items: center;
}

/* Mobile Alignment Reset */
@media (max-width: 768px) {
    #navbar.navbar-custom .container>.row {
        display: block;
        /* Stack on mobile */
    }

    #navbar.navbar-custom .navbar-collapse {
        display: none !important;
        /* Restore bootstrap collapse behavior class */
        align-items: flex-start;
    }

    #navbar.navbar-custom .navbar-collapse.in {
        display: block !important;
    }

    #navbar.navbar-custom .right-nav {
        display: block;
    }
}

/* Logo Sizing */
#navbar.navbar-custom .navbar-brand {
    padding: 0 !important;
    height: auto !important;
}

#navbar.navbar-custom .logo-img {
    max-height: 100px !important;
    height: 100px !important;
    /* Bigger Logo Initial */
    width: auto !important;
    transition: all 0.3s ease !important;
    display: block;
}

/* Specific Mobile Fixes */
@media (max-width: 768px) {
    #navbar.navbar-custom .logo-img {
        max-height: 60px !important;
        height: 60px !important;
        /* Smaller on mobile but still visible */
        margin-left: 15px;
        /* Spacing */
    }

    .navbar-header {
        text-align: left;
    }
}

/* Logo Visibility Logic */
#navbar.navbar-custom .logo-light {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

#navbar.navbar-custom .logo-clr {
    opacity: 1;
    visibility: visible;
    width: auto;
}

/* Sticky Navbar (Affix) */
#navbar.navbar-custom.affix {
    background-color: #ffffff !important;
    padding: 10px 0 !important;
    /* Compact on scroll */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1) !important;
}

#navbar.navbar-custom.affix .logo-img {
    max-height: 70px !important;
    height: 70px !important;
    /* Smaller on scroll but still visible */
}

/* Switch Logos on Scroll */
#navbar.navbar-custom.affix .logo-light {
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
}

#navbar.navbar-custom.affix .logo-clr {
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
}

/* Main Navigation Links - Professional Design */
#navbar.navbar-custom .nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

#navbar.navbar-custom .nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#navbar.navbar-custom .nav-link-item {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    color: #2B4965 !important;
    /* Dark Text */
    padding: 12px 18px !important;
    margin: 0 4px !important;
    text-decoration: none !important;
    position: relative;
    transition: all 0.3s ease !important;
    border-radius: 8px;
    display: inline-block;
}

#navbar.navbar-custom .nav-link-item:hover {
    background: rgba(16, 116, 148, 0.1) !important;
    color: #107494 !important;
    transform: translateY(-2px);
}

#navbar.navbar-custom.affix .nav-link-item {
    color: #2B4965 !important;
}

#navbar.navbar-custom.affix .nav-link-item:hover {
    background: rgba(16, 116, 148, 0.1) !important;
    color: #107494 !important;
}

/* Active link indicator */
#navbar.navbar-custom .nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #107494;
    /* Blue underline */
    transition: width 0.3s ease;
    border-radius: 2px;
}

#navbar.navbar-custom .nav-link-item:hover::after,
#navbar.navbar-custom .nav-link-item.active::after {
    width: 60%;
}

#navbar.navbar-custom.affix .nav-link-item::after {
    background: #107494;
}

/* Dropdown Language Switcher */
#navbar.navbar-custom .lang-switcher {
    position: relative;
}

#navbar.navbar-custom .lang-switcher .dropdown-toggle {
    padding: 12px 18px !important;
    margin: 0 4px !important;
}

#navbar.navbar-custom .lang-switcher .caret {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

#navbar.navbar-custom .lang-switcher.open .caret {
    transform: rotate(180deg);
}

/* Header Button - Professional */
#navbar.navbar-custom .nav-btn {
    margin-left: 15px;
    display: inline-block;
}

#navbar.navbar-custom .btn-primary-nav {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 28px !important;
    border-radius: 25px !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    background: #fff !important;
    color: #107494 !important;
}

#navbar.navbar-custom .btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    background: #fff !important;
    color: #107494 !important;
}

#navbar.navbar-custom.affix .btn-primary-nav {
    background: #107494 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(16, 116, 148, 0.3) !important;
}

#navbar.navbar-custom.affix .btn-primary-nav:hover {
    background: #0d5d77 !important;
    box-shadow: 0 6px 20px rgba(16, 116, 148, 0.4) !important;
}

/* Mobile Menu Adjustments - Professional */
@media (max-width: 768px) {
    .navbar-custom {
        background: #fff !important;
        padding: 12px 0 !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    }

    .navbar-custom .right-nav {
        width: 100%;
    }

    .navbar-custom .nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 15px;
    }

    .navbar-custom .nav li {
        width: 100%;
        margin: 0 !important;
    }

    .navbar-custom .nav-link-item {
        color: #2B4965 !important;
        padding: 12px 20px !important;
        width: 100%;
        display: block;
        border-radius: 0;
        margin: 0 !important;
    }

    .navbar-custom .nav-link-item:hover {
        background: rgba(16, 116, 148, 0.1) !important;
        color: #107494 !important;
    }


    /* --- Creative WhatsApp-like Background --- */
    body {
        background-color: #f7f9fa;
        /* Modern Chat Background Base */
        background-image:
            radial-gradient(#e1e8ed 15%, transparent 16%),
            radial-gradient(#e1e8ed 15%, transparent 16%);
        background-size: 60px 60px;
        background-position: 0 0, 30px 30px;
        position: relative;
    }

    /* Floating Gradient Mesh for "Creative Movement" */
    body::before {
        content: '';
        position: fixed;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 50% 50%, rgba(16, 116, 148, 0.03), transparent 60%),
            radial-gradient(circle at 80% 20%, rgba(101, 189, 151, 0.03), transparent 40%),
            radial-gradient(circle at 20% 80%, rgba(239, 127, 27, 0.02), transparent 40%);
        animation: floatingBackground 30s ease-in-out infinite alternate;
        z-index: -1;
        pointer-events: none;
    }

    @keyframes floatingBackground {
        0% {
            transform: translate(0, 0) rotate(0deg);
        }

        100% {
            transform: translate(-50px, -50px) rotate(5deg);
        }
    }

    /* Ensure sections are transparent or have glass effect where needed */
    section.light,
    section.about-section,
    section.overview-section,
    section.step-section {
        background: transparent !important;
    }

    /* Adding Glass panels to some containers for readability on pattern */
    .section-text,
    .step-list,
    .faq-wrapper {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 20px;
    }

    .intro-text .btn-white {
        background: rgba(255, 255, 255, 0.8);
    }

    /* Fix for Mobile Dropdown staying open */
    .navbar-custom .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        display: block !important;
        /* Only show when open */
    }

    /* Ensure it's hidden otherwise */
    .navbar-custom .dropdown-menu {
        display: none;
    }

    .navbar-custom .nav>li>.dropdown-menu {
        margin-top: 0;
        border-radius: 0;
    }

    .navbar-custom .nav-btn {
        margin: 15px 0 0 0 !important;
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }

    .navbar-custom .btn-primary-nav {
        width: 100%;
        text-align: center;
    }

    .navbar-brand img {
        max-height: 50px !important;
        height: 50px !important;
        margin-top: 0 !important;
    }

    .navbar-toggle .icon-bar {
        background-color: #2B4965 !important;
    }

    .navbar-custom .lang-dropdown {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        border-radius: 0 !important;
    }
}

/* --- Hero 3D Slider Styles (Creative Touch) --- */
.hero-slider-wrapper {
    perspective: 1200px;
    padding: 50px 0;
}

.hero-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.hero-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    /* Width of the phone frame */
    height: auto;
    /* Glass reflection effect on the slide container */
    -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #0006);
}

/* Phone Frame Specifics for Hero */
.hero-swiper .phone-frame {
    border: 8px solid #1a1a1a;
    border-radius: 35px;
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

/* Notch */
.hero-swiper .phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.hero-swiper .phone-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
    /* Inner radius */
}

/* Floating Animation for the Active Slide to make it "Creative" */
.hero-swiper .swiper-slide-active .phone-frame {
    animation: floatingHero 3s ease-in-out infinite;
    box-shadow: 0 30px 60px -12px rgba(255, 152, 0, 0.3);
    /* Orange glow for active */
    border-color: #222;
}

@keyframes floatingHero {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Interactive Video Section (Morphing) --- */
.interactive-video-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    perspective: 1000px;
}

.video-phone-frame {
    position: relative;
    width: 320px;
    height: 600px;
    /* Portrait Phone */
    background: #000;
    border-radius: 40px;
    border: 12px solid #1a1a1a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-size: cover;
    background-position: center;
}

/* Tablet / Landscape Mode (Active) */
.video-phone-frame.is-active {
    width: 800px;
    height: 480px;
    /* Horizontal Landscape */
    border-radius: 20px;
    border-width: 15px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}

.video-cover {
    width: 100%;
    height: 100%;
    position: relative;
    transition: opacity 0.5s ease;
    background: #000;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Video Layer (Initially Hidden) */
.video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease 0.8s;
    overflow: hidden;
    border-radius: inherit;
}

.video-layer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* HTML5 Video Player Styles */
.mektup-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.mektup-video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.mektup-video::-webkit-media-controls-play-button {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.mektup-video::-webkit-media-controls-current-time-display,
.mektup-video::-webkit-media-controls-time-remaining-display {
    color: #fff;
}

.video-phone-frame.is-active .video-layer {
    opacity: 1;
    pointer-events: auto;
}

.video-phone-frame.is-active .video-cover {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Pulse Play Button */
.play-btn-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.btn-play-pulse {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #107494 0%, #2B4965 100%);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 30px;
    padding-left: 5px;
    /* Visual center adjustment for triangle */
    box-shadow: 0 0 0 0 rgba(16, 116, 148, 0.7);
    animation: pulse-orange 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play-pulse:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
}

.play-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 116, 148, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(16, 116, 148, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 116, 148, 0);
    }
}


/* Video Overlay Caption */
.video-overlay-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 80%;
    max-width: 280px;
    pointer-events: none;
    /* Let clicks pass through */
    transition: all 0.5s ease;
}

.video-overlay-caption span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: block;
    line-height: 1.4;
}

/* Hide caption when video plays (optional, or keep it) */
.video-phone-frame.is-active .video-overlay-caption {
    opacity: 0;
    transform: translate(-50%, 20px);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .video-phone-frame.is-active {
        width: 100%;
        height: 250px;
    }
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .navbar-header {
    float: right;
}

body.rtl .navbar-nav {
    float: left;
}

body.rtl .navbar-custom .nav li {
    float: right;
}

body.rtl .text-right {
    text-align: left !important;
    /* Reverses footer/hero align */
}

body.rtl .footer-widget h3,
body.rtl .footer-widget p {
    text-align: right;
}

body.rtl .contact-form-wrapper {
    text-align: right;
}

body.rtl .custom-form .form-group label {
    margin-right: 5px;
    margin-left: 0;
}

/* Float reversals for icons */
body.rtl .icon-bg-md,
body.rtl .icon-bg-sm {
    float: right;
    margin-left: 15px;
    margin-right: 0;
}

/* Specific component fixes */
body.rtl .hero-content .row .col-sm-5 {
    float: right;
}

body.rtl .hero-content .row .col-sm-7 {
    float: left;
}

body.rtl .step-list .icon-lg {
    float: none;
    /* Centered in steps */
}

body.rtl .navbar-toggle {
    float: left;
    margin-left: 15px;
    margin-right: 0;
}

/* --- Professional Dropdown Menu Styles --- */
#navbar.navbar-custom .lang-dropdown {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
    margin-top: 10px !important;
    min-width: 200px !important;
    overflow: hidden;
}

#navbar.navbar-custom .lang-dropdown li {
    margin: 0 !important;
    padding: 0 !important;
}

#navbar.navbar-custom .lang-dropdown li a {
    color: #2B4965 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 12px 20px !important;
    background: transparent !important;
    display: block !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
    border-left: 3px solid transparent;
}

#navbar.navbar-custom .lang-dropdown li a:hover {
    background-color: #f8f9fa !important;
    color: #107494 !important;
    border-left-color: #107494;
    padding-left: 25px !important;
}

#navbar.navbar-custom .lang-dropdown li a:active {
    background-color: #e9ecef !important;
}

/* Navbar Brand & Logo Fixes */
.navbar-header {
    height: auto !important;
    min-height: 90px !important;
    /* Ensure minimal height for big logo */
    display: flex;
    align-items: center;
}

#navbar.navbar-custom .navbar-brand {
    padding: 10px 15px !important;
    height: auto !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center;
}

/* Force User's desired Logo Size */
#navbar.navbar-custom .logo-img {
    max-height: 80px !important;
    height: 80px !important;
    width: auto !important;
}

/* Mobile Toggle Button Color */
.navbar-toggle .icon-bar {
    background-color: #161C2D !important;
}

/* Remove any conflicting white text on white bg scenarios */
#navbar.navbar-custom .nav>li>a {
    color: #161C2D !important;
    /* Dark text for all menu items per user's inline change preference */
}

/* Form Success/Error Messages - Modern Design */
#form-message {
    margin-top: 30px;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#form-message.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
}

#form-message.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
}

.form-success-content,
.form-error-content {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.success-icon-wrapper,
.error-icon-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    animation: scaleIn 0.5s ease-out, pulse 2s ease-in-out infinite 0.5s;
}

.error-icon {
    font-size: 64px;
    color: #dc3545;
    animation: shake 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.success-title,
.error-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #155724;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-title {
    color: #721c24;
}

.success-message,
.error-message {
    font-size: 16px;
    line-height: 1.6;
    color: #155724;
    margin: 0;
}

.error-message {
    color: #721c24;
}

/* Form Interactive Enhancements */
.custom-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.custom-form .form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(16, 116, 148, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-form .form-control:valid {
    border-color: #28a745;
}

.custom-form .form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.custom-form .btn.grdnt-orange {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-form .btn.grdnt-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
}

.custom-form .btn.grdnt-orange:active {
    transform: translateY(-1px);
}

.custom-form .btn.grdnt-orange:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner for submit button */
.custom-form .btn.grdnt-orange.loading {
    pointer-events: none;
}

.custom-form .btn.grdnt-orange.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {

    /* Fix Hero Buttons on White Background */
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        display: block;
    }

    /* Ensure Android button (usually outline) is visible */
    .btn-white-outline {
        border-color: #ef7f1b !important;
        /* Orange border */
        color: #ef7f1b !important;
        /* Orange text */
        background-color: #fff !important;
        /* White background */
    }

    .btn-white-outline:hover {
        background-color: #ef7f1b !important;
        color: #fff !important;
    }

    /* iOS Button usually solid, ensure contrast */
    .btn-white {
        background-color: #107494 !important;
        /* Blue bg */
        color: #fff !important;
        border: none !important;
    }

    /* Fix Step Section Readability on Mobile */
    .step-section.grdnt-orange {
        background: #ffffff !important;
        background-color: #ffffff !important;
    }

    .step-section.grdnt-orange h4,
    .step-section.grdnt-orange p,
    .step-section.grdnt-orange .icon-bg {
        color: #333 !important;
        border-color: #eee !important;
    }

    /* Hide decorative background elements if any */
    .step-section.grdnt-orange .before-bg {
        display: none !important;
    }

    /* Fix Footer Overflow */
    footer {
        height: auto !important;
        padding-bottom: 20px !important;
        position: relative !important;
    }

    html,
    body {
        overflow-x: hidden !important;
    }

    /* General Text Readability on Mobile */
    .bg-white p,
    .bg-white h1,
    .bg-white h2,
    .bg-white h3,
    .bg-white h4,
    .bg-white h5,
    .bg-white h6 {
        color: #333;
    }
}