/* IEC Redesign Custom Styles - Optimized for Performance */

/* Use will-change sparingly for animations */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mesh-bg {
    background-color: #fff7ed;
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 149, 0, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 149, 0, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 149, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 149, 0, 0.05) 0px, transparent 50%);
}

.bg-gradient-orange-soft {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.bg-future-light {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 149, 0, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.10) 0px, transparent 50%);
}

.bg-future-accent {
    background-color: #fff7ed;
    background-image:
        radial-gradient(at 80% 0%, rgba(255, 149, 0, 0.20) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(255, 255, 255, 0.5) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 149, 0, 0.15) 0px, transparent 50%);
}

.text-gradient-red {
    background: linear-gradient(to right, #ff2802, #f91616);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-gradient-orange {
    background: linear-gradient(to right, #ea580c, #f97316);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* IndiaFilings Style - White with Green Gradient */
.bg-india-gradient {
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(220, 252, 231, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 247, 237, 0.4) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Transparent Sections */
.section-transparent {
    background: transparent !important;
}

/* Navbar Transition */
#navbar.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

/* Compatibility Layer for SEO Includes (Bootstrap Shim) */
.bg-grey-light-5 {
    background-color: #f8fafc;
}

.py-40 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-60 {
    margin-top: 60px;
}

.my-60 {
    margin-top: 60px;
    margin-bottom: 60px;
}

.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.pr-30 {
    padding-right: 30px;
}

.py-5 {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Grid System Shim */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-sm,
.col-md-3 {
    padding: 0 15px;
}

.col-sm {
    flex: 1;
}

.col-md-3 {
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-3 {
        width: 25%;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.card-body {
    padding: 1.5rem;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Typography */
.text-dark {
    color: #1e293b;
}

.text-blue {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.text-blue:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.text-green {
    color: #16a34a;
}

.font-14 {
    font-size: 0.875rem;
}

.font-13 {
    font-size: 0.8125rem;
}

.font-12 {
    font-size: 0.75rem;
}

.font-weight-400 {
    font-weight: 400;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.list-inline-item {
    display: inline-block;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-soft-secondary {
    color: #475569;
    background-color: #f1f5f9;
}

.badge-soft-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Components */
.carousel {
    display: none;
}

#toggle-button {
    display: none;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

/* Styling for City/State Includes */
.city-list,
.row ul {
    list-style: none;
    padding: 0;
}

.city-list li,
.row ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.city-list li a,
.row ul li a {
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.city-list li a:hover,
.row ul li a:hover {
    color: #2563eb;
}

.city-list li i,
.row ul li i {
    color: #2563eb;
    font-size: 0.75rem;
}

/* Modern Dropdown Styles */
.modern-dropdown {
    position: relative;
}

.modern-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    min-width: 660px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999999 !important;
    padding: 10px;
}

.modern-dropdown-menu.big {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    min-width: 680px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999999 !important;
    padding: 10px;
}

.modern-dropdown-menu.small {
    min-width: 246px;
}

.modern-dropdown:hover .modern-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* ISO DROPDOWN FIX */
.iso-wrapper {
    position: relative;
}

.iso-category {
    width: 240px;
    background: #fff;
}

/* Parent container */
.iso-parent {
    position: relative;
}

/* Label */
.iso-parent-label {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #003F88;
}

.iso-parent-label:hover {
    background: #f5f7fa;
}

/* Submenu */
.iso-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 280px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    display: none;
    padding: 8px 0;
    z-index: 1000;
}

/* 🔥 KEY FIX: keep submenu visible */
.iso-parent:hover .iso-submenu,
.iso-submenu:hover {
    display: block;
}

/* Submenu links */
.iso-submenu a {
    display: block;
    padding: 10px 16px;
    color: #00509D;
    font-size: 14px;
    white-space: nowrap;
}

.iso-submenu a:hover {
    background: #f1f5f9;
    color: #00296B;
}


.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-trigger:hover {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

.dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s;
}

.dropdown-trigger:hover .dropdown-icon {
    background: #dbeafe;
    color: #2563eb;
}

.dropdown-chevron {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.modern-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.services-grid {
    columns: 3;
    /* 3 vertical columns */
    -webkit-columns: 3;
    -moz-columns: 3;
    column-gap: 35px;
    /* spacing between columns */
}

.services-grid a {
    display: block;
    /* keeps each link as a full row item */
    margin-bottom: 8px;
}

/* Tablet: 2 columns */
@media (max-width: 768px) {
    .services-grid {
        columns: 2;
    }
}

/* Mobile: 1 column */
@media (max-width: 480px) {
    .services-grid {
        columns: 1;
    }
}

/* 🔥 OPEN TO LEFT WHEN NEEDED */
.iso-parent.open-left .iso-submenu {
    left: auto;
    right: 100%;
}

/* Optional arrow flip */
.iso-parent.open-left .fa-angle-left {
    transform: rotate(0deg);
}

.mobile-link{
    display:block;
    padding:8px 16px;
    font-size:13px;
    color:#94a3b8;
    border-radius:8px;
}
.mobile-link:hover{
    background:#1e293b;
    color:#fff;
}

.double-column {
    columns: 2;
    /* 3 vertical columns */
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 40px;
}

.single-column {
    display: flex;
    flex-direction: column;
    gap: 6px; /* spacing between items */
}

.single-column a.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 16px;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s;
}

.service-item:hover {
    background: #f8fafc;
    color: #2563eb;
    padding-left: 20px;
}

.service-arrow {
    font-size: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

.service-item:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Sticky Sub-Nav Styles */
.new-nav-link {
    color: #000000;
    padding: 0.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    display: block;
}

.new-nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.new-nav-item.new-active .new-nav-link {
    background-color: #FF9500;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}


/* Step Fade + Slide Animation */
@keyframes stepFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-step {
    animation: stepFadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.step-card:nth-child(1) {
    animation-delay: 0.15s;
}

.step-card:nth-child(2) {
    animation-delay: 0.35s;
}

.step-card:nth-child(3) {
    animation-delay: 0.55s;
}

.step-card:nth-child(4) {
    animation-delay: 0.75s;
}

/* Growing Line Animation */
@keyframes growLine {
    0% {
        height: 0%;
    }

    100% {
        height: 100%;
    }
}

.animate-growline {
    animation: growLine 1.6s ease-out forwards;
}

/* Pulse dots */
@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: .6;
    }
}

.animate-pulse {
    animation: dotPulse 1.3s infinite ease-in-out;
}

@keyframes soft-breathe {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.18);
  }
  50% {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 70px -30px rgba(234, 179, 8, 0.28);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.18);
  }
}

