/* Custom Styles for Ocean CRM */

/* Standardized Section Spacing (Desktop: 80px, Mobile: 50px) */
.sp,
.for-whom-diamond-area,
.faq-area,
.support-page-area,
.contact-page-area,
.pricing-plan-page,
.about-page-area1,
.features-page-area,
.testimonial-page-area,
.cta2-area,
.buy-sell-bottom2 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Standardized Hero Spacing */
.pages-hero,
.hero-area2 {
    padding-top: 140px !important;
    padding-bottom: 80px !important;
}

@media (max-width: 768px) {

    .sp,
    .for-whom-diamond-area,
    .faq-area,
    .support-page-area,
    .contact-page-area,
    .pricing-plan-page,
    .about-page-area1,
    .features-page-area,
    .testimonial-page-area,
    .cta2-area,
    .buy-sell-bottom2 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .pages-hero,
    .hero-area2 {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }
}

/* Internal Section Spacing (Margins between elements) */
.space120 {
    height: 80px !important;
}

.space100 {
    height: 80px !important;
}

.space80 {
    height: 60px !important;
}

.space60 {
    height: 40px !important;
}

@media (max-width: 768px) {

    .space120,
    .space100,
    .space80 {
        height: 40px !important;
    }

    .space60 {
        height: 30px !important;
    }
}

/* Support Page Styles */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.expert-pillar a:hover {
    color: var(--theme-primary) !important;
}

.pillar-icon-inner {
    width: 100px;
    height: 100px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: rotate(45deg);
}

.pillar-icon-inner i {
    transform: rotate(-45deg);
    font-size: 32px;
}

.pulse-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 1px solid var(--theme-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 2s infinite;
}

/* Common Support Card Styles */
.support-card {
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: 0.3s;
}

.support-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--theme-primary);
}

/* Diamond Industry Grid Section */
.for-whom-diamond-area {
    position: relative;
    overflow: hidden;
}

.for-whom-badge {
    background: var(--theme-primary);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 60px;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.industry-diamond-box {
    position: relative;
    padding: 20px;
    margin-bottom: 40px;
    transition: 0.4s;
}

.diamond-shape-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.diamond-bg {
    width: 100%;
    height: 100%;
    background: #f0fbff;
    border: 1px solid #e0f0ff;
    transform: rotate(45deg);
    border-radius: 20px;
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-diamond-box:hover .diamond-bg {
    background: var(--theme-primary);
    transform: rotate(45deg) scale(1.1);
    border-color: var(--theme-primary);
}

.diamond-icon {
    transform: rotate(-45deg);
    font-size: 32px;
    color: var(--theme-primary);
    transition: 0.5s;
}

.industry-diamond-box:hover .diamond-icon {
    color: #ffffff;
}

.industry-diamond-box h4 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    transition: 0.3s;
}

.industry-diamond-box:hover h4 {
    color: var(--theme-primary);
}

.industry-diamond-box .pulse-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 1px solid var(--theme-primary);
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}

.industry-diamond-box:hover .pulse-effect {
    animation: diamondPulse 2s infinite;
}

/* Main Contact Page Form Styles */
.contact-form-all {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.05);
    border: 1px solid #f0f7ff;
}

.form-inputs h5 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}

.form-inputs .input {
    margin-bottom: 20px;
}

.form-inputs input,
.form-inputs textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fcfdfe;
    transition: 0.3s;
    outline: none;
    font-size: 15px;
    color: #333;
}

.form-inputs input:focus,
.form-inputs textarea:focus {
    border-color: var(--theme-primary);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.08);
}

.form-inputs .button .theme-btn2 {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.contact-page-boxs .single-box {
    background: #fbfdff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #f0f7ff;
    transition: 0.3s;
}

.contact-page-boxs .single-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.05);
    border-color: var(--theme-primary);
}

.contact-page-boxs .single-box .icon {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.05);
    margin-bottom: 15px;
}

.map-area {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.contact-map {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* Footer Form Section */
.footer-cta-form-area {
    padding-top: 80px;
    /* Match standard */
    padding-bottom: 140px;
    /* Extra bottom for footer overlap */
    position: relative;
    z-index: 10;
}

.footer-form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.05);
}

.footer-form-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.footer-form-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.footer-form-card .form-group {
    margin-bottom: 15px;
}

.footer-form-card input,
.footer-form-card textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fdfdfd;
    transition: 0.3s;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}

.footer-form-card input:focus,
.footer-form-card textarea:focus {
    border-color: var(--theme-primary);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.05);
}

.footer-form-card .theme-btn11 {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background: var(--theme-primary);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.footer2 {
    margin-top: -80px;
    /* Adjust to match CTA bottom padding */
    padding-top: 120px !important;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .footer-cta-form-area {
        padding-bottom: 60px;
    }

    .footer2 {
        margin-top: 0;
        padding-top: 60px !important;
    }

    .footer-form-card {
        padding: 25px;
    }
}

/* Mobile Sidebar Premium Theme (White & Professional) */
.mobile-sidebar {
    background: #ffffff !important;
    padding-top: 60px !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-nav li a {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #f5f5f5;
    padding: 15px 0 !important;
}

.mobile-sidebar .theme-btn2 {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 20px;
}

.menu-close {
    color: #333 !important;
    background: #f0f0f0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-sidebar .contact-infos h3 {
    color: #1a1a1a !important;
    font-size: 19px;
    margin-top: 35px;
    border-bottom: 2px solid var(--theme-primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

.mobile-sidebar .contact-infos .box {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.mobile-sidebar .contact-infos .box .icon {
    margin-right: 15px !important;
    flex-shrink: 0;
}

.mobile-sidebar .contact-infos .box .icon span {
    background: #f0f8ff !important;
    color: var(--theme-primary) !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-sidebar .contact-infos .box .pera {
    display: block !important;
}

.mobile-sidebar .contact-infos .box .pera a {
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 500;
    display: block !important;
}

/* Section Responsiveness Fix (Stapes & Hero) at 900px */
@media (max-width: 991px) {
    .stapes .row {
        flex-direction: column-reverse !important;
        margin-bottom: 50px;
    }

    .stapes-images1,
    .stapes-images2 {
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    .stapes-images1 .image1,
    .stapes-images2 .image1 {
        margin: 0 !important;
        max-width: 85%;
        text-align: center;
    }

    .stapes .stapes-images1 .image2 {
        width: 150px;
        height: 150px;
        opacity: 0.15;
        z-index: -1;
        top: 0;
        right: 0;
    }

    .stapes .stapes-images2 .image2 {
        width: 150px;
        height: 150px;
        opacity: 0.15;
        z-index: -1;
        top: 0;
        left: 0;
    }

    .stapes .headding2 {
        text-align: center !important;
    }

    .hero-area2 {
        text-align: center;
    }

    .hero2-content .hero-btns {
        justify-content: center;
    }
}

@keyframes diamondPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* =====================================================
   CREATIVE & ANIMATED NAVIGATION DROPDOWN MENU STYLES
   ===================================================== */

/* Desktop: parent li with dropdown */
.main-menu-ex ul li.has-dropdown {
    position: relative !important;
    display: inline-block !important;
}

/* Down arrow icon next to menu title */
.main-menu-ex ul li.has-dropdown>a .nav-arrow {
    font-size: 10px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: inline-block !important;
    color: #4a5568 !important;
}

.main-menu-ex ul li.has-dropdown:hover>a {
    color: var(--theme-primary) !important;
}

.main-menu-ex ul li.has-dropdown:hover>a .nav-arrow {
    transform: rotate(180deg) !important;
    color: var(--theme-primary) !important;
}

/* Dropdown panel - Premium Glassmorphic Card */
.main-menu-ex ul li.has-dropdown .nav-dropdown {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    transform: translateY(15px) scale(0.96) !important;
    min-width: 280px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(96, 59, 243, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(96, 59, 243, 0.15) !important;
    padding: 16px 12px !important;
    z-index: 99999 !important;
    list-style: none !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Invisible Hover Bridge to prevent dropdown from disappearing when mouse moves down */
.main-menu-ex ul li.has-dropdown .nav-dropdown::after {
    content: '' !important;
    position: absolute !important;
    top: -30px !important;
    left: 0 !important;
    width: 100% !important;
    height: 30px !important;
    background: transparent !important;
    display: block !important;
    z-index: -10 !important;
}

/* Top accent gradient bar on card */
.main-menu-ex ul li.has-dropdown .nav-dropdown::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #603BF3 0%, #8F00FF 100%) !important;
    border-radius: 16px 16px 0 0 !important;
    display: block !important;
}

/* Show dropdown on hover */
.main-menu-ex ul li.has-dropdown:hover .nav-dropdown {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(10px) scale(1) !important;
}

/* Dropdown items */
.main-menu-ex ul li.has-dropdown .nav-dropdown li {
    padding: 0 !important;
    margin: 6px 0 !important;
    list-style: none !important;
}

.main-menu-ex ul li.has-dropdown .nav-dropdown li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Figtree', 'Inter', sans-serif !important;
    color: #1e293b !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    white-space: nowrap !important;
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
    border-left: 3px solid transparent !important;
}

.main-menu-ex ul li.has-dropdown .nav-dropdown li a:hover {
    color: var(--theme-primary) !important;
    background: linear-gradient(90deg, rgba(96, 59, 243, 0.05) 0%, rgba(255, 255, 255, 0) 100%) !important;
    border-left: 3px solid var(--theme-primary) !important;
    transform: translateX(4px) !important;
    padding-left: 20px !important;
}

/* =====================================================
   MOBILE DROPDOWN MENU STYLES
   ===================================================== */

.mobile-nav ul li.mobile-has-dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
    margin-left: auto;
    padding-left: 8px;
}

.mobile-nav-dropdown {
    display: none;
    list-style: none;
    padding: 0 0 0 16px;
    margin: 4px 0 8px;
    border-left: 3px solid var(--theme-primary);
    animation: mobileSlideDown 0.3s ease-out forwards;
}

@keyframes mobileSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-has-dropdown.open .mobile-nav-dropdown {
    display: block;
}

.mobile-has-dropdown.open .mobile-nav-arrow {
    transform: rotate(180deg);
}

.mobile-nav-dropdown li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    border-radius: 6px;
    transition: 0.2s;
}

.mobile-nav-dropdown li a:hover {
    color: var(--theme-primary);
    background: #fff8f4;
}