/* ========================================
   Header Custom Styles - Language & Dark Mode
   ======================================== */

/* Language Switcher Styles */
.octf-language {
    position: relative;
    display: inline-block;
}

/* Simple Language Button Styles */
.language-switcher-simple {
    position: relative;
    z-index: 10000;
}

.language-btn {
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.language-text {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Language Button */
.mobile-language-btn {
    padding: 6px 10px;
}

.mobile-language-btn .language-text {
    font-size: 11px;
}

.mobile-language-btn .flag-icon {
    width: 18px;
    height: 13px;
}

/* Old Language Dropdown styles removed - Now using simple buttons */

/* Dark Mode Switcher Styles */
.octf-theme-switcher {
    position: relative;
    display: inline-block;
}

.theme-switcher {
    position: relative;
    cursor: pointer;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Background circle that moves */
.theme-toggle::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Dark Mode Active State - Move circle to right */
body.dark-mode .theme-toggle::before {
    left: calc(100% - 27px);
}

.theme-icon {
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.sun-icon {
    color: #fff;
    opacity: 1;
}

.moon-icon {
    color: #fff;
    opacity: 1;
}

/* Dark Mode Active State - Update icon colors */
body.dark-mode .sun-icon {
    color: #fff;
    opacity: 0.7;
}

body.dark-mode .moon-icon {
    color: #fff;
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .current-language {
        padding: 6px 10px;
    }

    .language-text {
        font-size: 11px;
    }

    .flag-icon {
        width: 18px;
        height: 13px;
    }

    .theme-toggle {
        width: 50px;
        height: 25px;
    }

    .theme-toggle::before {
        width: 19px;
        height: 19px;
    }

    body.dark-mode .theme-toggle::before {
        left: calc(100% - 22px);
    }

    .theme-icon {
        font-size: 12px;
        width: 19px;
        height: 19px;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
    }

    /* Mobile Language Switcher - Simple Button */
    .mobile-lang-switcher {
        position: relative !important;
    }
}

/* Header Icons Spacing */
.octf-btn-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.octf-cta-header {
    display: flex;
    align-items: center;
}

/* Hover Effects */
.octf-language:hover .current-language,
.octf-theme-switcher:hover .theme-toggle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animation for smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Dark mode base styles (will be controlled by JavaScript) */

body.dark-mode .site-header {
    background-color: rgba(26, 26, 26, 0.95);
}


/* Dark mode language button styles */
body.dark-mode .language-btn {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .language-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Hero Social Media Icons - Custom Design
   ======================================== */

/* Social Icons Container */

.banner-desc-1 ul {
    line-height: 90px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.banner-desc-1 ul li {
    margin: auto;
    padding: 0;
    position: relative;
    margin-bottom: 40px;
    writing-mode: vertical-rl;
    transform: rotate(0);
    display: flex;
    align-items: flex-start;
}

.banner-desc-1 ul li:last-child {
    margin-bottom: 0;
}

/* Social Icon Links */
.social-icon-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Social Icons Styling */
.social-icon-link i {
    font-size: 25px;
    font-weight: 400;
    font-family: "Font Awesome 5 Brands";
    transition: all 0.3s ease;
    display: block;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Facebook - Blue (#1877F2) */
.social-facebook i {
    color: #1877F2;
}

.social-facebook:hover i {
    color: #fff;
    background: #1877F2;
    transform: scale(1.2);
    border-radius: 50%;
    padding: 6px;
}

.social-facebook:hover {
    background: rgba(24, 119, 242, 0.1);
    border-radius: 4px;
    transform: translateY(-2px);
}

/* Instagram - Gradient (Purple to Pink to Orange) */
.social-instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-instagram:hover i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    color: #fff;
    transform: scale(1.2);
    border-radius: 50%;
    padding: 6px;
}

.social-instagram:hover {
    background: rgba(188, 24, 136, 0.1);
    border-radius: 4px;
    transform: translateY(-2px);
}

/* Twitter - Light Blue (#1DA1F2) */
.social-twitter i {
    color: #1DA1F2;
}

.social-twitter:hover i {
    color: #fff;
    background: #1DA1F2;
    transform: scale(1.2);
    border-radius: 50%;
    padding: 6px;
}

.social-twitter:hover {
    background: rgba(29, 161, 242, 0.1);
    border-radius: 4px;
    transform: translateY(-2px);
}

/* Pinterest - Red (#BD081C) */
.social-pinterest i {
    color: #BD081C;
}

.social-pinterest:hover i {
    color: #fff;
    background: #BD081C;
    transform: scale(1.2);
    border-radius: 50%;
    padding: 6px;
}

.social-pinterest:hover {
    background: rgba(189, 8, 28, 0.1);
    border-radius: 4px;
    transform: translateY(-2px);
}

/* Dark Mode Support */
body.dark-mode .social-facebook i {
    color: #1877F2;
}

body.dark-mode .social-instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .social-twitter i {
    color: #1DA1F2;
}

body.dark-mode .social-pinterest i {
    color: #BD081C;
}

body.dark-mode .social-facebook:hover i,
body.dark-mode .social-twitter:hover i,
body.dark-mode .social-pinterest:hover i {
    color: #fff;
    transform: scale(1.2);
    border-radius: 50%;
    padding: 8px;
}

body.dark-mode .social-instagram:hover i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
    color: #fff;
    transform: scale(1.2);
    border-radius: 50%;
    padding: 8px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .banner-desc-1 {
        display: none;
    }
}

@media (max-width: 768px) {
    .banner-desc-1 {
        display: none;
    }
}

/* ========================================
   About Section Video Container - Custom Design
   ======================================== */

/* Video Container */
.about-video-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.about-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Video Element */
.home-page-video {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #000;
}

/* Video Loading State */
.home-page-video:not([src]) {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }

    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

.about-video-container:hover .home-page-video {
    transform: scale(1.02);
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.about-video-container:hover .video-controls-overlay {
    opacity: 1;
}

/* Video Control Button */
.video-control-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-control-btn:hover {
    transform: scale(1.1);
    background: #fff;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.video-control-btn i {
    font-size: 24px;
    color: #0a0a0a;
    transition: all 0.3s ease;
}

.video-control-btn:hover i {
    transform: scale(1.1);
}

/* Play/Pause Icon Animation */
.video-control-btn i.fa-play {
    margin-left: 3px;
    /* Slight adjustment for play icon centering */
}

.video-control-btn i.fa-pause {
    margin-left: 0;
}

/* Pulse Animation for Control Button */
.video-control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 2s infinite;
    opacity: 0.7;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Video Paused State */
.about-video-container.paused .video-controls-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.about-video-container.paused .home-page-video {
    filter: brightness(0.8);
}

/* Dark Mode Support */
body.dark-mode .video-controls-overlay {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .video-control-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .video-control-btn:hover {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .about-video-container.paused .video-controls-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* Video Fallback Image */
.video-fallback-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Video Loading Spinner */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Dark mode loading spinner */
body.dark-mode .video-loading {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Slider Caption Font Size Adjustment
   ======================================== */

@media screen and (max-width: 768px) {
    .tp-caption-main {
        font-size: 26px !important;
    }

}

/* ========================================
   Modern Services Section Design
   ======================================== */

/* Services Section Background */
.services-section {
    position: relative;
    z-index: 1;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.03), rgba(108, 117, 125, 0.03));
    border-radius: 50%;
    z-index: -1;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: linear-gradient(-45deg, rgba(40, 167, 69, 0.03), rgba(255, 193, 7, 0.03));
    border-radius: 50%;
    z-index: -1;
}

/* Service Card Container */
.modern-service-card {
    border-radius: 5px;
    padding: 40px 30px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    background-image: url("../images/bg/bg-iconbox1.png");
    background-color: rgba(232, 233, 232, 0.62);
}


/* Background Pattern */
.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.02) 2px, transparent 2px),
        radial-gradient(circle at 75px 75px, rgba(0, 0, 0, 0.02) 2px, transparent 2px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    z-index: 1;
    pointer-events: none;
}

/* Card Hover Effect */

.modern-service-card:hover::before {
    opacity: 0.8;
}

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

/* Services Container */
.services-container {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Service Card */
.modern-service-card {
    flex: 1;
    margin: 0;
    border: none;
    border-radius: 0;
    height: auto;
    transition: all 0.4s ease;
}

/* Hover Effects */
.modern-service-card:hover {
    transform: translateY(-5px);
    box-shadow: none !important;
}

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

/* Service Content */
.service-content {
    text-align: center;
    flex-grow: 1;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Service Footer */
.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 991px) {
    .services-container {
        flex-direction: column;
    }

    .modern-service-card+.modern-service-card {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .modern-service-card+.modern-service-card {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}


/* Service Icon */
.service-icon {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

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

/* Service Content */
.service-content {
    text-align: center;
    flex-grow: 1;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 15px;
    line-height: 1.3;
    direction: rtl;
    text-align: center;
}

.service-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    direction: rtl;
    text-align: center;
}

/* Service Footer */
.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Service Number - Outline Style */
.service-number {
    font-size: 48px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgb(54, 54, 54);
    line-height: 1;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-shadow: none;
}


/* Read More Button */
.read-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0a0a0a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more-btn i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #0a0a0a;
    color: #fff;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.read-more-btn:hover i {
    transform: scale(1.1);
}

/* Dark Mode Support */
body.dark-mode .modern-service-card {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-mode .modern-service-card::before {
    background-image:
        radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 75px 75px, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
}

body.dark-mode .service-title {
    color: #fff;
}

body.dark-mode .service-description {
    color: #ccc;
}

body.dark-mode .service-number {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4);
}

body.dark-mode .read-more-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .read-more-btn:hover {
    background: #fff;
    color: #0a0a0a;
}

body.dark-mode .service-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modern-service-card {
    background-image: url("../images/bg/bg-iconbox1.png");
    background-color: rgb(43 43 43);
    background-blend-mode: overlay;
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-service-card {
        padding: 35px 25px 25px;
        margin-bottom: 30px;
    }

    .service-icon img {
        width: 70px;
        height: 70px;
    }

    .service-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .service-description {
        font-size: 13px;
    }

    .service-number {
        font-size: 42px;
        -webkit-text-stroke: 1.8px rgb(54, 54, 54);
    }

    .read-more-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .modern-service-card {
        padding: 30px 20px 20px;
        margin-bottom: 25px;
    }

    .service-icon img {
        width: 60px;
        height: 60px;
    }

    .service-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .service-description {
        font-size: 12px;
        line-height: 1.5;
    }

    .service-number {
        font-size: 36px;
        -webkit-text-stroke: 1.5px rgb(54, 54, 54);
    }

    .read-more-btn {
        font-size: 11px;
        padding: 5px 8px;
        gap: 6px;
    }

    .read-more-btn i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .modern-service-card {
        padding: 25px 15px 15px;
    }

    .service-title {
        font-size: 15px;
    }

    .service-description {
        font-size: 11px;
    }

    .service-number {
        font-size: 32px;
        -webkit-text-stroke: 1.2px rgb(54, 54, 54);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .home-page-video {
        max-height: 350px;
    }

    .video-control-btn {
        width: 70px;
        height: 70px;
    }

    .video-control-btn i {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .home-page-video {
        max-height: 300px;
    }

    .video-control-btn {
        width: 65px;
        height: 65px;
    }

    .video-control-btn i {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .home-page-video {
        max-height: 250px;
    }

    .video-control-btn {
        width: 60px;
        height: 60px;
    }

    .video-control-btn i {
        font-size: 16px;
    }

    /* Show controls on mobile by default */
    .video-controls-overlay {
        opacity: 0.8;
    }

    /* Improve touch targets on mobile */
    .about-video-container {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Video Container */
.about-video-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Allow clicks to pass through by default */
}

/* Show controls on hover or when video is paused */
.about-video-container:hover .video-controls-overlay,
.about-video-container.paused .video-controls-overlay {
    opacity: 1;
    pointer-events: auto;
    /* Enable interaction when visible */
}

/* Video Control Button */
.video-control-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.video-control-btn:hover {
    transform: scale(1);
    background: #fff;
}

.video-control-btn i {
    font-size: 20px;
    color: #0a0a0a;
    transition: all 0.3s ease;
}

/* Dark Mode Support */
body.dark-mode .video-controls-overlay {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .video-control-btn {
    background: rgba(255, 255, 255, 0.9);
}

body.dark-mode .video-control-btn:hover {
    background: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .video-controls-overlay {
        /* Hide by default on mobile too */
        opacity: 0;
    }

    /* Only show when video is paused on mobile */
    .about-video-container.paused .video-controls-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .video-control-btn {
        width: 50px;
        height: 50px;
    }

    .video-control-btn i {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .home-page-video {
        max-height: 100%;
    }

    .video-control-btn {
        width: 50px;
        height: 50px;
    }

    .video-control-btn i {
        font-size: 14px;
    }
}

/* ========================================
   Products Section - Custom Design
   ======================================== */

/* Products Section */
.products-section {
    padding: 80px 0;
}

/* Product Card */
.product-card {
    background: transparent;
    overflow: visible;
    height: 100%;
    position: relative;
}

/* Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    height: 355px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Content */
.product-content {
    padding: 0;
    text-align: center;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    color: #0a0a0a;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Product Rating */
.product-rating {
    margin-bottom: 10px;
    text-align: center;
}

.stars {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.stars i {
    color: #ffd700;
    font-size: 12px;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* Dark Mode Support */
body.dark-mode .products-section {
    background: #0a0a0a;
}

body.dark-mode .product-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .product-title {
    color: #ffffff;
}

body.dark-mode .price {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-section {
        padding: 60px 0;
    }

    .product-image {
        height: 355px;
    }

    .product-content {
        padding: 15px;
    }

    .product-title {
        font-size: 14px;
    }

    .price {
        font-size: 16px;
    }
}


/* Testimonials Section */
body.dark-mode .ot-testimonials .testi-item .ttext {
    color: #fff;
    background: #0a0a0a;
    border-color: #292929;
}

body.dark-mode .ot-testimonials .testi-item .ttext:before {
    position: absolute;
    top: -28px;
    left: 28px;
    content: "";
    width: 80px;
    height: 45px;
    z-index: 1;
    background: url("../images/quote.svg") no-repeat center;
}

body.dark-mode .ot-testimonials .testi-item .ttext .layer-behind {
    background: #1a1a1a;
}


body.dark-mode .ot-testimonials .testi-item .ttext>span {
    background: #0a0a0a;
}

/* ========================================
   Professional Video Preloader
   ======================================== */

.video-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.video-preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    border: none;
}

/* Overlay to prevent any interaction */
.preloader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    pointer-events: auto;
    cursor: default;
}

/* Hide video controls on all browsers */
.video-preloader video::-webkit-media-controls {
    display: none !important;
}

.video-preloader video::-webkit-media-controls-panel {
    display: none !important;
}

.video-preloader video::-webkit-media-controls-play-button {
    display: none !important;
}

.video-preloader video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.video-preloader video::-moz-media-controls {
    display: none !important;
}

.video-preloader video::-ms-media-controls {
    display: none !important;
}

/* Mobile specific fixes - Complete interaction prevention */
@media (max-width: 768px) {
    .video-preloader {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-appearance: none !important;
        touch-action: none !important;
    }

    .video-preloader video {
        -webkit-playsinline: true !important;
        -webkit-touch-callout: none !important;
        touch-action: none !important;
        -webkit-user-drag: none !important;
        -khtml-user-drag: none !important;
        -moz-user-drag: none !important;
        -o-user-drag: none !important;
        user-drag: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        outline: none !important;
        border: none !important;
        background: none !important;
    }

    .preloader-overlay {
        touch-action: none !important;
        -webkit-touch-callout: none !important;
        pointer-events: auto !important;
        cursor: default !important;
    }

    /* Hide any potential mobile video controls */
    .video-preloader video::-webkit-media-controls-panel,
    .video-preloader video::-webkit-media-controls-play-button,
    .video-preloader video::-webkit-media-controls-start-playbook-button,
    .video-preloader video::-webkit-media-controls-current-time-display,
    .video-preloader video::-webkit-media-controls-time-remaining-display,
    .video-preloader video::-webkit-media-controls-timeline,
    .video-preloader video::-webkit-media-controls-volume-slider,
    .video-preloader video::-webkit-media-controls-mute-button,
    .video-preloader video::-webkit-media-controls-fullscreen-button {
        display: none !important;
        -webkit-appearance: none !important;
    }

    /* Force hide all mobile browser video UI */
    .video-preloader video[controls] {
        controls: false !important;
    }
}

.video-preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.video-preloader.hidden {
    display: none;
}

#page {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

#page.show {
    opacity: 1;
}

/* ========================================
   Classic 360° Projects Section - Black & White Only
   ======================================== */

/* 360 Projects Section */
.projects-360-section {
    background: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Dark Mode */
body.dark-mode .projects-360-section {
    background: #0a0a0a;
}

/* Project Cards Container */
.projects-360-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Project Card */
.project-360-card {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.project-360-card:hover {
    border-color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.15);
}

/* Dark Mode Cards */
body.dark-mode .project-360-card {
    background: #1a1a1a;
    border-color: #333333;
}

body.dark-mode .project-360-card:hover {
    border-color: #ffffff;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

/* Project Image Container */
.project-360-image {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: #f8f8f8;
}

.project-360-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-360-card:hover .project-360-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Dark Mode Image */
body.dark-mode .project-360-image {
    background: #2a2a2a;
}

/* 360 Badge */
.badge-360 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

body.dark-mode .badge-360 {
    background: #ffffff;
    color: #1a1a1a;
}

/* Project Content */
.project-360-content {
    padding: 25px;
    text-align: center;
}

.project-360-title {
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-360-description {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Dark Mode Content */
body.dark-mode .project-360-title {
    color: #ffffff;
}

body.dark-mode .project-360-description {
    color: #cccccc;
}

/* Action Button */
.btn-360-view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 24px;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-360-view:hover {
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
}

.btn-360-view i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-360-view:hover i {
    transform: scale(1.1) rotate(10deg);
}

/* Dark Mode Button */
body.dark-mode .btn-360-view {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

body.dark-mode .btn-360-view:hover {
    background: transparent;
    color: #ffffff;
}

/* Section Footer */
.projects-360-footer {
    text-align: center;
    margin-top: 60px;
}

.btn-view-all-360 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #1a1a1a;
    padding: 15px 30px;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-view-all-360:hover {
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.2);
}

/* Dark Mode Footer Button */
body.dark-mode .btn-view-all-360 {
    color: #ffffff;
    border-color: #ffffff;
}

body.dark-mode .btn-view-all-360:hover {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* Modal Styles */
.modal-360 {
    background: rgba(0, 0, 0, 0.9);
}

.modal-360 .modal-dialog {
    max-width: 90%;
    width: 90%;
    height: 90%;
}

.modal-360 .modal-content {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modal-360 .modal-header {
    background: #1a1a1a;
    color: #ffffff;
    border-bottom: none;
    padding: 20px;
}

.modal-360 .modal-title {
    font-weight: 600;
    font-size: 18px;
}

.modal-360 .btn-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    opacity: 1;
}

.modal-360 .modal-body {
    padding: 0;
    height: calc(100% - 80px);
    position: relative;
}

/* Dark Mode Modal */
body.dark-mode .modal-360 .modal-content {
    background: #1a1a1a;
    border: 2px solid #333333;
}

body.dark-mode .modal-360 .modal-header {
    background: #0a0a0a;
}

/* Iframe Container */
.iframe-360-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f8f8f8;
}

.iframe-360-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

body.dark-mode .iframe-360-container {
    background: #2a2a2a;
}

/* Loading State */
.iframe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666666;
}

.iframe-loading i {
    font-size: 48px;
    margin-bottom: 20px;
    animation: spin-360 2s linear infinite;
}

@keyframes spin-360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body.dark-mode .iframe-loading {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-360-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .projects-360-section {
        padding: 60px 0;
    }

    .projects-360-header {
        margin-bottom: 40px;
    }

    .projects-360-section .main-heading {
        font-size: 28px;
    }

    .projects-360-section .section-description {
        font-size: 14px;
    }

    .projects-360-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-360-image {
        height: 400px;
    }

    .project-360-content {
        padding: 20px;
    }

    .projects-360-footer {
        margin-top: 40px;
    }

    .modal-360 .modal-dialog {
        width: 95%;
        height: 85%;
    }
}

@media (max-width: 576px) {
    .projects-360-section {
        padding: 40px 0;
    }

    .projects-360-section .main-heading {
        font-size: 24px;
    }

    .project-360-content {
        padding: 15px;
    }

    .btn-360-view,
    .btn-view-all-360 {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* ========================================
   How It Works Section - Overflow Fix
   ======================================== */

.how-it-work {
    overflow: hidden;
}

/* Dark Mode Adjustments */

body.dark-mode .about-counter,
.dark-scheme input[type=text],
.dark-scheme input[type=email],
.dark-scheme input[type=url],
.dark-scheme input[type=password],
.dark-scheme input[type=search],
.dark-scheme input[type=number],
.dark-scheme input[type=tel],
.dark-scheme input[type=range],
.dark-scheme input[type=date],
.dark-scheme input[type=month],
.dark-scheme input[type=week],
.dark-scheme input[type=time],
.dark-scheme input[type=datetime],
.dark-scheme input[type=datetime-local],
.dark-scheme input[type=color],
.dark-scheme textarea {
    background: #181717;
}

body.dark-mode .product-item .woocommerce-loop-product__title a,
body.dark-mode .woocommerce-result-count,
body.dark-mode .price_slider_amount .price_label,
body.dark-mode .product_meta>span,
body.dark-mode .single-price,
body.dark-mode .process-classic h6,
body.dark-mode .p-detail-info p,
body.dark-mode .p-detail-info h6,
body.dark-mode .projects-grid.style-3 .portfolio-info .portfolio-info-inner h5 a {
    color: #ddd;
}

body.dark-mode .ot-tabs .tab-link.current,
body.dark-mode.ot-tabs .tab-link:hover {
    border-color: #ffffff;
    color: #ffffff;

}

body.dark-mode .ot-tabs .tab-link {
    border-bottom: 3px solid #dadada;
}

body.dark-mode .principes {
    background-color: #0a0a0a;
}

body.dark-mode .icon-box--bg-img:hover {
    background-color: #ddd;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 105px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.3);
    transition: all 0.3s ease;
    animation: whatsapp-float 3s ease-in-out infinite;
}


/* LTR Support - Position on right side */
.whatsapp-float {
    right: 32px;
    left: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 6px 30px rgba(26, 26, 26, 0.4);
    text-decoration: none;
}

.whatsapp-float:hover .whatsapp-float-icon i {
    color: #1a1a1a;
}

.whatsapp-float-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.whatsapp-float-icon i {
    font-size: 32px;
    color: #ffffff;
    font-weight: 400;
    font-family: "Font Awesome 5 Brands";
    transition: all 0.3s ease;
}

/* Pulse Animation */
.whatsapp-float-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a1a1a;
    opacity: 0.4;
    animation: whatsapp-pulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes whatsapp-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes whatsapp-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Dark Mode Support */
body.dark-mode .whatsapp-float {
    background: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

body.dark-mode .whatsapp-float:hover {
    background: #1a1a1a;
    border-color: #ffffff;
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
}

body.dark-mode .whatsapp-float-icon i {
    color: #1a1a1a;
}

body.dark-mode .whatsapp-float:hover .whatsapp-float-icon i {
    color: #ffffff;
}

body.dark-mode .whatsapp-float-pulse {
    background: #ffffff;
    opacity: 0.3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
    }

    body.rtl .whatsapp-float {
        left: 15px;
    }

    body.ltr .whatsapp-float {
        right: 15px;
    }

    .whatsapp-float-icon i {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 100px;
    }

    body.rtl .whatsapp-float {
        left: 10px;
    }

    body.ltr .whatsapp-float {
        right: 36px;
    }

    .whatsapp-float-icon i {
        font-size: 24px;
    }
}

/* Ensure button is above other elements but below modals */
.whatsapp-float {
    z-index: 999;
}

/* Hide on print */
@media print {
    .whatsapp-float {
        display: none !important;
    }
}
