/* Hero Animation & Illustration Styles */

/* Hero Layout Modifications */
.hero {
    position: relative;
    padding: 60px 0 100px;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding-top: 40px;
    z-index: 2;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 340px;
    margin: -20px auto 20px;
}

/* Icon Orbit Animation */
.icon-orbit {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto;
}

.orbit-path {
    position: absolute;
    border: 1px dashed rgba(82, 113, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.orbit-path.path-1 {
    width: 280px;
    height: 280px;
    animation: rotate-path 40s linear infinite;
}

.orbit-path.path-2 {
    width: 200px;
    height: 200px;
    animation: rotate-path 30s linear infinite reverse;
}

@keyframes rotate-path {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform-origin: center center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    will-change: transform;
    border: 1px solid var(--border-color);
    /* Ensure perfect centering of SVGs */
    padding: 10px;
}

.orbit-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    display: block; /* Ensures SVG is block-level for proper centering */
}

.orbit-icon:hover {
    transform: scale(1.2) !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    z-index: 10;
}

/* Specific icon positions and animations */
.icon-1 {
    top: 40px;
    left: 50%;
    margin-left: -25px; /* Half of the icon width for perfect centering */
    animation: orbit1 20s linear infinite;
}

.icon-2 {
    top: 170px; /* Vertical center */
    right: 30px;
    animation: orbit2 25s linear infinite;
}

.icon-3 {
    bottom: 40px;
    left: 50%;
    margin-left: -25px;
    animation: orbit3 22s linear infinite;
}

.icon-4 {
    top: 170px; /* Vertical center */
    left: 30px;
    animation: orbit4 18s linear infinite;
}

.icon-5 {
    top: 100px;
    right: 60px;
    animation: orbit5 15s linear infinite;
}

.icon-6 {
    bottom: 100px;
    left: 60px;
    animation: orbit6 28s linear infinite;
}

@keyframes orbit1 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes orbit2 {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-10px) rotate(180deg); }
    100% { transform: translateX(0) rotate(360deg); }
}

@keyframes orbit3 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes orbit4 {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(10px) rotate(180deg); }
    100% { transform: translateX(0) rotate(360deg); }
}

@keyframes orbit5 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, 5px) rotate(90deg); }
    50% { transform: translate(0, 10px) rotate(180deg); }
    75% { transform: translate(-5px, 5px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes orbit6 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5px, -5px) rotate(90deg); }
    50% { transform: translate(0, -10px) rotate(180deg); }
    75% { transform: translate(5px, -5px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Center icon with pulsing rings */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 3;
}

.center-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(82, 113, 255, 0.5);
    animation: pulse-self 3s ease-in-out infinite;
}

.center-icon i {
    font-size: 36px;
    color: white;
}

.pulse-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0;
}

.ring-1 {
    animation: pulse-ring 3s ease-out infinite;
    animation-delay: 0s;
}

.ring-2 {
    animation: pulse-ring 3s ease-out infinite;
    animation-delay: 1s;
}

.ring-3 {
    animation: pulse-ring 3s ease-out infinite;
    animation-delay: 2s;
}

@keyframes pulse-ring {
    0% {
        width: 80px;
        height: 80px;
        opacity: 0.6;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes pulse-self {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Floating background elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.float-element {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.float-element svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.elem-1 {
    top: 15%;
    right: 15%;
    animation: floating 8s ease-in-out infinite;
}

.elem-2 {
    bottom: 20%;
    left: 10%;
    animation: floating 7s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.elem-3 {
    top: 70%;
    right: 25%;
    animation: floating 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floating {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -15px) rotate(5deg);
    }
    50% {
        transform: translate(-5px, 10px) rotate(-5deg);
    }
    75% {
        transform: translate(-10px, -10px) rotate(3deg);
    }
}

/* Desktop Styles */
@media screen and (min-width: 769px) {
    .hero .container {
        flex-direction: row;
        text-align: left;
        min-height: 500px;
        align-items: center;
    }
    
    .hero-content {
        flex: 1;
        margin: 0;
        padding-right: 20px;
        padding-top: 0;
    }
    
    .hero h2 {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero p {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .hero-illustration {
        flex: 1;
        height: 400px;
        margin: 0;
    }
    
    .icon-orbit {
        width: 400px;
        height: 400px;
    }
    
    .orbit-path.path-1 {
        width: 320px;
        height: 320px;
    }
    
    .orbit-path.path-2 {
        width: 240px;
        height: 240px;
    }
}

/* Tablet Responsive Styles */
@media screen and (max-width: 992px) and (min-width: 769px) {
    .hero-illustration {
        height: 350px;
    }
    
    .icon-orbit {
        width: 350px;
        height: 350px;
    }
    
    .orbit-path.path-1 {
        width: 280px;
        height: 280px;
    }
    
    .orbit-path.path-2 {
        width: 220px;
        height: 220px;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .hero-content {
        padding-top: 30px;
    }
    
    .mobile-hide {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .hero-illustration {
        height: 280px;
    }
    
    .icon-orbit {
        width: 280px;
        height: 280px;
    }
    
    .orbit-path.path-1 {
        width: 220px;
        height: 220px;
    }
    
    .orbit-path.path-2 {
        width: 160px;
        height: 160px;
    }
    
    .orbit-icon {
        width: 44px;
        height: 44px;
    }
    
    .center-icon {
        width: 70px;
        height: 70px;
    }
    
    .center-icon i {
        font-size: 30px;
    }
    
    @keyframes pulse-ring {
        0% {
            width: 70px;
            height: 70px;
            opacity: 0.6;
        }
        100% {
            width: 220px;
            height: 220px;
            opacity: 0;
        }
    }
}
