/* ==================== FEATURES.CSS ==================== */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

.features {
    padding: 30px 0;
    background-color: #f9f9f9;
    position: relative;
    margin-top: 0;
    scroll-margin-top: 70px;
}

.features::before {
    content: 'FEATURES';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    letter-spacing: 3px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.features .container {
    padding-top: 60px;
}

.features .section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 800;
}

.features .section-subtitle {
    margin-bottom: 60px;
    color: #666;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    padding: 45px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(31, 182, 232, 0.12);
    background: white;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(31, 182, 232, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 182, 232, 0.05), rgba(142, 60, 247, 0.02));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(31, 182, 232, 0.2);
}

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

.icon-circle-wrapper {
    margin-bottom: 35px;
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(31, 182, 232, 0.15);
    transition: all 0.35s ease;
    overflow: visible;
    background: linear-gradient(135deg, rgba(31, 182, 232, 0.15), rgba(142, 60, 247, 0.15));
}

.feature-card:nth-child(1) .icon-circle {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
}

.feature-card:nth-child(2) .icon-circle {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(78, 205, 196, 0.1) 100%);
}

.feature-card:nth-child(3) .icon-circle {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.2) 0%, rgba(255, 217, 61, 0.1) 100%);
}

.feature-card:hover .icon-circle {
    box-shadow: 0 15px 40px rgba(31, 182, 232, 0.25);
    transform: scale(1.1);
}

/* Font Awesome Icons Styling */
.icon-circle i {
    font-size: 2.8rem;
    transition: all 0.35s ease;
}

.feature-card:nth-child(1) .icon-circle i {
    color: #FF6B6B;
}

.feature-card:nth-child(2) .icon-circle i {
    color: #4ECDC4;
}

.feature-card:nth-child(3) .icon-circle i {
    color: #FFD93D;
}

.rotating-dot {
    width: 11px;
    height: 11px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 2px 8px rgba(31, 182, 232, 0.6);
}

.dot-1 {
    animation: orbit-clockwise 12s linear infinite;
}

.dot-2 {
    animation: orbit-counter-clockwise 12s linear infinite;
}

@keyframes orbit-clockwise {
    0% {
        transform: rotate(0deg) translateX(62px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(62px) rotate(-360deg);
    }
}

@keyframes orbit-counter-clockwise {
    0% {
        transform: rotate(180deg) translateX(62px) rotate(-180deg);
    }
    100% {
        transform: rotate(540deg) translateX(62px) rotate(-540deg);
    }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.btn-view-more {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(31, 182, 232, 0.2);
    position: relative;
    overflow: hidden;
}

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

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

.btn-view-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(142, 60, 247, 0.35);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 30px 0;
        margin-top: 0;
    }

    .features::before {
        font-size: 0.75rem;
        top: 25px;
    }

    .features .container {
        padding-top: 50px;
    }

    .features .section-title {
        font-size: 2rem;
    }

    .features .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .feature-card {
        padding: 35px 25px;
    }

    .icon-circle-wrapper {
        margin-bottom: 25px;
    }

    .icon-circle {
        width: 100px;
        height: 100px;
    }

    .icon-circle i {
        font-size: 2.3rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 60px 0;
    }

    .features::before {
        top: 20px;
    }

    .features .section-title {
        font-size: 1.6rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .icon-circle {
        width: 90px;
        height: 90px;
    }

    .icon-circle i {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }
}