/* Novion Energy Solutions - Shared Styles */

html {
    scroll-behavior: smooth;
}


/* Flowing energy line animation */
@keyframes flowRight {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(124, 216, 189, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(124, 216, 189, 0.6));
    }
}

.energy-flow {
    stroke-dasharray: 1000;
    animation: flowRight 4s ease-in-out infinite;
}

.energy-flow-delayed {
    animation-delay: 1.5s;
}

.energy-flow-delayed-2 {
    animation-delay: 3s;
}

/* Staggered fade-in animations */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Gradient mesh background */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 146, 130, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 91, 94, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 80%, rgba(243, 98, 89, 0.05) 0%, transparent 50%);
}

/* Card hover effects */
.solution-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7CD8BD, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 216, 189, 0.3);
    box-shadow: 0 20px 40px -20px rgba(0, 146, 130, 0.3);
}

/* Product card hover */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 216, 189, 0.3);
    box-shadow: 0 20px 40px -20px rgba(0, 146, 130, 0.3);
}

/* Feature icon pulse */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

/* Link underline effect */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Geometric decorations */
.geo-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(124, 216, 189, 0.2), transparent);
    height: 1px;
}

/* Scale badge */
.scale-badge {
    position: relative;
}

.scale-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #7CD8BD, #009282);
    border-radius: 2px;
}

/* Team card hover */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 216, 189, 0.3);
}

.team-card:hover .team-photo {
    border-color: rgba(124, 216, 189, 0.5);
}

.team-photo {
    transition: border-color 0.3s ease;
}

/* Feature list styling */
.feature-list li {
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #7CD8BD, #009282);
    border-radius: 50%;
}

/* Resource card hover */
.resource-card {
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: rgba(124, 216, 189, 0.4);
    background: rgba(0, 146, 130, 0.05);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
}

.resource-icon {
    transition: transform 0.3s ease;
}

/* Form input styling */
.form-input {
    background: rgba(37, 44, 53, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(124, 216, 189, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 146, 130, 0.1);
}

.form-input::placeholder {
    color: #8B9AAB;
}

/* Location card hover */
.location-card {
    transition: all 0.3s ease;
}

.location-card:hover {
    border-color: rgba(124, 216, 189, 0.3);
    transform: translateY(-2px);
}

/* Scroll animation helper - applied by JS */
section > div.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
