/**
 * IEC Solar - Main Stylesheet
 * Bootstrap 5 Customizations & Custom Components
 */

/* =====================================================
   CSS Variables (IEC Branding)
   ===================================================== */
:root {
    /* Primary Colors */
    --iec-orange: #E65100;
    --iec-orange-light: #FF6D00;
    --iec-orange-dark: #BF360C;
    --iec-blue: #2C5282;
    --iec-blue-light: #3182CE;
    --iec-blue-dark: #1A365D;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-dark: #1A202C;

    /* Text Colors */
    --text-dark: #1A202C;
    --text-muted: #718096;
    --text-light: #A0AEC0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--iec-orange) 0%, var(--iec-orange-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--iec-blue) 0%, var(--iec-blue-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(44, 82, 130, 0.9) 0%, rgba(230, 81, 0, 0.8) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Font */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =====================================================
   Animation Keyframes
   ===================================================== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(230, 81, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(230, 81, 0, 0.6), 0 0 30px rgba(230, 81, 0, 0.4);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes morphBg {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Utility Classes */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-morph {
    animation: morphBg 8s ease-in-out infinite;
}

/* Hover Animation Classes */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-shake:hover {
    animation: shake 0.5s ease-in-out;
}

/* =====================================================
   Base Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    color: var(--iec-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--iec-orange);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   Navbar
   ===================================================== */
#mainNavbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: all var(--transition-normal);
}

#mainNavbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all var(--transition-normal);
}

#mainNavbar.scrolled .logo-img {
    height: 50px;
}

/* Brand Text */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--iec-blue);
    letter-spacing: 0.5px;
}

.brand-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--iec-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#mainNavbar.scrolled .brand-name {
    font-size: 1.1rem;
}

#mainNavbar.scrolled .brand-tagline {
    font-size: 0.7rem;
}

/* Brand Glow Animation */
@keyframes brandGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 2px rgba(230, 81, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(230, 81, 0, 0.5)) drop-shadow(0 0 15px rgba(44, 82, 130, 0.3));
    }
}

.brand-glow {
    animation: brandGlow 3s ease-in-out infinite;
}

.navbar-brand:hover .brand-glow {
    animation: brandGlow 1.5s ease-in-out infinite;
}

.navbar-brand:hover .brand-name {
    color: var(--iec-orange);
    transition: color 0.3s ease;
}

/* Responsive brand text */
@media (max-width: 991.98px) {
    .brand-name {
        font-size: 0.9rem;
    }

    .brand-tagline {
        display: none !important;
    }
}

@media (max-width: 575.98px) {

    /* Fixed navbar height and styling on mobile - prevent resizing on scroll */
    #mainNavbar,
    #mainNavbar.scrolled {
        padding: 0.5rem 0 !important;
    }

    .logo-img,
    #mainNavbar.scrolled .logo-img {
        height: 36px !important;
    }

    .brand-name,
    #mainNavbar.scrolled .brand-name {
        font-size: 0.7rem !important;
        font-weight: 700;
        line-height: 1.2;
    }
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--iec-orange);
    transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--iec-orange);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 50%;
}

/* Hide underline for dropdown toggles (they have arrow instead) */
.navbar-nav .dropdown-toggle::before {
    display: none;
}

.btn-cta {
    background: var(--gradient-primary);
    color: #fff !important;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--iec-blue);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Offcanvas Mobile Menu */
.offcanvas {
    max-width: 300px;
    background: #fff;
}

/* Prevent body scroll lock and layout shift */
body.offcanvas-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Remove gray backdrop */
.offcanvas-backdrop {
    display: none !important;
}

/* Keep navbar fixed when offcanvas opens */
.navbar.fixed-top {
    padding-right: 0 !important;
}

.offcanvas-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.05) 0%, rgba(230, 81, 0, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offcanvas-header img {
    height: 40px;
    width: auto;
}

.btn-close-custom {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.btn-close-custom:hover {
    background: var(--iec-orange);
    color: #fff;
    border-color: var(--iec-orange);
}

.offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    width: 24px;
    color: var(--iec-blue);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.1) 0%, rgba(44, 82, 130, 0.05) 100%);
    color: var(--iec-orange);
    border-left-color: var(--iec-orange);
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    color: var(--iec-orange);
}

.mobile-nav-divider {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: #F7FAFC;
    margin-top: 0.5rem;
}

.mobile-nav-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #E2E8F0;
    background: #F7FAFC;
}

/* Dropdown Menu Styles */
.dropdown-menu-animated {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    min-width: 220px;
}

.nav-item.dropdown:hover .dropdown-menu-animated,
.nav-item.dropdown .dropdown-menu-animated.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.1) 0%, rgba(44, 82, 130, 0.1) 100%);
    color: var(--iec-orange);
    transform: translateX(5px);
}

.dropdown-item.active {
    background: var(--gradient-primary);
    color: #fff;
}

.dropdown-item.active i {
    color: #fff !important;
}

.dropdown-item i {
    font-size: 1.1rem;
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-color: #E2E8F0;
}

.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.text-blue {
    color: var(--iec-blue) !important;
}

/* Dropdown arrow animation */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.35em solid;
    border-right: 0.35em solid transparent;
    border-bottom: 0;
    border-left: 0.35em solid transparent;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover>.dropdown-menu-animated {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu-animated {
        display: block;
    }
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.8) 0%, rgba(230, 81, 0, 0.6) 100%);
    z-index: 1;
}

/* Animated Clouds */
.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
}

/* Cloud keyframe animation */
@keyframes cloudDrift {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(calc(100vw + 100%));
    }
}

/* Cloud 1 - Large, slow */
.cloud-1 {
    width: 400px;
    height: 120px;
    top: 15%;
    animation: cloudDrift 60s linear infinite;
    opacity: 0.25;
}

.cloud-1::before,
.cloud-1::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud-1::before {
    width: 150px;
    height: 150px;
    top: -60px;
    left: 60px;
}

.cloud-1::after {
    width: 100px;
    height: 100px;
    top: -40px;
    left: 180px;
}

/* Cloud 2 - Medium, moderate speed */
.cloud-2 {
    width: 300px;
    height: 90px;
    top: 30%;
    animation: cloudDrift 45s linear infinite;
    animation-delay: -20s;
    opacity: 0.2;
}

.cloud-2::before {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    top: -50px;
    left: 80px;
}

/* Cloud 3 - Small, faster */
.cloud-3 {
    width: 200px;
    height: 60px;
    top: 50%;
    animation: cloudDrift 35s linear infinite;
    animation-delay: -10s;
    opacity: 0.15;
}

.cloud-3::before {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    top: -30px;
    left: 50px;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--iec-orange-light);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--iec-orange);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    transition: all var(--transition-normal);
}

.btn-hero-primary:hover {
    background: var(--iec-orange-light);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all var(--transition-normal);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =====================================================
   Stats Bar (Floating below hero)
   ===================================================== */
.stats-bar {
    position: relative;
    margin-top: -60px;
    z-index: 10;
    padding: 0 1rem;
}

.stats-bar-inner {
    background: linear-gradient(135deg, var(--iec-blue) 0%, #1A365D 50%, var(--iec-orange) 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(44, 82, 130, 0.3), 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.stats-bar-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--iec-orange-light);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 991px) {
    .stats-bar {
        margin-top: -40px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon i {
        font-size: 1.25rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .stat-info p {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .stats-bar {
        margin-top: -30px;
    }

    .stats-bar-inner {
        border-radius: var(--radius-lg);
    }
}

/* =====================================================
   Section Styles
   ===================================================== */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-dark);
    color: #fff;
}

.section-stats {
    background: linear-gradient(135deg, var(--iec-orange) 0%, var(--iec-orange-light) 50%, var(--iec-orange) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.section-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-dark .section-title {
    color: #fff;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-dark .section-subtitle {
    color: var(--text-light);
}

/* =====================================================
   Service Cards
   ===================================================== */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 81, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =====================================================
   Feature Cards (Why Choose Us)
   ===================================================== */
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-muted);
    margin: 0;
}

/* =====================================================
   Gallery Grid
   ===================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

/* Gallery/Project Placeholders */
.gallery-placeholder,
.project-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a365d 0%, #0f2942 100%);
    color: rgba(255, 255, 255, 0.4);
    gap: 0.5rem;
}

.gallery-placeholder i,
.project-image-placeholder i {
    font-size: 3rem;
}

.project-image-placeholder span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.gallery-item .gallery-placeholder {
    aspect-ratio: 4/3;
}

/* =====================================================
   Team Grid
   ===================================================== */
.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.team-role {
    color: var(--iec-orange);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.team-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder i {
    font-size: 5rem;
    color: #bbb;
}

/* =====================================================
   Testimonials
   ===================================================== */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-quote {
    font-size: 4rem;
    color: var(--iec-orange);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #E65100;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.2);
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-rating {
    color: #FFB300;
}

/* Premium Testimonial Cards */
.testimonial-card-premium {
    background: linear-gradient(145deg, #1a365d 0%, #0f2942 100%);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Featured Badge */
.testimonial-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #E65100 0%, #FF8A00 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Author Header */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.testimonial-avatar-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.testimonial-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E65100 0%, #FF8A00 100%);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

.testimonial-quote-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.testimonial-quote-icon i {
    transform: scaleX(-1);
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-author-location {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* Testimonial Content */
.testimonial-content {
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-text-premium {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Rating Section */
.testimonial-rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
}

.testimonial-stars i {
    color: #FBBF24;
    font-size: 0.9rem;
}

.testimonial-stars i.bi-star {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 767px) {
    .testimonial-card-premium {
        padding: 24px;
    }

    .testimonial-avatar-lg {
        width: 60px;
        height: 60px;
    }

    .testimonial-author-name {
        font-size: 1rem;
    }
}

/* =====================================================
   Contact Form
   ===================================================== */
.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--iec-blue);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.btn-submit {
    background: var(--gradient-primary);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all var(--transition-normal);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 81, 0, 0.3);
    color: #fff;
}

/* =====================================================
   Calculator
   ===================================================== */
.calculator-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.calculator-step {
    display: none;
}

.calculator-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E2E8F0;
    transition: all var(--transition-normal);
}

.step-dot.active {
    background: var(--iec-orange);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--iec-blue);
}

/* Quotation Output */
.quotation-output {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid var(--iec-blue);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-top: 2rem;
}

.quotation-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed #E2E8F0;
}

.quotation-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.quotation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--iec-blue);
}

.quotation-number {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.quotation-table {
    width: 100%;
    margin-bottom: 2rem;
}

.quotation-table th,
.quotation-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #E2E8F0;
}

.quotation-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
}

.quotation-table td {
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

.quotation-total {
    background: var(--iec-blue);
    color: #fff;
}

.quotation-total th,
.quotation-total td {
    border: none;
    font-size: 1.25rem;
    color: #fff !important;
}

.quotation-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px dashed #E2E8F0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-print {
    background: var(--iec-blue);
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-print:hover {
    background: var(--iec-blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--bg-dark);
    color: #fff;
}

.footer-top {
    padding: 4rem 0;
}

.footer-logo {
    height: 60px;
}

.footer-about {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--iec-orange);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--iec-orange);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-contact i {
    color: var(--iec-orange);
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.footer-contact a {
    color: var(--text-light);
}

.footer-contact a:hover {
    color: var(--iec-orange);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.copyright {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--iec-orange);
}

/* =====================================================
   Floating Buttons
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(44, 82, 130, 0.7);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

/* Show only on desktop */
@media (min-width: 992px) {
    .back-to-top {
        display: flex;
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(44, 82, 130, 0.9);
    transform: translateY(-3px);
}

/* =====================================================
   Page Headers (Inner Pages) - Enhanced with Animations
   ===================================================== */
.page-header {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #E65100 100%);
}

/* Animated gradient background */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(26, 54, 93, 0.75) 0%,
            rgba(44, 82, 130, 0.7) 40%,
            rgba(230, 81, 0, 0.65) 100%);
    z-index: 1;
}

/* Animated sun rays */
.page-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 183, 77, 0.4) 0%, rgba(255, 152, 0, 0.2) 30%, transparent 60%);
    border-radius: 50%;
    animation: sunPulse 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes sunPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Floating solar particles */
.page-header .container {
    position: relative;
    z-index: 10;
}

/* Page title with glow effect */
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating energy particles decoration */
.page-header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.page-header-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 183, 77, 0.6);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
}

.page-header-particles span:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.page-header-particles span:nth-child(2) {
    left: 20%;
    top: 60%;
    animation-delay: 1s;
    width: 6px;
    height: 6px;
}

.page-header-particles span:nth-child(3) {
    left: 70%;
    top: 30%;
    animation-delay: 2s;
    width: 10px;
    height: 10px;
}

.page-header-particles span:nth-child(4) {
    left: 80%;
    top: 70%;
    animation-delay: 3s;
}

.page-header-particles span:nth-child(5) {
    left: 50%;
    top: 50%;
    animation-delay: 1.5s;
    width: 5px;
    height: 5px;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-15px) translateX(5px);
        opacity: 1;
    }

    50% {
        transform: translateY(-5px) translateX(-5px);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-20px) translateX(3px);
        opacity: 1;
    }
}

/* Unique page themes with background images */
/* Contact Page - Blue with connection vibes */
.page-header-contact {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(43, 108, 176, 0.8) 50%, rgba(56, 161, 105, 0.85) 100%),
        url('../images/heroes/hero-contact.jpg') center/cover no-repeat;
}

.page-header-contact::after {
    background: radial-gradient(circle, rgba(56, 161, 105, 0.4) 0%, rgba(43, 108, 176, 0.2) 30%, transparent 60%);
}

/* Gallery/Projects Page - Orange with creative energy */
.page-header-gallery,
.page-header-projects {
    background: linear-gradient(135deg, rgba(123, 52, 30, 0.65) 0%, rgba(230, 81, 0, 0.6) 50%, rgba(255, 167, 38, 0.65) 100%),
        url('../images/heroes/hero-gallery.jpg') center/cover no-repeat;
}

.page-header-gallery::after,
.page-header-projects::after {
    background: radial-gradient(circle, rgba(255, 183, 77, 0.5) 0%, rgba(230, 81, 0, 0.3) 30%, transparent 60%);
}

/* About Page - Professional blue */
.page-header-about {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(21, 101, 192, 0.8) 50%, rgba(66, 165, 245, 0.85) 100%),
        url('../images/heroes/hero-about.jpg') center/cover no-repeat;
}

.page-header-about::after {
    background: radial-gradient(circle, rgba(66, 165, 245, 0.4) 0%, rgba(21, 101, 192, 0.2) 30%, transparent 60%);
}

/* Team Page - Warm collaborative colors */
.page-header-team {
    background: linear-gradient(135deg, rgba(74, 20, 140, 0.85) 0%, rgba(123, 31, 162, 0.8) 50%, rgba(230, 81, 0, 0.85) 100%),
        url('../images/heroes/hero-team.jpg') center/cover no-repeat;
}

.page-header-team::after {
    background: radial-gradient(circle, rgba(230, 81, 0, 0.4) 0%, rgba(123, 31, 162, 0.2) 30%, transparent 60%);
}

/* Calculator Page - Tech green */
.page-header-calculator {
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.85) 0%, rgba(0, 105, 92, 0.8) 50%, rgba(38, 166, 154, 0.85) 100%),
        url('../images/heroes/hero-calculator.jpg') center/cover no-repeat;
}

.page-header-calculator::after {
    background: radial-gradient(circle, rgba(38, 166, 154, 0.5) 0%, rgba(0, 105, 92, 0.2) 30%, transparent 60%);
}

/* Testimonials Page - Warm trust colors */
.page-header-testimonials {
    background: linear-gradient(135deg, rgba(191, 54, 12, 0.85) 0%, rgba(230, 81, 0, 0.8) 50%, rgba(255, 183, 77, 0.85) 100%),
        url('../images/heroes/hero-testimonials.jpg') center/cover no-repeat;
}

.page-header-testimonials::after {
    background: radial-gradient(circle, rgba(255, 183, 77, 0.5) 0%, rgba(230, 81, 0, 0.3) 30%, transparent 60%);
}

/* FAQ Page - Helpful blue-green */
.page-header-faq {
    background: linear-gradient(135deg, rgba(0, 96, 100, 0.85) 0%, rgba(0, 131, 143, 0.8) 50%, rgba(77, 208, 225, 0.85) 100%),
        url('../images/heroes/hero-faq.jpg') center/cover no-repeat;
}

.page-header-faq::after {
    background: radial-gradient(circle, rgba(77, 208, 225, 0.4) 0%, rgba(0, 131, 143, 0.2) 30%, transparent 60%);
}

/* Legal Page - Professional gray */
.page-header-legal {
    background: linear-gradient(135deg, rgba(55, 71, 79, 0.85) 0%, rgba(84, 110, 122, 0.8) 50%, rgba(120, 144, 156, 0.85) 100%),
        url('../images/heroes/hero-legal.jpg') center/cover no-repeat;
}

.page-header-legal::after {
    background: radial-gradient(circle, rgba(120, 144, 156, 0.4) 0%, rgba(84, 110, 122, 0.2) 30%, transparent 60%);
}

.breadcrumb {
    justify-content: center;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: #fff;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   Utilities
   ===================================================== */
.text-orange {
    color: var(--iec-orange) !important;
}

.text-blue {
    color: var(--iec-blue) !important;
}

.bg-orange {
    background-color: var(--iec-orange) !important;
}

.bg-blue {
    background-color: var(--iec-blue) !important;
}

.btn-orange {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
}

.btn-orange:hover {
    color: #fff;
    opacity: 0.9;
}

.btn-blue {
    background: var(--gradient-secondary);
    color: #fff;
    border: none;
}

.btn-blue:hover {
    color: #fff;
    opacity: 0.9;
}

/* =====================================================
   Loading Spinner
   ===================================================== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.spinner-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #E2E8F0;
    border-top-color: var(--iec-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-white);
        padding: 1rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .btn-cta {
        width: 100%;
        margin-top: 0.5rem;
    }

    .hero {
        min-height: 80vh;
    }

    .section {
        padding: 3rem 0;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
    }

    .calculator-container,
    .contact-form {
        padding: 1.5rem;
    }

    .quotation-output {
        padding: 1.5rem;
    }

    .whatsapp-float {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .back-to-top {
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .step-indicator {
        gap: 0.5rem;
    }

    .quotation-table th,
    .quotation-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* =====================================================
   SweetAlert2 Custom Styles
   ===================================================== */
.swal2-popup {
    border-radius: var(--radius-xl) !important;
    font-family: var(--font-primary) !important;
}

.swal2-confirm {
    background: var(--gradient-primary) !important;
    border-radius: var(--radius-md) !important;
}

.swal2-cancel {
    background: #718096 !important;
    border-radius: var(--radius-md) !important;
}

/* =====================================================
   Toastr Custom Styles
   ===================================================== */
.toast-success {
    background-color: var(--iec-blue) !important;
}

.toast-error {
    background-color: #DC2626 !important;
}

.toast-warning {
    background-color: var(--iec-orange) !important;
}

.toast-info {
    background-color: #3182CE !important;
}

/* =====================================================
   Enhanced Animation Styles
   ===================================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--iec-orange), var(--iec-orange-light), var(--iec-blue));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

/* Ripple Effect */
.btn-hero-primary,
.btn-submit,
.btn-orange {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
}

/* Stagger Animation Items */
.stagger-item {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

/* Service icon animation on card hover */
.service-card:hover .service-icon {
    animation: pulse 0.5s ease;
    transform: scale(1.1);
}

.service-icon {
    transition: transform 0.3s ease;
}

/* Glowing effect for stats */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 20px rgba(230, 81, 0, 0.5);
}

/* Typewriter cursor */
.typewriter {
    visibility: hidden;
}

.typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
}

/* Gallery item enhanced hover */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(230, 81, 0, 0.3), rgba(44, 82, 130, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Team card photo zoom */
.team-card .team-photo {
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.08);
}

/* Testimonial card float */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Contact info card glow on hover */
.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.2);
}

/* Hero button enhanced */
.btn-hero-primary {
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--iec-orange), var(--iec-orange-light), var(--iec-orange));
}

.btn-hero-primary:hover {
    background-position: 100% 0;
    animation: none;
}

/* Floating icons in hero */
.hero-floating-icon {
    position: absolute;
    opacity: 0.15;
    animation: float 4s ease-in-out infinite;
    pointer-events: none;
}

/* CTA section pulse */
.cta-section .btn-hero-primary {
    animation: pulse 2s ease-in-out infinite;
}

.cta-section:hover .btn-hero-primary {
    animation: none;
}

/* Nav link magnetic effect */
.navbar-nav .nav-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* WhatsApp button pulse */
.whatsapp-float {
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1);
}

/* Loading shimmer effect */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Section fade in on scroll */
.section {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0;
}

/* =====================================================
   Mobile Bottom Navigation
   ===================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    gap: 0.25rem;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--iec-orange);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* Center FAB Button */
.bottom-nav-fab {
    position: relative;
}

.fab-button {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -25px;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.4);
    transition: all 0.3s ease;
}

.fab-button i {
    font-size: 1.25rem;
    color: #fff;
}

.bottom-nav-fab:hover .fab-button,
.bottom-nav-fab.active .fab-button {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.5);
}

.bottom-nav-fab span {
    margin-top: 0.25rem;
}

/* Add padding to body for bottom nav */
@media (max-width: 991px) {
    body {
        padding-bottom: 65px;
        overflow-x: hidden;
    }

    html {
        overflow-x: hidden;
    }

    /* Hide WhatsApp button on mobile (bottom nav has contact) */
    .whatsapp-float {
        display: none !important;
    }

    /* Hide back to top button on mobile */
    .back-to-top {
        display: none !important;
    }
}

/* =====================================================
   PWA Standalone Mode Adjustments
   ===================================================== */
@media all and (display-mode: standalone) {

    #mainNavbar,
    #mainNavbar.scrolled {
        background: var(--iec-blue-dark) !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0.5rem 0 !important;
    }

    .brand-name,
    #mainNavbar.scrolled .brand-name {
        color: #ffffff !important;
    }

    .brand-tagline,
    #mainNavbar.scrolled .brand-tagline {
        color: #ffb74d !important;
        /* Brighter orange for better contrast on dark blue */
    }

    .navbar-toggler {
        color: #ffffff !important;
    }

    /* Desktop Navigation Links for Standalone Mode */
    .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #ffffff !important;
    }

    .navbar-nav .nav-link::before {
        background: #ffffff !important;
        /* White underline for active state on blue background */
    }

    /* Dropdown menu arrow color */
    .dropdown-toggle::after {
        border-top-color: #ffffff !important;
    }

    /* Sublte glow for logo on dark background */
    .logo-img {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
    }
}

/* =====================================================
   Mobile Native App Experience Styles
   ===================================================== */
@media (max-width: 576px) {
    /* Compact Grouped Inputs */
    .input-group-text {
        width: 105px !important;
        font-size: 0.8rem !important;
        padding: 0.375rem 0.5rem !important;
        font-weight: 600 !important;
    }
    .form-control {
        font-size: 0.85rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    .input-group > .form-control {
        min-height: calc(1.5em + 0.75rem + 2px);
    }
    
    /* Remove background cards, shadows, and borders */
    .app-card, .login-card, .register-card, .contact-form, .calculator-container, .quotation-output {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Remove padding/margins that create unnecessary card-like spacing */
    .section.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Ensure page backgrounds look unified and like a native app screen */
    body {
        background-color: var(--bg-white, #FFFFFF) !important;
    }
    [data-theme="dark"] body {
        background-color: #121212 !important;
    }
    
    [data-theme="dark"] .navbar-back-btn {
        color: #ffffff !important;
    }
    
    /* Smooth transitions for mobile buttons */
    .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
}

/* Global input group styling for forms */
.register-input-group {
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    background: #fff;
}
.register-input-group .input-group-text {
    background-color: #F7FAFC;
    border: none;
    color: #4A5568;
    font-weight: 600;
    min-width: 105px;
    justify-content: center;
}
.register-input-group .form-control,
.register-input-group .form-select {
    border: none;
    padding: 0.75rem 1rem;
}
.register-input-group:focus-within {
    border-color: #E65100;
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

/* Dark Mode Adjustments for input groups */
[data-theme="dark"] .register-input-group {
    border-color: #444;
    background: #3b3b3b;
}
[data-theme="dark"] .register-input-group .input-group-text {
    background: #2f2f2f;
    color: #aaa;
}
[data-theme="dark"] .register-input-group .form-control,
[data-theme="dark"] .register-input-group .form-select {
    background: #3b3b3b;
    color: #f1f1f1;
}
[data-theme="dark"] .register-input-group:focus-within {
    border-color: #FF8A00;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}

/* Dark Mode Adjustments for Quotation */
[data-theme="dark"] .quotation-output {
    background: #1e1e1e !important;
    border-color: #FF8A00 !important;
}
[data-theme="dark"] .quotation-output table.quotation-table th,
[data-theme="dark"] .quotation-output table.quotation-table td {
    color: #f1f1f1 !important;
    border-color: #444 !important;
}
[data-theme="dark"] .quotation-output .bg-light {
    background-color: #2b2b2b !important;
    color: #f1f1f1 !important;
}