/* Features Page Styling */
:root {
    --lab-green: #14ff72;
    --lab-emerald: #0bd25d;
    --lab-neon: #00ff88;
    --lab-gold: #e6c14a;
    --lab-dark: #071b0f;
    --lab-deep: #03140b;
}

/* Background Elements */
.features-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--lab-neon), var(--lab-gold));
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 10%;
    animation-delay: -15s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    animation-delay: -7s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    top: 30%;
    left: 60%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Gradient Orbs */
.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 15s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 255, 114, 0.3), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(230, 193, 74, 0.2), transparent);
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.25), transparent);
    bottom: -50px;
    left: 50%;
    animation-delay: -10s;
}

.orb-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent);
    top: 70%;
    left: 20%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* Features Container */
.features-container {
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 atuo;
    display: flex;
    padding-top: 120px;
}

.features-card {
    background: rgba(7, 27, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(20, 255, 114, 0.1);
    position: relative;
    overflow: hidden;
}

.features-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lab-gold), var(--lab-neon), var(--lab-gold));
    background-size: 200% 100%;
    animation: titleShine 6s linear infinite;
}

/* Header Section */
.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--lab-neon), var(--lab-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(20, 255, 114, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

.icon-symbol {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-icon i {
    font-size: 2rem;
    color: #ffffff;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--lab-gold), var(--lab-neon), var(--lab-gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: titleShine 6s linear infinite;
    margin-bottom: 0.5rem;
}

.features-subtitle {
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--lab-gold), var(--lab-neon), var(--lab-gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: titleShine 6s linear infinite;
    text-align: center;
    margin-bottom: 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Feature Items */
.feature-item {
    background: rgba(7, 27, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(20, 255, 114, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
}

.feature-item:hover {
    background: rgba(20, 255, 114, 0.05);
    border-color: rgba(20, 255, 114, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(20, 255, 114, 0.15);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(20, 255, 114, 0.3));
    transition: all 0.3s ease;
    color: var(--lab-neon);
}

.feature-icon i {
    font-size: inherit;
    color: inherit;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(20, 255, 114, 0.5));
}

.feature-item h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.tag {
    background: rgba(20, 255, 114, 0.15);
    color: var(--lab-neon);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(20, 255, 114, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag:hover {
    background: rgba(20, 255, 114, 0.25);
    border-color: rgba(20, 255, 114, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 255, 114, 0.3);
}

/* Section Spacing */
.core-features-section,
.advanced-features-section,
.automation-section,
.integration-section,
.performance-section,
.enterprise-section {
    margin-bottom: 3rem;
}

.enterprise-section {
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-container {
        padding: 0; /* Remove padding on mobile */
        padding-top: 100px; /* Keep only top padding */
    }
    
    .features-card {
        padding: 1.5rem;
        border-radius: 20px;
        margin: 0; /* Remove margin, keep only top padding */
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    .feature-item h4 {
        font-size: 1.2rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .features-container {
        padding: 0; 
        padding-top: 100px; /* Keep only top padding */;
    }
    
    .features-card {
        padding: 1rem;
        margin: 0; /* Remove margin, keep only top padding */
        border-radius: 12px; /* Smaller border radius for small mobile */
    }
    
    .features-title {
        font-size: 1.8rem;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-symbol {
        font-size: 1.5rem;
    }
    
    .header-icon i {
        font-size: 1.5rem;
        color: #ffffff;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 1.25rem;
        min-height: 220px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: inherit;
        color: inherit;
    }
    
    .feature-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-item p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Animation for title shine effect */
@keyframes titleShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
