/* =======================================================
   MODERN COMPONENT LIBRARY
   Latest Design Trends: Glassmorphism, Neumorphism, Micro-interactions
   ======================================================= */

/* ===========================
   GLASSMORPHISM COMPONENTS
   =========================== */
.glass-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.25);
    border-color: rgba(16, 185, 129, 0.5) !important;
}

/* ===========================
   GRADIENT CARDS
   =========================== */
.gradient-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gradient-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

/* Green Tech Gradients */
.gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.gradient-green-light {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%) !important;
}

.gradient-eco {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%) !important;
}

/* ===========================
   MODERN HERO SECTION
   =========================== */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #d1fae5 100%);
}

[data-theme="dark"] .hero-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-modern::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-modern::after {
    content: '';
    position: absolute;
    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='%2310b981' 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");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

[data-theme="dark"] .hero-title {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===========================
   FEATURE CARDS - MODERN
   =========================== */
.feature-card-modern {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(16, 185, 129, 0.2);
    border-color: var(--primary-green);
}

.feature-icon-modern {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.4s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-modern i {
    font-size: 36px;
    color: var(--primary-green);
    transition: color 0.4s ease;
}

.feature-card-modern:hover .feature-icon-modern i {
    color: white;
}

/* ===========================
   STATISTICS COUNTER
   =========================== */
.stats-modern {
    background: var(--gradient-primary);
    border-radius: 32px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    color: white;
}

.stats-modern::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -100px;
    right: -100px;
    animation: pulse 3s ease-in-out infinite;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===========================
   TESTIMONIAL CARDS
   =========================== */
.testimonial-modern {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-modern::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 120px;
    color: var(--primary-green);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 0.8;
}

.testimonial-modern:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--primary-green);
    margin-bottom: 20px;
    object-fit: cover;
}

.testimonial-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 16px;
}

/* ===========================
   PRICING CARDS - MODERN
   =========================== */
.pricing-card-modern {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 48px 40px;
    border: 2px solid var(--border-light);
    position: relative;
    transition: all 0.5s ease;
}

.pricing-card-modern.featured {
    border-color: var(--primary-green);
    background: var(--gradient-light);
    transform: scale(1.05);
}

[data-theme="dark"] .pricing-card-modern.featured {
    background: var(--gradient-card);
}

.pricing-card-modern:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 32px 64px rgba(16, 185, 129, 0.2);
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 32px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===========================
   CTA SECTIONS
   =========================== */
.cta-modern {
    background: var(--gradient-primary);
    border-radius: 40px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite;
}

.cta-modern::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -150px;
    right: -150px;
    animation: float 12s ease-in-out infinite reverse;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* ===========================
   INTERACTIVE BUTTONS
   =========================== */
.btn-modern {
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.btn-modern:active {
    transform: translateY(-1px);
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: white;
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline-modern:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.15rem;
}

/* ===========================
   ICON BADGES
   =========================== */
.icon-badge-modern {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto 24px;
}

.icon-badge-modern::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.icon-badge-modern:hover::before {
    opacity: 1;
}

.icon-badge-modern:hover {
    transform: scale(1.15) rotate(10deg);
}

.icon-badge-modern i {
    font-size: 48px;
    color: var(--primary-green);
    transition: all 0.4s ease;
}

.icon-badge-modern:hover i {
    color: white;
    transform: scale(1.1);
}

/* ===========================
   TIMELINE
   =========================== */
.timeline-modern {
    position: relative;
    padding: 40px 0;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 4px solid var(--bg-primary);
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ===========================
   PROGRESS BARS
   =========================== */
.progress-modern {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
}

.progress-bar-modern {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 20px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* ===========================
   FLOATING ELEMENTS
   =========================== */
.float-element {
    animation: float 6s ease-in-out infinite;
}

.float-element-slow {
    animation: float 10s ease-in-out infinite;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure logos are always visible regardless of animations */
.logo img,
.logo-box img,
.nav-logo img,
footer img,
.footer-widget img,
.main-header img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .timeline-modern::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
    }

    .cta-modern {
        padding: 60px 30px;
        border-radius: 24px;
    }

    .stats-modern {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {

    .feature-card-modern,
    .testimonial-modern,
    .pricing-card-modern {
        padding: 32px 24px;
    }

    .hero-modern {
        min-height: 80vh;
    }
}