/* Base Styles */
:where([class^="ri-"])::before { content: "\f3c2"; }

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Header & Navigation */
.header-container {
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

/* Logo Styles */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 86, 179, 0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    display: block;
    text-align: center;
    color: #0056b3;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(120deg, #0056b3, #00a0e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0056b3;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active Navigation Link */
.nav-link.active {
    color: #0056b3 !important;
    position: relative;
}

.nav-link.active::after {
    width: 100%;
    opacity: 1;
    background-color: #0056b3;
}

/* Mobile Navigation Active State */
#mobile-menu .active {
    color: #0056b3 !important;
    font-weight: 600;
    background-color: rgba(0, 86, 179, 0.05);
    border-radius: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Logo hover effects */
.logo-container:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), #ffffff);
    box-shadow: 0 8px 16px rgba(0, 86, 179, 0.08);
    transform: translateY(-2px);
}

.logo-container:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 8px rgba(0, 86, 179, 0.2));
}

.logo-container:hover .logo-text {
    background: linear-gradient(120deg, #00a0e9, #0056b3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.14em;
}

/* Back to Top Button */
#back-to-top {
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
}

#back-to-top:active {
    transform: translateY(-2px) scale(0.98);
}

/* Footer Section */
.footer-bg {
    background-color: #111827;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-social {
    position: relative;
    transition: all 0.3s ease;
}

.footer-social:hover {
    transform: translateY(-5px);
}

.footer-social:hover > div {
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.4);
}

.footer-col h3 {
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-link {
    display: flex;
    align-items: center;
    color: #9ca3af;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: white;
    transform: translateX(3px);
}

.footer-link i {
    color: #0056b3;
    transition: all 0.3s ease;
}

/* Animated grid pattern */
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

#footer-grid path {
    stroke-dasharray: 40;
    stroke-dashoffset: 80;
    animation: dash 15s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

/* Solutions Page Specific Styles */
.hero-section {
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.2) contrast(1.2) saturate(1.1);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .video-background::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 86, 179, 0.3);
        z-index: 1;
    }
}

/* Text shadow for better readability over video */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    background: linear-gradient(90deg, #ffffff, #00a0e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-title {
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, transparent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.hero-title:hover::after {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #0056b3;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.6s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 2rem;
    margin-left: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.8s;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-subtitle {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 5;
}

.hero-shape path {
    animation: wave 8s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    transform-origin: center;
}

@keyframes wave {
    0% {
        d: path("M0,32L60,37.3C120,43,240,53,360,58.7C480,64,600,64,720,58.7C840,53,960,43,1080,42.7C1200,43,1320,53,1380,58.7L1440,64L1440,100L1380,100C1320,100,1200,100,1080,100C960,100,840,100,720,100C600,100,480,100,360,100C240,100,120,100,60,100L0,100Z");
    }
    50% {
        d: path("M0,60L60,55C120,50,240,40,360,35C480,30,600,30,720,35C840,40,960,50,1080,55C1200,60,1320,60,1380,60L1440,60L1440,100L1380,100C1320,100,1200,100,1080,100C960,100,840,100,720,100C600,100,480,100,360,100C240,100,120,100,60,100L0,100Z");
    }
    100% {
        d: path("M0,32L60,37.3C120,43,240,53,360,58.7C480,64,600,64,720,58.7C840,53,960,43,1080,42.7C1200,43,1320,53,1380,58.7L1440,64L1440,100L1380,100C1320,100,1200,100,1080,100C960,100,840,100,720,100C600,100,480,100,360,100C240,100,120,100,60,100L0,100Z");
    }
}

/* Solution Category Cards */
.solution-category-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.solution-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #00a0e9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.solution-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.solution-category-card:hover::before {
    transform: scaleX(1);
}

.solution-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.solution-icon i {
    font-size: 32px;
    color: #0056b3;
    transition: all 0.3s ease;
}

.solution-category-card:hover .solution-icon {
    background-color: #0056b3;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
}

.solution-category-card:hover .solution-icon i {
    color: white;
    transform: scale(1.2);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

.solution-category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
    transition: all 0.3s ease;
}

.solution-category-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.solution-category-card:hover h3 {
    color: #0056b3;
}

/* Solution Detail Cards */
.solution-detail-card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.solution-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.solution-detail-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.solution-detail-icon i {
    font-size: 28px;
    color: #0056b3;
    transition: all 0.3s ease;
}

.solution-detail-card:hover .solution-detail-icon {
    background-color: #0056b3;
}

.solution-detail-card:hover .solution-detail-icon i {
    color: white;
}

.solution-detail-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.solution-features li:hover {
    color: #0056b3;
    transform: translateX(5px);
    background: rgba(0, 86, 179, 0.05);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.5rem;
}

.solution-features li:last-child {
    border-bottom: none;
}

.card-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0056b3, #00a0e9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.solution-detail-card:hover .card-hover-effect {
    transform: scaleX(1);
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 20px;
    color: #0056b3;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Solution Image */
.solution-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.solution-image {
    width: 100%;
    height: auto;
    display: block;
}

.solution-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.15);
}

/* Add text shadow utility */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Add animation for pulse effect */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Power Solutions Hero */
.power-solutions-hero {
    height: 500px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: all 0.5s ease;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 86, 179, 0.25);
}

.power-solutions-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.power-solutions-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 160, 233, 0.2), rgba(0, 86, 179, 0.8));
    z-index: 1;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

.power-solutions-hero:hover::before {
    opacity: 0.7;
}

.power-solutions-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    color: #0056b3;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 86, 179, 0.1), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 86, 179, 0.1), rgba(0, 160, 233, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Icon Glow Effect */
.icon-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 86, 179, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: pulse 2s infinite;
}

.solution-category-card:hover .icon-glow {
    opacity: 1;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Stats Counter */
.stats-counter {
    padding: 1.5rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #00a0e9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.stats-counter:hover::before {
    transform: scaleX(1);
}

.stats-counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.2);
}

/* Card Stats Badge */
.card-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.stat-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(90deg, #0056b3, #00a0e9);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Icon Pulse Effect */
.icon-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, rgba(0, 86, 179, 0.2), rgba(0, 160, 233, 0.2));
    opacity: 0;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 0; }
}

/* Power Grid Animation */
.power-grid-animation {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 86, 179, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 179, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* CTA Particles */
.cta-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Animation for elements */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.opacity-100 {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .solution-image-wrapper {
        margin-bottom: 2rem;
    }
    
    #back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}