/* CSS Variables & Basic Styles (Required for the section to look correct) */
:root {
    --bg-color: #000000;
    --card-bg-color: #0d0d0d;
    --primary-purple: #a37dfd;
    --secondary-purple: #7957d5;
    --text-light: #e0e0e0;
    --text-dark: #666;
    --border-color: #2a2139;
}

body {
    font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease-in-out;
}

.get-in-touch-btn {
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    color: #fff;
    padding: 12px 24px;
    margin-left: 12px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(163, 125, 253, 0.3);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #9ca3af;
    max-width: 672px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* Features Section Specific CSS */
.features-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px;
    overflow: hidden;
    text-align: center;
    width: 100%;
    margin-left: -50px;
}

.animation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    max-width: 1100px;
    aspect-ratio: 1.5 / 1;
}

.rotator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    border-radius: 50%;
    animation: spin 60s linear infinite;
}

.icon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(var(--angle));
}

.icon {
    position: absolute;
    top: 12%;
    left: 50%;
    /* This rule now ONLY handles horizontal centering */
    transform: translateX(-50%);
    
    width: clamp(45px, 8vw, 80px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg-color);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    /* This animation will now correctly counter-rotate the spinning wheel */
    animation: unspin 60s linear infinite;
}

.icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    /* ADDED: The initial angle correction is now applied directly to the image */
    transform: rotate(calc(var(--angle) * -1));
}


.features-center {
     position: relative;
     z-index: 3;
     padding: 0 1rem;
     margin-top: 20vh;
}

.features-center .section-title {
     font-size: clamp(2rem, 5vw, 3rem);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes unspin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Fade-in Animation on Scroll */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Styles for the section */
@media (max-width: 992px) {
    .animation-container {
        aspect-ratio: 1 / 1;
    }
    .icon {
        top: 8%;
    }
}

@media (max-width:1197px){
    .rotator {
    display: none;
}
}

@media (max-width: 480px) {
    .animation-container {
        width: 150%;
        aspect-ratio: 1 / 1.2;
    }
     .icon {
        top: 5%;
    }
}